Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use editor.maxTokenizationLineLength in a VS Code language extension?

Is it possible to use "editor.maxTokenizationLineLength" in a vscode language extension or similar implementations.

The situation is that I have my own language type. I want to have a limitation of the line length, because whenever a linebreak occurs in the expected value, the colored highlight will be lost, removing so the warning for the user.

like image 241
Boyka Zhu Avatar asked Jan 26 '23 12:01

Boyka Zhu


1 Answers

In Visual Studio Code go to File--> Preferences--> Setting and search for Max, you will find Max Tokenization Length. Changes values there.

like image 176
R15 Avatar answered Jan 29 '23 06:01

R15