forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
26 lines (19 loc) · 838 Bytes
/
Copy pathtypes.ts
File metadata and controls
26 lines (19 loc) · 838 Bytes
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { TextEditor, Uri } from 'vscode';
export const ICodeExecutionService = Symbol('ICodeExecutionService');
export interface ICodeExecutionService {
execute(code: string, resource?: Uri): Promise<void>;
executeFile(file: Uri): Promise<void>;
initializeRepl(resource?: Uri): Promise<void>;
}
export const ICodeExecutionHelper = Symbol('ICodeExecutionHelper');
export interface ICodeExecutionHelper {
normalizeLines(code: string): string;
getFileToExecute(): Promise<Uri | undefined>;
getSelectedTextToExecute(textEditor: TextEditor): Promise<string | undefined>;
}
export const ICodeExecutionManager = Symbol('ICodeExecutionManager');
export interface ICodeExecutionManager {
registerCommands(): void;
}