-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: various debug fixes and VS Code compatibility enhancements (#11984)
* fix: various debug fixes and VS Code compatibility enhancements - feat: added support for `debug/toolbar` and `debug/variables/context`, - feat: added support for `debugState` when context (#11871), - feat: can customize debug session timeout, and error handling (#11879), - fix: the `debugType` context that is not updated, - fix: `configure` must happen after receiving capabilities (#11886), - fix: added missing conext menu in the _Variables_ view, - fix: handle `setFunctionBreakboints` response with no `body` (#11885), - fix: `DebugExt` fires `didStart` event on `didCreate` (#11916), - fix: validate editor selection based on the text model (#11880) Signed-off-by: Akos Kitta <[email protected]> * fix: use when context for command node filtering Signed-off-by: Akos Kitta <[email protected]> * chore: removed test debug VSIX Signed-off-by: Akos Kitta <[email protected]> * fix: revert `timeout` check Signed-off-by: Akos Kitta <[email protected]> * fix: clarification on the possible `'debugState'` Signed-off-by: Akos Kitta <[email protected]> * fix: use hard-coded debugger `clientID` and `clientName` Signed-off-by: Akos Kitta <[email protected]> * fix: use review-requested method name Signed-off-by: Akos Kitta <[email protected]> * fix: changed method name + added doc Signed-off-by: Akos Kitta <[email protected]> * fix: `stopTimeout` is a default `ctor` argument Signed-off-by: Akos Kitta <[email protected]> * fix: incorrect method name Signed-off-by: Akos Kitta <[email protected]> * fix: both `didCreate` and `didStart` must be API Signed-off-by: Akos Kitta <[email protected]> * fix: call both on create and start Signed-off-by: Akos Kitta <[email protected]> * fix: workaround for microsoft/vscode-mock-debug#85 Signed-off-by: Akos Kitta <[email protected]> * simplify writing The collection of contributed commands was written in a convoluted way, this commit makes it more straightforward with just 2 loops. * use `Math.max` to clamp values into positives The ternary implementation is stricly equivalent to the `Math.max` function, so use that instead. * fix default option value handling Assigning a default option object to set default values is problematic as said default values will be discarded if any option object is passed. Instead default values must be handled in conjuction of whatever options are passed to functions. Signed-off-by: Akos Kitta <[email protected]> Co-authored-by: Paul Maréchal <[email protected]>
- Loading branch information
1 parent
f925bdb
commit 678e335
Showing
14 changed files
with
207 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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.