Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99112

No bracket matching when using the proposed semantic tokens API in VSCode

$
0
0

I'm using the VSCode (Insider) Semantic Tokens API to provide XSLT 3.0/XPath 3.1 syntax-highlighting.

The goal is to avoid using a TextMate grammar as this is really too limited (VSCode Issues - 216) for syntax highlighting XSLT/XPath. There are performance issues with TextMate grammars also.

My implementation extends the Semantic Tokens sample and returns tokens with the 'operator' tokenType for characters {, (, [, ], ) and }.

I've modified settings.json as follows for the Extension Development Host but this makes no difference:

{
  "[typescript]": {},
  "git.enableSmartCommit": true,
  "git.autofetch": true,
  "[XPath]": {
    "editor.matchBrackets": "always"
  }
}

I hoped that bracket matching for these token types would be automatic, but this doesn't appear to be the case. Is there a workaround for this? Am I using the wrong tokenType? Should I put in a feature request?


Viewing all articles
Browse latest Browse all 99112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>