Skip to content

Commit 9f441f9

Browse files
committed
Fix for Windows
1 parent 688c149 commit 9f441f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vscode-dotty/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export function activate(context: ExtensionContext) {
106106
* Adding a first folder to the workspace completely reloads the extension.
107107
*/
108108
function setWorkspaceAndReload(document: vscode.TextDocument) {
109-
const documentPath = path.parse(document.uri.path).dir
109+
const documentPath = path.parse(document.uri.fsPath).dir
110110
const workspaceRoot = findWorkspaceRoot(documentPath) || documentPath
111111
vscode.workspace.updateWorkspaceFolders(0, null, { uri: vscode.Uri.file(workspaceRoot) })
112112
}

0 commit comments

Comments
 (0)