mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
Prototype autofix source code action
Part of #62110 * Adds a new `CodeActionKind`: `source.autoFix`. * Implements a simple auto fix provider for typescript. This provider can auto fix `implement interface` and `spelling` errors (provided there is only a single valid fix listed) The provider is likely not something we actually want to check it (especially in its current state), we should ask TS for proper autoFix support
This commit is contained in:
@@ -1022,6 +1022,7 @@ export class CodeActionKind {
|
||||
public static readonly RefactorRewrite = CodeActionKind.Refactor.append('rewrite');
|
||||
public static readonly Source = CodeActionKind.Empty.append('source');
|
||||
public static readonly SourceOrganizeImports = CodeActionKind.Source.append('organizeImports');
|
||||
public static readonly SourceAutoFix = CodeActionKind.Source.append('autoFix');
|
||||
|
||||
constructor(
|
||||
public readonly value: string
|
||||
|
||||
Reference in New Issue
Block a user