Skip to content

Commit d515544

Browse files
authored
Allow notifications during initialization (#13443)
* Allow notifications during initialization * Change capitalization
1 parent 569bf64 commit d515544

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,6 +1700,7 @@ export class DefaultClient implements Client {
17001700
languageClient.onNotification(DebugProtocolNotification, logDebugProtocol);
17011701
languageClient.onNotification(DebugLogNotification, logLocalized);
17021702
languageClient.onNotification(LogTelemetryNotification, (e) => this.logTelemetry(e));
1703+
languageClient.onNotification(ShowMessageWindowNotification, showMessageWindow);
17031704
languageClient.registerProposedFeatures();
17041705
await languageClient.start();
17051706

@@ -2490,7 +2491,6 @@ export class DefaultClient implements Client {
24902491
this.languageClient.onNotification(IntelliSenseResultNotification, (e) => this.handleIntelliSenseResult(e));
24912492
this.languageClient.onNotification(PublishRefactorDiagnosticsNotification, publishRefactorDiagnostics);
24922493
RegisterCodeAnalysisNotifications(this.languageClient);
2493-
this.languageClient.onNotification(ShowMessageWindowNotification, showMessageWindow);
24942494
this.languageClient.onNotification(ShowWarningNotification, showWarning);
24952495
this.languageClient.onNotification(ReportTextDocumentLanguage, (e) => this.setTextDocumentLanguage(e));
24962496
this.languageClient.onNotification(IntelliSenseSetupNotification, (e) => this.logIntelliSenseSetupTime(e));

Extension/src/nativeStrings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,5 +481,6 @@
481481
"expand_selection": "Expand selection (to enable 'Extract to function')",
482482
"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.",
483483
"copilot_hover_link": "Generate Copilot summary",
484-
"browse_path_not_found": "Unable to index files from non-existent folder: {0}"
484+
"browse_path_not_found": "Unable to index files from non-existent folder: {0}",
485+
"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."
485486
}

0 commit comments

Comments
 (0)