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 e212ae5 commit 79d64efCopy full SHA for 79d64ef
1 file changed
packages/vscode/src/commands/save-context-command.ts
@@ -278,6 +278,10 @@ export function save_context_command(
278
})
279
}
280
281
+ all_prefixed_paths = all_prefixed_paths.map((p) =>
282
+ p.replace(/\\/g, '/')
283
+ )
284
+
285
all_prefixed_paths.sort((a, b) => {
286
const workspace_folders = vscode.workspace.workspaceFolders
287
@@ -301,8 +305,8 @@ export function save_context_command(
301
305
const path_part_a = get_path_part_for_sorting(a)
302
306
const path_part_b = get_path_part_for_sorting(b)
303
307
304
- const is_nested_a = path_part_a.includes(path.sep)
- const is_nested_b = path_part_b.includes(path.sep)
308
+ const is_nested_a = path_part_a.includes('/')
309
+ const is_nested_b = path_part_b.includes('/')
310
311
if (is_nested_a && !is_nested_b) {
312
return -1
0 commit comments