-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all commands to use message proxies (#575)
A while ago we introduced a new messaging mechanism that uses TypeScript interface and JS proxies to provide a RPC-like experience. We still had some leftover commands in the codebase, some of which were triggering some abandoned and unused code sections. This PR migrates the remaining commands to use the new RPC mechanism and cleans up dead code some of the unused commands were accessing. 1. We are migrating error message and open URL commands to Utils interface 2. We are updating relevant parts of the webview UI code to use Utils interface instead of calling into vscode API directly 3. We are deleting "file follow" commands and related code that was only updating some internal variables that we never used. # Test plan 1. Open project with IDE 2. Click "report issue command" (which uses open URL)
- Loading branch information
Showing
7 changed files
with
25 additions
and
64 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
10 changes: 4 additions & 6 deletions
10
packages/vscode-extension/src/webview/components/shared/Anchor.tsx
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