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:
Matt Bierner
2019-01-14 15:15:42 -08:00
parent 4f8d546aa7
commit 4e6bd4aedd
6 changed files with 149 additions and 2 deletions

View File

@@ -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