Implement VS Code extensions namespace #11887
Merged
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.
Signed-off-by: thegecko rob.moran@arm.com
What it does
This PR implements the extensions namespace in the VS Code API which is currently marked as not implemented in the comparison coverage report.
The functionality was already implemented, but exposed under the
plugins
export.How to test
You can test the extensions
onDidChange
event by hooking into it in a VS Code extension.You can test the
getExtension
function by calling it from a VS Code extension. You can then activate this extension and access the functionality on it using this pattern:https://github.com/Marus/cortex-debug-db-stm32f4/blob/master/src/extension.ts#L15
Note: access to plugins is currently only possible within the same extensionHost (this matches VS Code functionality)
Review checklist
Reminder for reviewers