Skip to content

Commit c310dac

Browse files
committed
Expand docs
1 parent 663e109 commit c310dac

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

src/vscode-dts/vscode.d.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12467,8 +12467,15 @@ declare module 'vscode' {
1246712467

1246812468
/**
1246912469
* The nonce to use to verify shell integration sequences are coming from a trusted source.
12470-
* If your terminal implements [custom shell integration support](https://code.visualstudio.com/docs/terminal/shell-integration#_supported-escape-sequences)
12471-
* this should be set to a random GUID and then passed along in the relevant sequences.
12470+
* An example impact of UX of this is if the command line is reported with a nonce, it will
12471+
* not need to verify with the user that the command line is correct before rerunning it
12472+
* via the [shell integration command decoration](https://code.visualstudio.com/docs/terminal/shell-integration#_command-decorations-and-the-overview-ruler).
12473+
*
12474+
* This should be used if the terminal includes [custom shell integration support](https://code.visualstudio.com/docs/terminal/shell-integration#_supported-escape-sequences).
12475+
* It should be set to a random GUID which will then set the `VSCODE_NONCE` environment
12476+
* variable. Inside the shell, this should then be removed from the environment so as to
12477+
* protect it from general access. Once that is done it can be passed through in the
12478+
* relevant sequences to make them trusted.
1247212479
*/
1247312480
shellIntegrationNonce?: string;
1247412481
}
@@ -12513,8 +12520,13 @@ declare module 'vscode' {
1251312520

1251412521
/**
1251512522
* The nonce to use to verify shell integration sequences are coming from a trusted source.
12516-
* If your terminal implements [custom shell integration support](https://code.visualstudio.com/docs/terminal/shell-integration#_supported-escape-sequences)
12517-
* this should be set to a random GUID and then passed along in the relevant sequences.
12523+
* An example impact of UX of this is if the command line is reported with a nonce, it will
12524+
* not need to verify with the user that the command line is correct before rerunning it
12525+
* via the [shell integration command decoration](https://code.visualstudio.com/docs/terminal/shell-integration#_command-decorations-and-the-overview-ruler).
12526+
*
12527+
* This should be used if the terminal includes [custom shell integration support](https://code.visualstudio.com/docs/terminal/shell-integration#_supported-escape-sequences).
12528+
* It should be set to a random GUID. Inside the {@link Pseudoterminal} implementation, this value
12529+
* can be passed through in the relevant sequences to make them trusted.
1251812530
*/
1251912531
shellIntegrationNonce?: string;
1252012532
}

0 commit comments

Comments
 (0)