From 4386cea0e23ade79a22fd8ee3a79ce287cd410dd Mon Sep 17 00:00:00 2001 From: Vasco Franco <11303847+Vasco-jofra@users.noreply.github.com> Date: Fri, 25 Oct 2024 19:05:08 +0200 Subject: [PATCH] Make the "Add Finding/Note Title" input boxes ignore focus out (#61) * feat: Make "Add Finding Title" input box ignore focus out * version: bump to version 1.2.2 --- package-lock.json | 4 ++-- package.json | 2 +- src/codeMarker.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index cc85e97..204f161 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "weaudit", - "version": "1.1.0", + "version": "1.2.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "weaudit", - "version": "1.1.0", + "version": "1.2.2", "license": "SEE LICENSE IN LICENSE", "dependencies": { "@vscode/webview-ui-toolkit": "^1.4.0", diff --git a/package.json b/package.json index d07d7c0..908f2c9 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "weaudit", "displayName": "weAudit", "description": "Bookmark findings and quickly navigate to areas of interest in the codebase", - "version": "1.2.1", + "version": "1.2.2", "publisher": "trailofbits", "author": "Trail of Bits", "categories": [], diff --git a/src/codeMarker.ts b/src/codeMarker.ts index 23f8f9c..745f839 100644 --- a/src/codeMarker.ts +++ b/src/codeMarker.ts @@ -2934,7 +2934,7 @@ export class CodeMarker implements vscode.TreeDataProvider { // otherwise, add it to the tree entries // create title depending on the entry type const inputBoxTitle = entryType === EntryType.Finding ? "Add Finding Title" : "Add Note Title"; - const title = await vscode.window.showInputBox({ title: inputBoxTitle }); + const title = await vscode.window.showInputBox({ title: inputBoxTitle, ignoreFocusOut: true }); if (title === undefined) { return; }