(id: string, options: WorkspaceRuntimeDisposeOptions = {})
| 151 | } |
| 152 | |
| 153 | async disposeExec(id: string, options: WorkspaceRuntimeDisposeOptions = {}): Promise<void> { |
| 154 | assertExecutionId(id); |
| 155 | const backend = this.#backend(options.backend); |
| 156 | if (this.#options.commandBackendIds.has(backend)) { |
| 157 | await this.#options.shell().dispose(id, { backend }); |
| 158 | return; |
| 159 | } |
| 160 | await (await this.#options.moduleHandle(backend)).disposeExec({ id }); |
| 161 | } |
| 162 | |
| 163 | #backend(requested: string | undefined): string { |
| 164 | const backend = this.#options.resolveBackendId(requested); |
nothing calls this directly
no test coverage detected