Skip to content

Commit a247949

Browse files
revert change to getWorkspacePath
1 parent 8f35671 commit a247949

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/utils/path.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,5 @@ export const toRelativePath = (filePath: string, cwd: string) => {
108108

109109
export const getWorkspacePath = (defaultCwdPath = "") => {
110110
const cwdPath = vscode.workspace.workspaceFolders?.map((folder) => folder.uri.fsPath).at(0) || defaultCwdPath
111-
const currentFileUri = vscode.window.activeTextEditor?.document.uri
112-
if (currentFileUri) {
113-
const workspaceFolder = vscode.workspace.getWorkspaceFolder(currentFileUri)
114-
return workspaceFolder?.uri.fsPath || cwdPath
115-
}
116111
return cwdPath
117112
}

0 commit comments

Comments
 (0)