File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ export function registerCommands(enabled: boolean): void {
403403 commandDisposables . push ( vscode . commands . registerCommand ( 'C_Cpp.ExtractToFreeFunction' , enabled ? ( ) => onExtractToFunction ( true , false ) : onDisabledCommand ) ) ;
404404 commandDisposables . push ( vscode . commands . registerCommand ( 'C_Cpp.ExtractToMemberFunction' , enabled ? ( ) => onExtractToFunction ( false , true ) : onDisabledCommand ) ) ;
405405 commandDisposables . push ( vscode . commands . registerCommand ( 'C_Cpp.ExpandSelection' , enabled ? ( r : Range ) => onExpandSelection ( r ) : onDisabledCommand ) ) ;
406- commandDisposables . push ( vscode . commands . registerCommand ( 'C_Cpp.getIncludes' , enabled ? ( maxDepth : number ) => getIncludes ( maxDepth ) : onDisabledCommand ) ) ;
406+ commandDisposables . push ( vscode . commands . registerCommand ( 'C_Cpp.getIncludes' , enabled ? ( maxDepth : number ) => getIncludes ( maxDepth ) : ( ) => Promise . resolve ( ) ) ) ;
407407}
408408
409409function onDisabledCommand ( ) {
You can’t perform that action at this time.
0 commit comments