software-mansion / radon-ide

VSCode extension that turns your editor into a fully fledged IDE for React Native and Expo.
https://ide.swmansion.com
Other
867 stars 29 forks source link

Move all commands to use message proxies #575

Open kmagiera opened 1 day ago

kmagiera commented 1 day ago

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)
vercel[bot] commented 1 day ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-ide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 1:15pm