Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
fix: gui add
Browse files Browse the repository at this point in the history
  • Loading branch information
akynazh committed Dec 24, 2024
1 parent 8342109 commit daa2429
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vsc-fav
# vsce-fav

[vsc-fav](https://github.com/akynazh/vsc-fav) is a personalized version of [fredjeck/fav](https://github.com/fredjeck/fav).
[vsce-fav](https://github.com/akynazh/vsce-fav) is a personalized version of [fredjeck/fav](https://github.com/fredjeck/fav).

- New UI
- New favorites path: `~/.vscode/fav/favorites.json`
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "fav",
"displayName": "Fav",
"description": "Keep your favorite files at a shortcut's reach",
"version": "2.1.0",
"version": "2.2.0",
"author": "akynazh",
"publisher": "akynazh",
"licence": "MIT",
Expand Down Expand Up @@ -295,13 +295,13 @@
}
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"vscode:prepublish": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode production",
"webpack": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode development",
"webpack-dev": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode development --watch",
"test-compile": "tsc -p ./",
"lint": "eslint . --ext .ts,.tsx",
"package": "vsce package -o ./packages",
"publish": "vsce publish",
"package": "NODE_OPTIONS=--openssl-legacy-provider vsce package -o ./packages",
"publish": "NODE_OPTIONS=--openssl-legacy-provider vsce publish",
"minor": "vsce publish minor",
"patch": "vsce publish patch"
},
Expand Down
2 changes: 2 additions & 0 deletions src/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class FavoriteManager {
return;
}


if (!toGroup) {
this._store.add(fav);
this._provider.refresh();
Expand Down Expand Up @@ -107,6 +108,7 @@ export class FavoriteManager {

let fav = new Favorite();
fav.label = label;
path = path.replace(os.homedir(), '~');
fav.resourcePath = path || '';

return fav;
Expand Down

0 comments on commit daa2429

Please sign in to comment.