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

Method dispose

src/session.ts:174–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172 }
173
174 public async dispose(): Promise<void> {
175 await this.stop(); // A whole lot of disposals.
176
177 this.languageStatusItem.dispose();
178
179 for (const handler of this.registeredHandlers) {
180 handler.dispose();
181 }
182
183 for (const command of this.registeredCommands) {
184 command.dispose();
185 }
186 }
187
188 // The `exeNameOverride` is used by `restartSession` to override ANY other setting.
189 // We've made this function idempotent, so it can used to ensure the session has started.

Callers 4

startMethod · 0.45
stopMethod · 0.45
writePidIfInDevModeMethod · 0.45

Calls 1

stopMethod · 0.95

Tested by

no test coverage detected