@@ -541,6 +541,7 @@ export const FormatOnTypeRequest: RequestType<FormatParams, TextEdit[], void> =
541
541
const CreateDeclarationOrDefinitionRequest : RequestType < CreateDeclarationOrDefinitionParams , CreateDeclarationOrDefinitionResult , void > = new RequestType < CreateDeclarationOrDefinitionParams , CreateDeclarationOrDefinitionResult , void > ( 'cpptools/createDeclDef' ) ;
542
542
const GoToDirectiveInGroupRequest : RequestType < GoToDirectiveInGroupParams , Position | undefined , void > = new RequestType < GoToDirectiveInGroupParams , Position | undefined , void > ( 'cpptools/goToDirectiveInGroup' ) ;
543
543
const GenerateDoxygenCommentRequest : RequestType < GenerateDoxygenCommentParams , GenerateDoxygenCommentResult | undefined , void > = new RequestType < GenerateDoxygenCommentParams , GenerateDoxygenCommentResult , void > ( 'cpptools/generateDoxygenComment' ) ;
544
+ const ChangeCppPropertiesRequest : RequestType < CppPropertiesParams , void , void > = new RequestType < CppPropertiesParams , void , void > ( 'cpptools/didChangeCppProperties' ) ;
544
545
545
546
// Notifications to the server
546
547
const DidOpenNotification : NotificationType < DidOpenTextDocumentParams > = new NotificationType < DidOpenTextDocumentParams > ( 'textDocument/didOpen' ) ;
@@ -553,7 +554,6 @@ const ResumeParsingNotification: NotificationType<void> = new NotificationType<v
553
554
const ActiveDocumentChangeNotification : NotificationType < TextDocumentIdentifier > = new NotificationType < TextDocumentIdentifier > ( 'cpptools/activeDocumentChange' ) ;
554
555
const RestartIntelliSenseForFileNotification : NotificationType < TextDocumentIdentifier > = new NotificationType < TextDocumentIdentifier > ( 'cpptools/restartIntelliSenseForFile' ) ;
555
556
const TextEditorSelectionChangeNotification : NotificationType < Range > = new NotificationType < Range > ( 'cpptools/textEditorSelectionChange' ) ;
556
- const ChangeCppPropertiesNotification : NotificationType < CppPropertiesParams > = new NotificationType < CppPropertiesParams > ( 'cpptools/didChangeCppProperties' ) ;
557
557
const ChangeCompileCommandsNotification : NotificationType < FileChangedParams > = new NotificationType < FileChangedParams > ( 'cpptools/didChangeCompileCommands' ) ;
558
558
const ChangeSelectedSettingNotification : NotificationType < FolderSelectedSettingParams > = new NotificationType < FolderSelectedSettingParams > ( 'cpptools/didChangeSelectedSetting' ) ;
559
559
const IntervalTimerNotification : NotificationType < IntervalTimerParams > = new NotificationType < IntervalTimerParams > ( 'cpptools/onIntervalTimer' ) ;
@@ -2584,7 +2584,7 @@ export class DefaultClient implements Client {
2584
2584
2585
2585
private doneInitialCustomBrowseConfigurationCheck : boolean = false ;
2586
2586
2587
- private onConfigurationsChanged ( cppProperties : configs . CppProperties ) : void {
2587
+ private async onConfigurationsChanged ( cppProperties : configs . CppProperties ) : Promise < void > {
2588
2588
if ( ! cppProperties . Configurations ) {
2589
2589
return ;
2590
2590
}
@@ -2614,7 +2614,7 @@ export class DefaultClient implements Client {
2614
2614
params . configurations . push ( modifiedConfig ) ;
2615
2615
} ) ;
2616
2616
2617
- this . languageClient . sendNotification ( ChangeCppPropertiesNotification , params ) ;
2617
+ await this . languageClient . sendRequest ( ChangeCppPropertiesRequest , params ) ;
2618
2618
const lastCustomBrowseConfigurationProviderId : PersistentFolderState < string | undefined > | undefined = cppProperties . LastCustomBrowseConfigurationProviderId ;
2619
2619
const lastCustomBrowseConfigurationProviderVersion : PersistentFolderState < Version > | undefined = cppProperties . LastCustomBrowseConfigurationProviderVersion ;
2620
2620
const lastCustomBrowseConfiguration : PersistentFolderState < WorkspaceBrowseConfiguration | undefined > | undefined = cppProperties . LastCustomBrowseConfiguration ;
0 commit comments