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
60 lines (56 loc) · 1.9 KB
/
types.ts
File metadata and controls
60 lines (56 loc) · 1.9 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
50
51
52
53
54
55
56
57
58
59
60
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { TerminalShellType } from '../common/terminal/types';
import { LinterId } from '../linters/types';
export type EditorLoadTelemetry = {
condaVersion: string | undefined;
terminal: TerminalShellType;
};
export type FormatTelemetry = {
tool: 'autopep8' | 'black' | 'yapf';
hasCustomArgs: boolean;
formatSelection: boolean;
};
export type LinterTrigger = 'auto' | 'save';
export type LintingTelemetry = {
tool: LinterId;
hasCustomArgs: boolean;
trigger: LinterTrigger;
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 DebuggerPerformanceTelemetry = {
duration: number;
action: 'stepIn' | 'stepOut' | 'continue' | 'next' | 'launch';
};
export type TestRunTelemetry = {
tool: 'nosetest' | 'pytest' | 'unittest';
scope: 'currentFile' | 'all' | 'file' | 'class' | 'function' | 'failed';
debugging: boolean;
triggeredBy: '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;