Skip to content

Commit

Permalink
Fixed: Now, it will only display the alias while there have duplicate…
Browse files Browse the repository at this point in the history
…d file name in the pinned list on Windows.
  • Loading branch information
SaekiRaku committed Sep 2, 2020
1 parent f3fcdeb commit d07103d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to the "vscode-pin-up" extension will be documented in this

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [1.3.1] - 2020-09-02

- Fixed: Now, it will only display the alias while there have duplicated file name in the pinned list on Windows.

## [1.3.0] - 2020-09-01

- Added: Set alias for pinned files to distinguish the same name to each other. (Resolve Feature Request of #7)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "pin-up",
"displayName": "📌 Pin Up",
"description": "Pin up files and folders that frequently opened in your project.",
"version": "1.3.0",
"version": "1.3.1",
"engines": {
"vscode": "^1.44.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/PinDataProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class PinDataProvider {
} else {
const fileName = path.basename(element.uri.path);
this._pinnedList.forEach(filePath => {
if (fileName === path.basename(filePath) && element.uri.path != utils.fixedPath(filePath)) {
if (fileName === path.basename(filePath) && utils.fixedPath(element.uri.path) != utils.fixedPath(filePath)) {
treeItem.description = path.basename(path.dirname(element.uri.path));
}
});
Expand Down

0 comments on commit d07103d

Please sign in to comment.