MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / onDisabledCommand

Function onDisabledCommand

Extension/src/LanguageServer/extension.ts:449–459  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

447}
448
449function onDisabledCommand() {
450 const message: string = localize(
451 {
452 key: "on.disabled.command",
453 comment: [
454 "Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
455 ]
456 },
457 "IntelliSense-related commands cannot be executed when `C_Cpp.intelliSenseEngine` is set to `disabled`.");
458 return vscode.window.showWarningMessage(message);
459}
460
461async function onRestartIntelliSenseForFile() {
462 const activeEditor: vscode.TextEditor | undefined = vscode.window.activeTextEditor;

Callers

nothing calls this directly

Calls 1

showWarningMessageMethod · 0.80

Tested by

no test coverage detected