forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnonDebugClientV2.ts
More file actions
35 lines (30 loc) · 1.19 KB
/
Copy pathnonDebugClientV2.ts
File metadata and controls
35 lines (30 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { ChildProcess } from 'child_process';
import { DebugSession } from 'vscode-debugadapter';
import { LaunchRequestArguments } from '../Common/Contracts';
import { IDebugLauncherScriptProvider } from '../types';
import { DebugType } from './DebugClient';
import { LocalDebugClientV2 } from './localDebugClientV2';
export class NonDebugClientV2 extends LocalDebugClientV2 {
constructor(args: LaunchRequestArguments, debugSession: DebugSession, canLaunchTerminal: boolean, launcherScriptProvider: IDebugLauncherScriptProvider) {
super(args, debugSession, canLaunchTerminal, launcherScriptProvider);
}
public get DebugType(): DebugType {
return DebugType.RunLocal;
}
public Stop() {
super.Stop();
if (this.pyProc) {
try {
this.pyProc!.kill();
// tslint:disable-next-line:no-empty
} catch { }
this.pyProc = undefined;
}
}
protected handleProcessOutput(proc: ChildProcess, _failedToLaunch: (error: Error | string | Buffer) => void) {
// Do nothing
}
}