Fixing new file keybinding logic; fixing file selection when only oe remains

This commit is contained in:
2025-07-03 10:22:53 -05:00
parent d0c73fe4da
commit 5aa6c7ca10
3 changed files with 13 additions and 4 deletions

View File

@@ -132,7 +132,7 @@ export class CodeViewBase {
return result;
},
onAccept: (data) => {
let fpath = data.value;
let fpath = (data.value) ? data.value : data.item;
let path = "";
for (let i = 0; i < stubPaths.length; i++) {
@@ -143,8 +143,9 @@ export class CodeViewBase {
if (!path) return;
this.activeFile = this.filesService.get(path);
this.editor.setSession(this.activeFile.session);
this.editorsService.setSession(
this.filesService.get(path)
);
}
});