Skip to content

Custom grammar's scopes not showing? #3

Open

Description

@joshpeng

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions