We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1365e67 commit 79be73eCopy full SHA for 79be73e
src/integrations/misc/open-file.ts
@@ -27,17 +27,7 @@ interface OpenFileOptions {
27
28
export async function openFile(filePath: string, options: OpenFileOptions = {}) {
29
try {
30
- // Get workspace root
31
- const workspaceRoot = vscode.workspace.workspaceFolders?.[0]?.uri.fsPath
32
- if (!workspaceRoot) {
33
- throw new Error("No workspace root found")
34
- }
35
-
36
- // If path starts with ./, resolve it relative to workspace root
37
- const fullPath = filePath.startsWith("./") ? path.join(workspaceRoot, filePath.slice(2)) : filePath
38
39
- const uri = vscode.Uri.file(fullPath)
40
+ const uri = vscode.Uri.file(filePath)
41
// Check if file exists
42
43
await vscode.workspace.fs.stat(uri)
0 commit comments