A TypeScript language server plugin that improves the editor experience for grandMA3 plugin development.
The grandMA3 Lua API exposes a large number of global functions. Without this plugin, those functions dominate the autocomplete suggestions and push variables, properties, and other non-function entries out of view. This plugin demotes all function-typed entries so they appear last.
The plugin wraps getCompletionsAtPosition and prefixes the sortText of any function-kinded completion entry with zzzz_, which moves them to the end of the sorted list. All other completion kinds are left untouched.
Affected ScriptElementKind values:
functionlocal functionmember functionconstructorcall signatureconstruct signature
The plugin is consumed as a local dependency of the root project and registered in tsconfig.json:
{
"compilerOptions": {
"plugins": [
{ "name": "grandMA3-tsserver-plugin" }
]
}
}It is installed automatically via npm install in the root project.
npm run buildOutput is written to ./dist/.