Skip to content

Commit

Permalink
fix: use unequal name on opened editor (#1591)
Browse files Browse the repository at this point in the history
* fix: use unequal name on opened editor

* chore: fix test
  • Loading branch information
erha19 authored Sep 1, 2022
1 parent c47118c commit 33da66c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class EditorFile extends TreeNode {
public tooltip: string,
parent: EditorFileGroup | undefined,
) {
super(tree as ITree, parent, undefined, { name: `${resource.uri.path.toString()}` });
super(tree as ITree, parent, undefined, { name: `${resource.uri.toString()}` });
}

get displayName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ export class OpenedEditorService extends Tree {
.join(groupName)
.join(
resource && (resource as IResource).uri
? (resource as IResource).uri.path.toString()
: (resource as URI).path.toString(),
? (resource as IResource).uri.toString()
: (resource as URI).toString(),
)
.toString();
} else {
path = new Path(path)
.join(
resource && (resource as IResource).uri
? (resource as IResource).uri.path.toString()
: (resource as URI).path.toString(),
? (resource as IResource).uri.toString()
: (resource as URI).toString(),
)
.toString();
}
Expand Down

0 comments on commit 33da66c

Please sign in to comment.