From daa2429bc33fbde507e6f8a7cb65a38c716f9a02 Mon Sep 17 00:00:00 2001 From: jiangzhh Date: Tue, 24 Dec 2024 23:51:06 +0800 Subject: [PATCH] fix: gui add --- README.md | 4 ++-- package-lock.json | 4 ++-- package.json | 12 ++++++------ src/manager.ts | 2 ++ 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 7e869eb..a088e84 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/package-lock.json b/package-lock.json index dd1eb22..5f70511 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fav", - "version": "2.0.1", + "version": "2.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "fav", - "version": "2.0.1", + "version": "2.1.0", "dependencies": { "glob": "^7.1.6" }, diff --git a/package.json b/package.json index 812b036..de297cd 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" }, diff --git a/src/manager.ts b/src/manager.ts index 8a7d6f3..565208d 100644 --- a/src/manager.ts +++ b/src/manager.ts @@ -77,6 +77,7 @@ export class FavoriteManager { return; } + if (!toGroup) { this._store.add(fav); this._provider.refresh(); @@ -107,6 +108,7 @@ export class FavoriteManager { let fav = new Favorite(); fav.label = label; + path = path.replace(os.homedir(), '~'); fav.resourcePath = path || ''; return fav;