Skip to content

Commit 5cdf7ed

Browse files
committed
Fix model file label on Windows
1 parent 89c318b commit 5cdf7ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/ql-vscode/src/data-extensions-editor/extension-pack-picker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { relative } from "path";
1+
import { relative, sep } from "path";
22
import { window } from "vscode";
33
import { CodeQLCliServer } from "../cli";
44
import { getOnDiskWorkspaceFolders, showAndLogErrorMessage } from "../helpers";
@@ -95,7 +95,7 @@ async function pickModelFile(
9595
const fileOptions: Array<{ label: string; file: string }> = [];
9696
for (const file of modelFiles) {
9797
fileOptions.push({
98-
label: relative(extensionPackPath, file),
98+
label: relative(extensionPackPath, file).replaceAll(sep, "/"),
9999
file,
100100
});
101101
}

0 commit comments

Comments
 (0)