forked from eclipse-theia/theia
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Debug view] Add dynamic debug configurations
Following the support for dynamic debug configurations via command Debug: Select and Start debugging. PR eclipse-theia#10134 This change extends the functionality further to bring provided dynamic debug configurations to the list of available configurations under the debug view. The user can select these dynamic configurations by first selecting the debug type and a quick pick input box will follow to allow the selection from the available configurations of the selected type. Once a dynamic configuration has been selected it will be added to a short list (limited to 3) of recently used dynamic debug configurations, these entries are available to the user, rendered with the name and suffixed with the debug type in parenthesis. This will facilitate subsequent selection / execution. This change additionally preserves and restores the list of recently selected dynamic debug configurations so they are presented in subsequent sessions. These configurations are refreshed from the providers when: - Configuration providers are registered or unregistered - Focus is gained or lost by the configuration selection box Refreshing these configurations intends to render valid dynamic configurations to the current context. e.g. - Honoring an extension 'when' clause to a file with a specific extension opened in the active editor. However there are situations where the context for execution of a dynamic configuration may no longer be valid e.g. - The configuration is restored from a previous session and the currently selected file is not supported. - The switch of context may not have involved a refresh of dynamic debug configurations. (e.g. switching active editors, etc.) Considering the above, execution of dynamic configurations triggers the fetch of dynamic configurations for the selected provider type, if the configuration is no longer provided, the user will be notified of a missing configuration or not applicable to the current context. Signed-off-by: Alvaro Sanchez-Leon <[email protected]> Co-authored-by: Paul Marechal <[email protected]>
- Loading branch information
1 parent
5f887e2
commit e1e200a
Showing
15 changed files
with
516 additions
and
118 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
Oops, something went wrong.