MCPcopy Index your code
hub / github.com/REditorSupport/vscode-R / deleteTerminal

Function deleteTerminal

src/rTerminal.ts:163–174  ·  view source on GitHub ↗
(term: vscode.Terminal)

Source from the content-addressed store, hash-verified

161}
162
163export function deleteTerminal(term: vscode.Terminal): void {
164 if (isDeepStrictEqual(term, rTerm)) {
165 rTerm = undefined;
166 if (config().get<boolean>('sessionWatcher')) {
167 void term.processId.then((v) => {
168 if (v) {
169 void cleanupSession(v.toString());
170 }
171 });
172 }
173 }
174}
175
176export async function chooseTerminal(): Promise<vscode.Terminal | undefined> {
177 // VSCode Python's extension creates hidden terminal with string 'Deactivate'

Callers 1

restartRTerminalFunction · 0.85

Calls 3

configFunction · 0.90
cleanupSessionFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected