Index: clangd/clients/clangd-vscode/package.json =================================================================== --- clangd/clients/clangd-vscode/package.json +++ clangd/clients/clangd-vscode/package.json @@ -2,7 +2,7 @@ "name": "vscode-clangd", "displayName": "vscode-clangd", "description": "Clang Language Server", - "version": "0.0.5", + "version": "0.0.6", "publisher": "llvm-vs-code-extensions", "homepage": "https://clang.llvm.org/extra/clangd.html", "engines": { Index: clangd/clients/clangd-vscode/src/extension.ts =================================================================== --- clangd/clients/clangd-vscode/src/extension.ts +++ clangd/clients/clangd-vscode/src/extension.ts @@ -23,6 +23,9 @@ command: getConfig('path'), args: getConfig('arguments') }; + // Set "CLANGD_EDITOR" environment variable allowing us to log which editor + // uses clangd. + process.env['CLANGD_EDITOR'] = 'vscode'; const traceFile = getConfig('trace'); if (!!traceFile) { const trace = { CLANGD_TRACE: traceFile };