Adds support for astypedef files, so we can register the interface as application interface, even when it uses functions that are not supported by angelscript itself.

This commit is contained in:
2021-10-23 14:03:31 +02:00
parent fac54acbc9
commit 220c6d0080
16 changed files with 7372 additions and 177 deletions

View File

@@ -37,7 +37,10 @@ export function activate(context: ExtensionContext) {
// Options to control the language client
let clientOptions: LanguageClientOptions = {
documentSelector: [{ scheme: 'file', language: 'Angelscript' }],
documentSelector: [
{ scheme: 'file', language: 'Angelscript' },
{ scheme: 'file', language: 'AngelscriptTypeDefinition' }
],
synchronize: {
fileEvents: workspace.createFileSystemWatcher('**/.clientrc'),
}