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

Make commentContinuationPatterns, enhancedColorization and codeFolding window scope #5830

Merged
merged 1 commit into from
Jul 24, 2020

Conversation

Colengms
Copy link
Contributor

@Colengms Colengms commented Jul 24, 2020

This change makes the following settings 'window' scope instead of 'resource' scope, to ensure proper behavior in multiroot workspaces.

  • commentContinuationPatterns - This uses vscode.languages.setLanguageConfiguration(), which is not resource (folder) specific.
  • enhancedColorization and codeFolding - These involve registering providers. In order to support these on a per resource (per folder) basis, some additional work would be needed. However, it seems to make more sense for these settings to be window scope. We don't think user would want to vary these per folder.

This change also updates onDidChangeSettings() to only handle changes to these settings once instead of per folder.

@Colengms Colengms merged commit 7d35591 into master Jul 24, 2020
@Colengms Colengms deleted the coleng/semantic_tokens_bugs branch July 24, 2020 01:20
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 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.

2 participants