-
Notifications
You must be signed in to change notification settings - Fork 41.9k
Proposal TerminalExitStatus.reason #152833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Daniel Imms (Tyriar)
merged 11 commits into
microsoft:main
from
jeanp413:proposal-130231
Jul 11, 2022
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
757c5f5
Proposal TerminalExitStatus
jeanp413 4e102e6
More granular TerminalExitReason
jeanp413 bf18550
Merge remote-tracking branch 'upstream/main' into proposal-130231
jeanp413 ac70882
:lipstick:
jeanp413 318bdcc
Fix tests
jeanp413 4ccbed7
Update src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
jeanp413 741b3ca
Merge branch 'main' into proposal-130231
Tyriar ded49a1
Merge branch 'main' into proposal-130231
Tyriar 34b4074
setExitCode -> setExitStatus
Tyriar 1e00e60
Fix typo
Tyriar fcbef68
Merge branch 'main' into proposal-130231
Tyriar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Proposal TerminalExitStatus
- Loading branch information
commit 757c5f54c90bfde5406d0436df3229cb8e5d12bc
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) Microsoft Corporation. All rights reserved. | ||
| * Licensed under the MIT License. See License.txt in the project root for license information. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| declare module 'vscode' { | ||
|
|
||
| // https://github.com/microsoft/vscode/issues/130231 | ||
|
|
||
| /** | ||
| * Terminal exit reason kind. | ||
| */ | ||
| export enum TerminalExitReason { | ||
| /** | ||
| * Unknow reason, possible reasons could be: | ||
| * - Triggered by user action | ||
| * - Triggered by running process | ||
| * - Triggered by an extension | ||
| */ | ||
| Unknown = 0, | ||
|
jeanp413 marked this conversation as resolved.
|
||
|
|
||
| /** | ||
| * The window closed/reloaded. | ||
| */ | ||
| Shutdown = 1 | ||
| } | ||
|
|
||
| export interface TerminalExitStatus { | ||
| /** | ||
| * The reason that triggered the exit of a terminal. | ||
| */ | ||
| readonly reason: TerminalExitReason | undefined; | ||
|
jeanp413 marked this conversation as resolved.
Outdated
|
||
| } | ||
|
|
||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is
immediatedeprecated? There was only one place that used it (interminalQuickAccess.ts) but I changed it toterminalService.safeDisposeTerminalso it's the same as other calls.If not I'll revet this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not totally sure what the current state of this is, but it was always a bit of a hack to add a param to dispose like this so I'd want to move away from it if we were to change things in this area.