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

Custom grammar's scopes not showing? #3

Open
joshpeng opened this issue Jan 16, 2017 · 0 comments
Open

Custom grammar's scopes not showing? #3

joshpeng opened this issue Jan 16, 2017 · 0 comments

Comments

@joshpeng
Copy link

Per microsoft/vscode#17933 (comment)

In VSC 1.8.1, when I use my custom JavaScript grammar on .jsx file, it doesn't show the custom grammar's scope. It seems to prefer displaying the default VSC grammar scopes.

  1. Install Sublime Babel
  2. Make sure the language selected is "JavaScript React (Babel)" and then try this line in a jsx file.
console.log(`Running a GraphQL API server at http://localhost:${port}${baseUrl}`)
  1. When you hover over localhost the scopes shown are:
source.js
string.template.js

image

  1. If you look in F1 Dev Tools though, the classes are this:
    <span class="token js meta group braces round string interpolated detected-link">http://localhost:</span>
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

No branches or pull requests

1 participant