Skip to content

Commit

Permalink
fix: fix fileview path bug
Browse files Browse the repository at this point in the history
  • Loading branch information
eri24816 committed Jun 26, 2024
1 parent 9213cf1 commit 7aa6d9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/sobjects/fileView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,14 @@ export class FileView extends CompSObject{

private itemDoubleClicked(info:any){
if(info.type == 'workspace'){
this.openWorkspace(info.path)
this.openWorkspace(this.currentPath+'/'+info.path)
}else if(info.type == 'dir'){
this.changeDir(info.name)
}
}

private openWorkspace(path: string){
// check if installed extensions are sufficent to open the selected workspace
path = this.currentPath+'/'+path
const meta = this.metadataCache.get(path)
const incompatibleExtensions = []
if(meta.extensions && meta.extensions.length > 0)
Expand Down

0 comments on commit 7aa6d9b

Please sign in to comment.