-
Notifications
You must be signed in to change notification settings - Fork 736
feat(telemetry): Crash Monitoring #5684
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
728c54c
dev: Command to force IDE ExtHost to crash
nkomonen-amazon d710b37
add doc about vscode behaviors
nkomonen-amazon 4113d7a
fix OS Utils Pc Session start method, should work for all OS
nkomonen-amazon 0abd0ec
feat: Crash Monitoring
nkomonen-amazon 0083d36
Update packages/core/src/dev/activation.ts
justinmk3 08128a2
move constants to the main constant file
nkomonen-amazon 85f04b2
extracted out of topic folder
nkomonen-amazon 35e675a
rename variable
nkomonen-amazon d6012a5
move file
nkomonen-amazon 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # VS Code Behaviors | ||
|
|
||
| Many VS Code behavoirs for certain APIs or user interactions with the IDE are not clearly documented, | ||
| or documented at all. Please add any findings to this document. | ||
|
|
||
| ## `deactivate()` - extension shutdown | ||
|
|
||
| This method is defined as part of the VS Code extension API, and is run on a **graceful** shutdown | ||
| for each extension. | ||
|
|
||
| - Our extension and its `deactivate()` function are in the Extension Host process [1] | ||
| - The Extension Host process has at most 5 seconds to shut down, after which it will exit. [1] | ||
| - The vscode API will be unreliable at deactivation time. So certain VSC APIs like the filesystem may not work. [1] | ||
| - The VSC Filesystem API has been confirmed to not work | ||
| - In `Run & Debug` mode, closing the Debug IDE instance behaves differently depending on how it is closed | ||
| - The regular close button in the Debug IDE instance results in a graceful shutdown | ||
| - The red square in the root IDE instance to stop the debugging session results on a non-graceful shutdown, meaning `deactivate()` is not run. | ||
|
|
||
| Sources: | ||
|
|
||
| - [[1]](https://github.com/Microsoft/vscode/issues/47881#issuecomment-381910587) | ||
| - [[2]](https://github.com/microsoft/vscode/issues/122825#issuecomment-814218149) |
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
Oops, something went wrong.
Oops, something went wrong.
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.
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 this different than vscode's

Restart Extension Hostcommand?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.
Restart Extension Hoststill results in a graceful shutdown of the extension host (deactivate()runs), while this one is non-graceful