From eb60dad55eb57e26c4bc30872454822bd0e135cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nilo=C3=A9=20Mahaut?= Date: Mon, 18 Nov 2024 10:59:44 +0100 Subject: [PATCH] fix initRepo command --- .gitignore | 1 + CHANGELOG.md | 14 +++++++++++--- extension.js | 5 ++++- package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 10686ce..371b04f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules .vscode-test/ *.vsix +.vscode/bookmarks.json \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 43c3136..9d65f42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,6 @@ - Upload only active file - Make it possible to receive a webhook to send info to user => maybe not possible - clean code (more) -- message on deactivate if not everything is pushed - check if commit msg was already pushed with `git log main --format=%s` and propose increment - make a better Readme.md - rename extension @@ -14,12 +13,16 @@ - description in package.json - if possible verify credential manager - if possible, Show a list of available repositories -- status bar item onClick doesn't realy check if outputLogChannel is opened => not possible to fix because of vscode API + +## [0.3.1] - 2024-07-19 + +- fix initRepo command ## [0.3.0] - 2024-07-19 + - fix autoIncrement > if 2x same number, it incremented the wrong one - check for conflicts before push - + clickable link to file + - clickable link to file - keep lastGitCommitMsg through vscode restart - trim commit message before push - clean code @@ -61,3 +64,8 @@ ## [0.0.1] - 2024-02-01 - Initial release + +## [removed from plan] + +- message on quit (vscode) if not everything is pushed => doesn't seem possible with vsocde api +- status bar item onClick doesn't realy check if outputLogChannel is opened => not possible to fix because of vscode API diff --git a/extension.js b/extension.js index f70b0f0..9e3b0af 100644 --- a/extension.js +++ b/extension.js @@ -70,7 +70,10 @@ async function activate(context) { context.subscriptions.push(disposable); disposable = vscode.commands.registerCommand("dwm-git-simpleuse.initRepo", async function () { - if (!(await isInGitRepo(true))) return; + if (await isInGitRepo()) { + vscode.window.showErrorMessage("Already in a git repository"); + return; + } let gitLink = await vscode.window.showInputBox({ placeHolder: "git repo link", diff --git a/package-lock.json b/package-lock.json index 9c7c0d0..b883d93 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dwm-git-simpleuse", - "version": "0.2.0", + "version": "0.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dwm-git-simpleuse", - "version": "0.2.0", + "version": "0.3.1", "dependencies": { "child_process": "^1.0.2" }, diff --git a/package.json b/package.json index d0a6bb8..4788733 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "icon": "img/icon.png", "description": "", "publisher": "nyncral", - "version": "0.3.0", + "version": "0.3.1", "engines": { "vscode": "^1.85.0" },