Endless Sky data file language extensionNotice your spelling mistakes sooner! This extension interprets every .txt file as Endless Sky data. You can change the filetype of a document back to 'plaintext' to temporarily disable this, or disable the plugin to prevent it on all files. Maybe someday there will be a way to change language based on file contents or location, but for now there seems to be no way to do this in VSCode. When creating Endless Sky plugins, see the GitHub wiki for instructions. Some of this information in available in-editor with this extension, but the wiki will always be the authoritative source. Some keywords may be missing from syntax highlighting in this plugin, but the error messages are directly from an Endless Sky executable. Features
ConfigThe plugin looks in several standard locations for Endless Sky installed on your computer, but you can choose which executable to use by setting the executable path in settings by searching for endless sky settings or setting In order to prevent all text files from being interpreted as Endless Sky files, add this to your settings:
ContributingPlease open issues with bugs and ideas here. If you're using this plugin I'd love to hear from you. If you want to improve anything, especially the snippets or syntax highlighting, make a pull request to this repo or let @ballingt know on Twitter or message @ballingt on the Endless Sky Discord. Syntax highlighting of keywords is based on the text files in the syntaxgen folder. If a word isn't being highlighted, it should be added to keywords.txt. Some features are provided by an LSP which will soon use the JavaScript Endless Sky bindings. Contributions to these bindings are helpful too. |