Skip to content

Add to WorkingCopyCapabilities enum to reflect usage.#105020

Merged
bpasero merged 3 commits intomicrosoft:masterfrom
mtaran-google:inconsistency
Aug 24, 2020
Merged

Add to WorkingCopyCapabilities enum to reflect usage.#105020
bpasero merged 3 commits intomicrosoft:masterfrom
mtaran-google:inconsistency

Conversation

@mtaran-google
Copy link
Contributor

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.

This PR fixes #104866

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.
@bpasero bpasero added this to the September 2020 milestone Aug 20, 2020
@bpasero bpasero modified the milestones: September 2020, August 2020 Aug 24, 2020
@bpasero
Copy link
Member

bpasero commented Aug 24, 2020

Thanks, I pushed b2b9ccf to adopt this.

@bpasero bpasero merged commit 40164f1 into microsoft:master Aug 24, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent types for IWorkingCopy and TextFileEditorModel&IResolvedTextFileEditorModel

3 participants