eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
20.05k stars 2.5k forks source link

textmate support config TokenizerOption lineLimit #4765

Closed 502647092 closed 1 year ago

502647092 commented 5 years ago

Description

image

Reproduction Steps

OS and Theia version: latest next version

Diagnostics:

kittaakos commented 5 years ago

According to the default TextMate tokenizer option, the line limit is 400 characters. If one of the lines has exceeded this limit, the TextMate tokenizer in the subsequent lines will be broken.

502647092 commented 5 years ago

how to config this prop

akosyakov commented 5 years ago

It does not look like it can be configured by a user only by a language contributor: https://github.com/theia-ide/theia/blob/5862b11c5809382e62ea9ea82e8ab03b14ad4a58/packages/monaco/src/browser/textmate/textmate-registry.ts#L21

We could introduce an option to override it per a language or file matching that a user can work it around.