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 8f35671 commit a247949Copy full SHA for a247949
src/utils/path.ts
@@ -108,10 +108,5 @@ export const toRelativePath = (filePath: string, cwd: string) => {
108
109
export const getWorkspacePath = (defaultCwdPath = "") => {
110
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
- }
116
return cwdPath
117
}
0 commit comments