Roo-Code/webview-ui
KJ7LNW af9e471c92
dev: dynamic Vite port detection for webview development (#2339)
Implements a solution for the Vite port collision issue that allows easier development of Roo across multiple instances of VSCode in different Roo repository directories.

This may also fix crashes and strange behavior between multiple running instances that would otherwise create port conflicts. This is solved using the following automated process:
- When Vite automatically selects an alternative port, a custom plugin automatically writes the port to a '.vite-port' file in the repository root
- ClineProvider automatically reads the port from this file, falling back gracefully to port 5173 if the file doesn't exist
- No user intervention is necessary as the entire process is handled automatically
- Added detailed logging for debugging
- Added .vite-port to .gitignore

The extension now connects to the correct Vite development server port automatically, even when the default port (5173) is already in use.

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>
Co-authored-by: Eric Wheeler <roo-code@z.ewheeler.org>
2025-04-07 15:12:41 -04:00
..
.storybook Additional @shadcn/ui components 2025-02-14 23:41:39 -08:00
public Remove CRA cruft 2025-01-30 14:38:41 -08:00
src feat: enhance rule file loading with .roo/rules directory support (#2354) 2025-04-07 11:46:30 -04:00
.eslintrc.json Stabilize tests in CI 2025-02-23 02:28:10 -08:00
.gitignore PR cleanup 2025-03-12 11:23:06 -04:00
.npmrc Improved logic for auto-approving chained commands 2024-12-26 22:45:09 -08:00
components.json Remove lucide 2025-01-30 14:47:59 -08:00
index.html Roo Cline -> Roo Code 2025-01-29 21:21:20 +07:00
jest.config.cjs Add i18n 2025-03-12 11:23:06 -04:00
package-lock.json Run 'npm audit fix' on everything (#1817) 2025-03-24 14:50:53 -04:00
package.json Welcome page OAuth (#1913) 2025-03-23 10:08:16 -04:00
tsconfig.json Merged with main branch 2025-02-06 12:44:22 +05:30
vite.config.ts dev: dynamic Vite port detection for webview development (#2339) 2025-04-07 15:12:41 -04:00