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

Mark template expressions with meta.embedded.line scope #511

Merged
merged 1 commit into from
Sep 13, 2017

Conversation

mjbvz
Copy link
Contributor

@mjbvz mjbvz commented Sep 6, 2017

Problem
VS Code themes currently hardcode a solution for reseting expression colorization inside of template string substitution expressions. This is not scalable since it js/ts specific

With microsoft/vscode#33120 I've proposed that VS Code themes reset styling inside of meta.embedded scopes to support this across multiple languages

Fix
Marks template substitution expressions with the additional meta.embedded.block.ts scope

@@ -1952,6 +1952,7 @@ repository:
'0': { name: punctuation.definition.template-expression.end.ts }
patterns:
- include: '#expression'
contentName: meta.embedded.block.ts
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should actually probably be meta.embedded.line now that I think about it more

**Problem**
VS Code themes currently hardcode a solution for reseting expression colorization inside of template string substitution expressions. This is not scalable since it js/ts specific

With microsoft/vscode#33120 I've proposed that VS Code themes reset styling inside of meta.embedded scopes to support this across multiple languages

**Fix**
Marks template substitution expressions with the additional `meta.embedded.line.ts` scope
@mjbvz mjbvz changed the title Mark template expressions with meta.embedded.block tag Mark template expressions with meta.embedded.line scope Sep 6, 2017
@sheetalkamat sheetalkamat merged commit 445b230 into microsoft:master Sep 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants