Skip to content

Commit 1e5bf74

Browse files
KJ7LNWEric Wheeler
andauthored
fix: Correct path resolution for .vite-port file in ClineProvider (#4007)
The ClineProvider was looking for the .vite-port file in the wrong location. Updated the path resolution to correctly point to the project root where the Vite development server creates the file. Fixes: #4006 Signed-off-by: Eric Wheeler <[email protected]> Co-authored-by: Eric Wheeler <[email protected]>
1 parent e66136f commit 1e5bf74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
557557
try {
558558
const fs = require("fs")
559559
const path = require("path")
560-
const portFilePath = path.resolve(__dirname, "../.vite-port")
560+
const portFilePath = path.resolve(__dirname, "../../.vite-port")
561561

562562
if (fs.existsSync(portFilePath)) {
563563
localPort = fs.readFileSync(portFilePath, "utf8").trim()

0 commit comments

Comments
 (0)