MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / showWarning

Function showWarning

Extension/src/logger.ts:163–175  ·  view source on GitHub ↗
(params: ShowWarningParams)

Source from the content-addressed store, hash-verified

161}
162
163export function showWarning(params: ShowWarningParams): void {
164 const message: string = getLocalizedString(params.localizeStringParams);
165 let showChannel: boolean = false;
166 if (!warningChannel) {
167 warningChannel = vscode.window.createOutputChannel(`${localize("c.cpp.warnings", "C/C++ Configuration Warnings")}`);
168 showChannel = true;
169 }
170 // Append before showing the channel, to avoid a delay.
171 warningChannel.appendLine(`[${new Date().toLocaleString()}] ${message}`);
172 if (showChannel) {
173 warningChannel.show(true);
174 }
175}
176
177export function logLocalized(params: LocalizeStringParams): void {
178 const output: string = getLocalizedString(params);

Callers

nothing calls this directly

Calls 3

getLocalizedStringFunction · 0.90
appendLineMethod · 0.80
showMethod · 0.45

Tested by

no test coverage detected