Skip to content

Commit eff40ad

Browse files
committed
Add isTrusted prop
1 parent df399eb commit eff40ad

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ declare module 'vscode' {
6161
*/
6262
value: string;
6363

64+
/**
65+
* Whether the command line value came from a trusted source and is therefore safe to
66+
* execute without user additional confirmation (eg. a notification "Do you want to execute
67+
* (command)?".
68+
*
69+
* This is false when the command line was reported explicitly by the shell integration
70+
* script (ie. {@link TerminalShellExecutionCommandLineConfidence.High high confidence}),
71+
* but did not include a nonce for verification.
72+
*/
73+
isTrusted: boolean;
74+
6475
/**
6576
* The confidence of the command line value which is determined by how the value was
6677
* obtained. This depends upon the implementation of the shell integration script.

0 commit comments

Comments
 (0)