From d649b523459ae988a533b055ea6167996c82d87a Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Thu, 27 Feb 2025 09:31:28 -0700 Subject: [PATCH] ## 1.117.0 --- type-script-helper/.vscode/tasks.json | 3 ++- type-script-helper/README.md | 9 +++++---- type-script-helper/package.json | 2 +- type-script-helper/src/kanbanHelper.ts | 9 +++++++-- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/type-script-helper/.vscode/tasks.json b/type-script-helper/.vscode/tasks.json index 3e460f6..a43b0c5 100644 --- a/type-script-helper/.vscode/tasks.json +++ b/type-script-helper/.vscode/tasks.json @@ -58,5 +58,6 @@ "label": "npm: webpack", "detail": "webpack --config ./build/node-extension.webpack.config.js" } - ] + ], + "version": "2.0.0" } \ No newline at end of file diff --git a/type-script-helper/README.md b/type-script-helper/README.md index c9aa72a..a4d08cf 100644 --- a/type-script-helper/README.md +++ b/type-script-helper/README.md @@ -200,22 +200,23 @@ None - Add Code Insiders lines when not present - ## 1.114.0 1739295723637 = 638748925236370000 = 2025-0.Winter = Tue Feb 11 2025 10:42:03 GMT-0700 (Mountain Standard Time) ----------------------------------------------------------------------------------------------------------- - infineon-mes-mike-phares - ## 1.115.0 1739295727065 = 638748925270650000 = 2025-0.Winter = Tue Feb 11 2025 10:42:06 GMT-0700 (Mountain Standard Time) ----------------------------------------------------------------------------------------------------------- - Infineon-Technologies-AG-Mesa-FI - - ## 1.116.0 1740441381597 = 638760381815970000 = 2025-0.Winter = Mon Feb 24 2025 16:56:21 GMT-0700 (Mountain Standard Time) ----------------------------------------------------------------------------------------------------------- - Calculator - Explorer Sort Order + +## 1.117.0 1740671831803 = 638762686318030000 = 2025-0.Winter = Thu Feb 27 2025 08:57:11 GMT-0700 (Mountain Standard Time) +----------------------------------------------------------------------------------------------------------- + +- Close active after opening Sub-Kanban when directory found diff --git a/type-script-helper/package.json b/type-script-helper/package.json index 7d4f9ad..257173b 100644 --- a/type-script-helper/package.json +++ b/type-script-helper/package.json @@ -323,5 +323,5 @@ "watch": "concurrently \"rollup -c -w\" \"webpack --watch --config ./build/node-extension.webpack.config.js\"", "webpack": "webpack --config ./build/node-extension.webpack.config.js" }, - "version": "1.116.0" + "version": "1.117.0" } \ No newline at end of file diff --git a/type-script-helper/src/kanbanHelper.ts b/type-script-helper/src/kanbanHelper.ts index 9779a59..01fd412 100644 --- a/type-script-helper/src/kanbanHelper.ts +++ b/type-script-helper/src/kanbanHelper.ts @@ -60,8 +60,10 @@ async function openInNewWindowLogic(): Promise { vscode.window.showInformationMessage("Open a tab first!"); return; } - const activeTabLabel = vscode.window.tabGroups.activeTabGroup.activeTab.label; - const paramCaseActiveTabLabel: string = paramCase(activeTabLabel); + const activeTab = vscode.window.tabGroups.activeTabGroup.activeTab; + const tabs: vscode.Tab[] = vscode.window.tabGroups.all.map(tagGroup => tagGroup.tabs).flat(); + const index = tabs.findIndex(tab => tab.label === activeTab.label); + const paramCaseActiveTabLabel: string = paramCase(activeTab.label); vscode.window.showInformationMessage(`Searching for <${paramCaseActiveTabLabel}>`); const fileUris: vscode.Uri[] = await vscode.workspace.findFiles(`**/${paramCaseActiveTabLabel}*`); if (fileUris.length === 0) { @@ -97,6 +99,9 @@ async function openInNewWindowLogic(): Promise { if (!found) { updateWithLogic(textDocument); } + else if (index !== -1) { + await vscode.window.tabGroups.close(tabs[index]); + } } }