@@ -12,7 +12,7 @@ declare module 'vscode' {
12
12
/**
13
13
* The {@link Terminal} the command was executed in.
14
14
*/
15
- terminal : Terminal ;
15
+ readonly terminal : Terminal ;
16
16
17
17
/**
18
18
* The full command line that was executed, including both the command and arguments.
@@ -26,7 +26,7 @@ declare module 'vscode' {
26
26
* - It may be inaccurate if the shell integration does not support command line reporting
27
27
* via the [`OSC 633 ; E` sequence](https://code.visualstudio.com/docs/terminal/shell-integration#_vs-code-custom-sequences-osc-633-st).
28
28
*/
29
- commandLine : string | undefined ;
29
+ readonly commandLine : string | undefined ;
30
30
31
31
/**
32
32
* The working directory that was reported by the shell when this command executed. This
@@ -35,12 +35,12 @@ declare module 'vscode' {
35
35
* reporting via the [`OSC 633 ; P`](https://code.visualstudio.com/docs/terminal/shell-integration#_vs-code-custom-sequences-osc-633-st)
36
36
* or `OSC 1337 ; CurrentDir=<Cwd> ST` sequences.
37
37
*/
38
- cwd : Uri | string | undefined ;
38
+ readonly cwd : Uri | string | undefined ;
39
39
40
40
/**
41
41
* The exit code reported by the shell.
42
42
*/
43
- exitCode : Thenable < number | undefined > ;
43
+ readonly exitCode : Thenable < number | undefined > ;
44
44
45
45
/**
46
46
* Creates a stream of raw data (including escape sequences) that is written to the
@@ -65,8 +65,12 @@ declare module 'vscode' {
65
65
* features for the terminal. This will always be undefined immediately after the terminal
66
66
* is created. Listen to {@link window.onDidActivateTerminalShellIntegration} to be notified
67
67
* when shell integration is activated for a terminal.
68
+ *
69
+ * Note that this object may remain undefined if shell integation never activates. For
70
+ * example Command Prompt does not support shell integration and a user's shell setup could
71
+ * conflict with the automatic shell integration activation.
68
72
*/
69
- shellIntegration : TerminalShellIntegration | undefined ;
73
+ readonly shellIntegration : TerminalShellIntegration | undefined ;
70
74
}
71
75
72
76
export interface TerminalShellIntegration {
@@ -75,7 +79,7 @@ declare module 'vscode' {
75
79
* The current working directory of the terminal. This will be a {@link Uri} if the string
76
80
* reported by the shell can reliably be mapped to the connected machine.
77
81
*/
78
- cwd : Uri | string | undefined ;
82
+ readonly cwd : Uri | string | undefined ;
79
83
80
84
/**
81
85
* Execute a command, sending ^C as necessary to interrupt any running command if needed.
@@ -177,11 +181,11 @@ declare module 'vscode' {
177
181
/**
178
182
* The terminal that shell integration has been activated in.
179
183
*/
180
- terminal : Terminal ;
184
+ readonly terminal : Terminal ;
181
185
/**
182
186
* The shell integration object.
183
187
*/
184
- shellIntegration : TerminalShellIntegration ;
188
+ readonly shellIntegration : TerminalShellIntegration ;
185
189
}
186
190
187
191
export namespace window {
0 commit comments