vsce-toolroom / vscode-textmate-languageservice

Language APIs and support features from Textmate tokenization in Visual Studio Code.
Other
16 stars 0 forks source link

Add pseudo-tokenization of `plaintext` language documents #45

Closed zm-cttae closed 1 year ago

zm-cttae commented 1 year ago

⚡️️ Feature Request

Is your feature request related to a problem?

Describe the solution you'd like

Add semi-valid line tokenization and API results for plaintext documents and language.

Describe alternatives you've considered

Document the error as it is technically valid to vscode-textmate result in core app.

/label ~feature-request

zm-cttae commented 1 year ago

There is an engineering problem here in that the LanguageDefinition.aliases[0] value is localised. Its actually the plainText.alias NLS string, which makes things more challenging.


As with most extensions in the Marketplace it would be best to just hardcode this to English for now.

zm-cttae commented 1 year ago

Thanks to a Good Samaritan on the extdev Slack, we can automate the i18n of the label:

https://github.com/microsoft/vscode-loc/blob/v1.82.2023090609/i18n/vscode-language-pack-es/translations/main.i18n.json#L804C5-L804C20