forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmockPythonSettings.ts
More file actions
37 lines (34 loc) · 1.27 KB
/
mockPythonSettings.ts
File metadata and controls
37 lines (34 loc) · 1.27 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
36
37
import { IWorkspaceService } from '../../client/common/application/types';
import { PythonSettings } from '../../client/common/configSettings';
import { IExperimentsManager, IInterpreterPathService, Resource } from '../../client/common/types';
import {
IInterpreterAutoSeletionProxyService,
IInterpreterSecurityService
} from '../../client/interpreter/autoSelection/types';
export class MockPythonSettings extends PythonSettings {
constructor(
workspaceFolder: Resource,
interpreterAutoSelectionService: IInterpreterAutoSeletionProxyService,
workspace?: IWorkspaceService,
experimentsManager?: IExperimentsManager,
interpreterPathService?: IInterpreterPathService,
interpreterSecurityService?: IInterpreterSecurityService
) {
super(
workspaceFolder,
interpreterAutoSelectionService,
workspace,
experimentsManager,
interpreterPathService,
interpreterSecurityService
);
}
public fireChangeEvent() {
this.changed.fire();
}
protected getPythonExecutable(v: string) {
// Don't validate python paths during tests. On windows this can take 4 or 5 seconds
// and slow down every test
return v;
}
}