Hello VS Code Community!
I'm currently extending the VS Code editor with a own / custom language. This is easier as I thought but now I'm getting problems with IntelliSense.
As you can see, VS Code is suggesting me the content of comments and strings and that's the big problem for me.
I'm inexperienced to this and learning by trying ;) I guess it has to do with tokenizer but I have no idea how to specify / exclude comments and variable values.
Normally only declared variables and the given keywords should be suggested
Here the relevant code: (only for learning purposes, no copyright infringement intended)
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
/// <reference path="../../declares.d.ts" />
'use strict';
define(["require", "exports", '../sqfDef', 'monaco-testing'], function (require, exports, languageDef, T) {
var tokenizationSupport = T.createTokenizationSupport(languageDef.language);
var tokenize = T.createTokenizeFromSupport(tokenizationSupport);
var assertTokens = T.assertTokens;
T.module('Syntax Highlighting - SQF');
}
Are there any docs or can someone explain me please how to exclude this from the suggested list?
EDIT: Ok, I realised that you can define object types in the Def.js so defining them in the Tests.js is not necessary. yet my problem persists.