mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Merge pull request #227235 from microsoft/tyriar/doc_comment
Correct API doc comment
This commit is contained in:
Vendored
+8
-6
@@ -7460,9 +7460,10 @@ declare module 'vscode' {
|
||||
* if (terminal === myTerm) {
|
||||
* const execution = shellIntegration.executeCommand('echo "Hello world"');
|
||||
* window.onDidEndTerminalShellExecution(event => {
|
||||
* if (event.execution === execution) {
|
||||
* console.log(`Command exited with code ${event.exitCode}`);
|
||||
* }
|
||||
* if (event.execution === execution) {
|
||||
* console.log(`Command exited with code ${event.exitCode}`);
|
||||
* }
|
||||
* });
|
||||
* }
|
||||
* }));
|
||||
* // Fallback to sendText if there is no shell integration within 3 seconds of launching
|
||||
@@ -7480,9 +7481,10 @@ declare module 'vscode' {
|
||||
* if (term.shellIntegration) {
|
||||
* const execution = shellIntegration.executeCommand({ commandLine });
|
||||
* window.onDidEndTerminalShellExecution(event => {
|
||||
* if (event.execution === execution) {
|
||||
* console.log(`Command exited with code ${event.exitCode}`);
|
||||
* }
|
||||
* if (event.execution === execution) {
|
||||
* console.log(`Command exited with code ${event.exitCode}`);
|
||||
* }
|
||||
* });
|
||||
* } else {
|
||||
* term.sendText(commandLine);
|
||||
* // Without shell integration, we can't know when the command has finished or what the
|
||||
|
||||
Reference in New Issue
Block a user