(params: ShowWarningParams)
| 161 | } |
| 162 | |
| 163 | export 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 | |
| 177 | export function logLocalized(params: LocalizeStringParams): void { |
| 178 | const output: string = getLocalizedString(params); |
nothing calls this directly
no test coverage detected