File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 180180 "type" : " boolean" ,
181181 "default" : true ,
182182 "description" : " Enable hovers provided by the language server"
183+ },
184+ "clangd.enable" : {
185+ "type" : " boolean" ,
186+ "default" : true ,
187+ "description" : " Enable clangd language server features"
183188 }
184189 }
185190 },
Original file line number Diff line number Diff line change @@ -41,10 +41,16 @@ export async function activate(context: vscode.ExtensionContext):
4141 }
4242 } ) ) ;
4343
44- await clangdContext . activate ( context . globalStoragePath , outputChannel ) ;
44+ let shouldCheck = false ;
45+
46+ if ( vscode . workspace . getConfiguration ( 'clangd' ) . get < boolean > ( 'enable' ) ) {
47+ await clangdContext . activate ( context . globalStoragePath , outputChannel ) ;
48+
49+ shouldCheck = vscode . workspace . getConfiguration ( 'clangd' ) . get < boolean > (
50+ 'detectExtensionConflicts' ) ??
51+ false ;
52+ }
4553
46- const shouldCheck = vscode . workspace . getConfiguration ( 'clangd' ) . get (
47- 'detectExtensionConflicts' ) ;
4854 if ( shouldCheck ) {
4955 const interval = setInterval ( function ( ) {
5056 const cppTools = vscode . extensions . getExtension ( 'ms-vscode.cpptools' ) ;
You can’t perform that action at this time.
0 commit comments