forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebugService.ts
More file actions
21 lines (18 loc) · 795 Bytes
/
debugService.ts
File metadata and controls
21 lines (18 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { injectable } from 'inversify';
import { debug, DebugConfiguration, DebugSession, Event, WorkspaceFolder } from 'vscode';
import { IDebugService } from './types';
@injectable()
export class DebugService implements IDebugService {
public get onDidStartDebugSession(): Event<DebugSession> {
return debug.onDidStartDebugSession;
}
public get onDidTerminateDebugSession(): Event<DebugSession> {
return debug.onDidTerminateDebugSession;
}
public startDebugging(folder: WorkspaceFolder | undefined, nameOrConfiguration: string | DebugConfiguration): Thenable<boolean> {
return debug.startDebugging(folder, nameOrConfiguration);
}
}