From bc7fa239021addc43de8d6635d2980e6a71eef12 Mon Sep 17 00:00:00 2001 From: Ben McMorran Date: Mon, 31 Mar 2025 22:55:52 -0700 Subject: [PATCH 1/2] Allow notifications during initialization --- Extension/src/LanguageServer/client.ts | 2 +- Extension/src/nativeStrings.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Extension/src/LanguageServer/client.ts b/Extension/src/LanguageServer/client.ts index 807e76201..306c93276 100644 --- a/Extension/src/LanguageServer/client.ts +++ b/Extension/src/LanguageServer/client.ts @@ -1700,6 +1700,7 @@ export class DefaultClient implements Client { languageClient.onNotification(DebugProtocolNotification, logDebugProtocol); languageClient.onNotification(DebugLogNotification, logLocalized); languageClient.onNotification(LogTelemetryNotification, (e) => this.logTelemetry(e)); + languageClient.onNotification(ShowMessageWindowNotification, showMessageWindow); languageClient.registerProposedFeatures(); await languageClient.start(); @@ -2490,7 +2491,6 @@ export class DefaultClient implements Client { this.languageClient.onNotification(IntelliSenseResultNotification, (e) => this.handleIntelliSenseResult(e)); this.languageClient.onNotification(PublishRefactorDiagnosticsNotification, publishRefactorDiagnostics); RegisterCodeAnalysisNotifications(this.languageClient); - this.languageClient.onNotification(ShowMessageWindowNotification, showMessageWindow); this.languageClient.onNotification(ShowWarningNotification, showWarning); this.languageClient.onNotification(ReportTextDocumentLanguage, (e) => this.setTextDocumentLanguage(e)); this.languageClient.onNotification(IntelliSenseSetupNotification, (e) => this.logIntelliSenseSetupTime(e)); diff --git a/Extension/src/nativeStrings.json b/Extension/src/nativeStrings.json index a6456f885..307bc45a0 100644 --- a/Extension/src/nativeStrings.json +++ b/Extension/src/nativeStrings.json @@ -481,5 +481,6 @@ "expand_selection": "Expand selection (to enable 'Extract to function')", "file_not_found_in_path2": "\"{0}\" not found in compile_commands.json files. 'includePath' from c_cpp_properties.json in folder '{1}' will be used for this file instead.", "copilot_hover_link": "Generate Copilot summary", - "browse_path_not_found": "Unable to index files from non-existent folder: {0}" + "browse_path_not_found": "Unable to index files from non-existent folder: {0}", + "license_terms": "The C/C++ Extension may be used only with Microsoft Visual Studio, Visual Studio for Mac, Visual Studio Code, Azure DevOps, Team Foundation Server, and successor Microsoft products and services to develop and test your applications." } From 465e91f95cc7f3ad8577a13f8cef68d422c97758 Mon Sep 17 00:00:00 2001 From: Ben McMorran Date: Tue, 1 Apr 2025 10:33:22 -0700 Subject: [PATCH 2/2] Change capitalization --- Extension/src/nativeStrings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extension/src/nativeStrings.json b/Extension/src/nativeStrings.json index 307bc45a0..9712c9244 100644 --- a/Extension/src/nativeStrings.json +++ b/Extension/src/nativeStrings.json @@ -482,5 +482,5 @@ "file_not_found_in_path2": "\"{0}\" not found in compile_commands.json files. 'includePath' from c_cpp_properties.json in folder '{1}' will be used for this file instead.", "copilot_hover_link": "Generate Copilot summary", "browse_path_not_found": "Unable to index files from non-existent folder: {0}", - "license_terms": "The C/C++ Extension may be used only with Microsoft Visual Studio, Visual Studio for Mac, Visual Studio Code, Azure DevOps, Team Foundation Server, and successor Microsoft products and services to develop and test your applications." + "license_terms": "The C/C++ extension may be used only with Microsoft Visual Studio, Visual Studio for Mac, Visual Studio Code, Azure DevOps, Team Foundation Server, and successor Microsoft products and services to develop and test your applications." }