MCPcopy Index your code
hub / github.com/PowerShell/vscode-powershell / writeAndShowWarning

Method writeAndShowWarning

src/logging.ts:102–112  ·  view source on GitHub ↗
(
        message: string,
        ...additionalMessages: string[]
    )

Source from the content-addressed store, hash-verified

100 }
101
102 public async writeAndShowWarning(
103 message: string,
104 ...additionalMessages: string[]
105 ): Promise<void> {
106 this.writeWarning(message, ...additionalMessages);
107
108 const selection = await window.showWarningMessage(message, "Show Logs");
109 if (selection !== undefined) {
110 this.showLogPanel();
111 }
112 }
113
114 public writeError(message: string, ...additionalMessages: string[]): void {
115 this.writeAtLevel(LogLevel.Error, message, ...additionalMessages);

Callers

nothing calls this directly

Calls 3

writeWarningMethod · 0.95
showLogPanelMethod · 0.95
showWarningMessageMethod · 0.80

Tested by

no test coverage detected