diff --git a/.vscode/launch.json b/.vscode/launch.json index b14790f..895c1f4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -14,8 +14,7 @@ ], "outFiles": [ "${workspaceFolder}/dist/**/*.js" - ], - "preLaunchTask": "${defaultBuildTask}" + ] }, { "name": "Attach to Server", @@ -25,8 +24,7 @@ "restart": true, "outFiles": [ "${workspaceRoot}/dist/**/*.js" - ], - "preLaunchTask": "${defaultBuildTask}" + ] }, { "name": "Extension Tests", diff --git a/package.json b/package.json index 8a6d96d..b434eb1 100644 --- a/package.json +++ b/package.json @@ -122,8 +122,8 @@ "grammar-cmakecache": "npx js-yaml ./syntaxes/cmakecache.tmLanguage.yml > ./syntaxes/cmakecache.tmLanguage.json", "grammar-cmdsignature": "npx js-yaml ./syntaxes/cmdsignature.tmLanguage.yml > ./syntaxes/cmdsignature.tmLanguage.json", "grammar": "node ./build/yaml-to-json.mjs", - "dev-client": "webpack --mode development --config webpack.config.client.js", - "dev-server": "webpack --mode development --config webpack.config.server.js", + "dev-client": "webpack --mode development --watch --config webpack.config.client.js", + "dev-server": "webpack --mode development --watch --config webpack.config.server.js", "prod-client": "webpack --mode production --config webpack.config.client.js --devtool hidden-source-map", "prod-server": "webpack --mode production --config webpack.config.server.js --devtool hidden-source-map" }, diff --git a/server/src/semanticTokens.ts b/server/src/semanticTokens.ts index b94f174..7a3f0f1 100644 --- a/server/src/semanticTokens.ts +++ b/server/src/semanticTokens.ts @@ -70,17 +70,6 @@ export function getTokenModifiers(): string[] { return tokenModifiers; } -// export function getTokenBuilder(document: TextDocument): SemanticTokensBuilder { -// let result = tokenBuilders.get(document.uri); -// if (result !== undefined) { -// return result; -// } - -// result = new SemanticTokensBuilder(); -// tokenBuilders.set(document.uri, result); -// return result; -// } - export class SemanticListener extends CMakeListener { private _data: number[] = []; private _builder: SemanticTokensBuilder;