forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
25 lines (21 loc) · 937 Bytes
/
types.ts
File metadata and controls
25 lines (21 loc) · 937 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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { Uri } from 'vscode';
import { Product } from '../types';
export const IModuleInstaller = Symbol('IModuleInstaller');
export interface IModuleInstaller {
readonly displayName: string;
readonly priority: number;
installModule(name: string, resource?: Uri): Promise<void>;
isSupported(resource?: Uri): Promise<boolean>;
}
export const IPythonInstallation = Symbol('IPythonInstallation');
export interface IPythonInstallation {
checkInstallation(): Promise<boolean>;
}
export const IInstallationChannelManager = Symbol('IInstallationChannelManager');
export interface IInstallationChannelManager {
getInstallationChannel(product: Product, resource?: Uri): Promise<IModuleInstaller | undefined>;
getInstallationChannels(resource?: Uri): Promise<IModuleInstaller[]>;
showNoInstallersMessage(): void;
}