Add to WorkingCopyCapabilities enum to reflect usage. (#105020)

* Add to WorkingCopyCapabilities enum to reflect usage.

The capabilities field was being used with a value of 0 in a few places that implemented the IWorkingCopy interface. This inconsistency wasn't picked up by the compiler because the value in the enum was specified as `1 << 1` and not as `2`. This changes the value to be specified as `2` (for better type checking) and makes the 0 to use the new enum value.

* some polish on top

Co-authored-by: Maksym Taran <maksym.taran@gmail.com>
Co-authored-by: Benjamin Pasero <benjpas@microsoft.com>
This commit is contained in:
mtaran-google
2020-08-23 23:14:40 -07:00
committed by GitHub
parent 1689304b52
commit 40164f1f5b
6 changed files with 12 additions and 7 deletions

View File

@@ -333,7 +333,7 @@ class MainThreadCustomEditorModel extends Disposable implements ICustomEditorMod
}
public get capabilities(): WorkingCopyCapabilities {
return 0;
return WorkingCopyCapabilities.None;
}
public isDirty(): boolean {