Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit duplication of ignoreOverrides and overrideId between inputs and options #99123

Closed
bpasero opened this issue Jun 2, 2020 · 2 comments
Assignees
Labels
debt Code quality issues insiders-released Patch has been released in VS Code Insiders under-discussion Issue is under discussion for relevance, priority, approach workbench-editors Managing of editor widgets in workbench window
Milestone

Comments

@bpasero
Copy link
Member

bpasero commented Jun 2, 2020

I see we have IBaseResourceEditorInput.overrideId and now also IEditorOptions.overrideId and I think this property should not be on the options of an editor.

At the same time I see we have ignoreOverrides and wonder if the two concepts could be merged, which I think Matt introduced.

Personally I feel this belongs on the editor and not options. Maybe overrideId could have a special value to signal that the override should be ignored.

@bpasero bpasero added debt Code quality issues under-discussion Issue is under discussion for relevance, priority, approach workbench-editors Managing of editor widgets in workbench window labels Jun 2, 2020
@bpasero bpasero added this to the June 2020 milestone Jun 2, 2020
@bpasero
Copy link
Member Author

bpasero commented Jun 2, 2020

If we have more places where override-identifiers are part of any interface or API, please speak up.

@bpasero
Copy link
Member Author

bpasero commented Jun 8, 2020

@eamodio @mjbvz take note of 20107ba, there is now only override as editor option with:

  • undefined: let editor decide
  • false: disable overrides (previously ignoreOverride)
  • string: a specific editor override to use

@github-actions github-actions bot locked and limited conversation to collaborators Jul 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debt Code quality issues insiders-released Patch has been released in VS Code Insiders under-discussion Issue is under discussion for relevance, priority, approach workbench-editors Managing of editor widgets in workbench window
Projects
None yet
Development

No branches or pull requests

4 participants
@eamodio @bpasero @mjbvz and others