'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.



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 R15