MCPcopy
hub / github.com/PowerShell/vscode-powershell / writeAndShowError

Method writeAndShowError

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

Source from the content-addressed store, hash-verified

116 }
117
118 public async writeAndShowError(
119 message: string,
120 ...additionalMessages: string[]
121 ): Promise<void> {
122 this.writeError(message, ...additionalMessages);
123
124 const choice = await window.showErrorMessage(message, "Show Logs");
125 if (choice !== undefined) {
126 this.showLogPanel();
127 }
128 }
129
130 public async writeAndShowErrorWithActions(
131 message: string,

Callers

nothing calls this directly

Calls 3

writeErrorMethod · 0.95
showLogPanelMethod · 0.95
showErrorMessageMethod · 0.80

Tested by

no test coverage detected