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
49 lines (48 loc) · 1.62 KB
/
types.ts
File metadata and controls
49 lines (48 loc) · 1.62 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
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
export type EditorLoadTelemetry = {
condaVersion: string;
};
export type FormatTelemetry = {
tool: 'autoppep8' | 'yapf';
hasCustomArgs: boolean;
formatSelection: boolean;
};
export type LintingTelemetry = {
tool: 'flake8' | 'mypy' | 'pep8' | 'prospector' | 'pydocstyle' | 'pylama' | 'pylint';
hasCustomArgs: boolean;
trigger: 'save' | 'auto';
executableSpecified: boolean;
};
export type PythonInterpreterTelemetry = {
trigger: 'ui' | 'shebang' | 'load';
failed: boolean;
version: string;
pipVersion: string;
};
export type CodeExecutionTelemetry = {
scope: 'file' | 'selection';
};
export type DebuggerTelemetry = {
trigger: 'launch' | 'attach'
console?: 'none' | 'integratedTerminal' | 'externalTerminal';
debugOptions?: string;
pyspark?: boolean;
hasEnvVars?: boolean;
};
export type TestRunTelemetry = {
tool: 'nosetest' | 'pytest' | 'unittest'
scope: 'currentFile' | 'all' | 'file' | 'class' | 'function' | 'failed';
debugging: boolean;
trigger: 'ui' | 'codelens' | 'commandpalette' | 'auto';
failed: boolean;
};
export type TestDiscoverytTelemetry = {
tool: 'nosetest' | 'pytest' | 'unittest'
trigger: 'ui' | 'commandpalette';
failed: boolean;
};
export type FeedbackTelemetry = {
action: 'accepted' | 'dismissed' | 'doNotShowAgain';
};
export type TelemetryProperties = FormatTelemetry | LintingTelemetry | EditorLoadTelemetry | PythonInterpreterTelemetry | CodeExecutionTelemetry | TestRunTelemetry | TestDiscoverytTelemetry | FeedbackTelemetry;