-
Notifications
You must be signed in to change notification settings - Fork 7
how IntelliSkript works
when the extension is activated, it will validate all dependent skript files, like disky.sk etc. when you open a document, it will validate that document only, and it will search in the already validated files of that workspace and the dependencies for patterns. when you changed a document, other documents won't be revalidated until they are opened.
this extension contains a language server running on another thread on the client. it's bundled using webpack.
to package:
vsce package --pre-release
change version: edit in main package.json. be aware that stuff in the main package.json is displayed publicly!
to publish:
vsce publish --pre-release
go to extensions in vs code and click ... -> install from VSIX -> go to intelliskript folder and select correct vsix
go to extension page in vs code -> features -> runtime status. also, watch error messages pop up.
we're using these rules for tokenization:
- types should be blueish
- all actions should be yellowish
- all expressions and variables should be greenish
- not tokenized text should be red
- all definitions (new names, patterns or comments) should be italic. italic means you can type in roughly anything you want. exception is string, because we don't apply any markup there.
- pattern references should be bold. those are 'actual' code, so they're important.
ask any questions on discord! https://discord.gg/D4Eh4yxM8z
GNU copyright, johnheikens