mvbasic icon indicating copy to clipboard operation
mvbasic copied to clipboard

[FEATURE] Add Configurable Language Syntax

Open itsxallwater opened this issue 5 years ago • 23 comments

Is your feature request related to a problem? Please describe. Currently, server\src\server.ts hard codes the language syntax file to use with this line:

filePath = filePath+"/../Syntaxes/MvLanguage.json";

With the requests for platform specific language syntax, it would be efficient to tie the selected syntax to the user's/workspace's configured platform.

Additionally, the package.json file informs on the grammar files to use for things like syntax highlighting, using the file client\Syntaxes\MVON.tmLanguage.json. The appropriate tmLanguage.json file would need to also be selected in conjunction with the MvLanguage.json file.

Describe the solution you'd like An acceptable pull request for this issue should abstract the selection of a language syntax to the platform specified within the extension's configuration settings and package.json. Bonus points for also allowing a user specified syntax as a dynamic overload, though currently that is not required.

itsxallwater avatar Jul 05 '19 17:07 itsxallwater