diff --git a/type-script-helper/README.md b/type-script-helper/README.md index 59805d2..7e6266a 100644 --- a/type-script-helper/README.md +++ b/type-script-helper/README.md @@ -182,3 +182,10 @@ None - kanban.refreshWebView - kanban.debugReload - columns-to-cards-webview-view-provider-view + +- Open Sub-Kanban in New Window + +## 1.111.1 1738206291411 = 638738030914110000 = 2025-0.Winter = Wed Jan 29 2025 20:04:50 GMT-0700 (Mountain Standard Time) +----------------------------------------------------------------------------------------------------------- + +- Changed trigger for code-insiders diff --git a/type-script-helper/package.json b/type-script-helper/package.json index 9efe13c..091c1b1 100644 --- a/type-script-helper/package.json +++ b/type-script-helper/package.json @@ -235,5 +235,5 @@ "webpack": "webpack --config ./build/node-extension.webpack.config.js", "watch": "concurrently \"rollup -c -w\" \"webpack --watch --config ./build/node-extension.webpack.config.js\"" }, - "version": "1.111.0" + "version": "1.111.1" } diff --git a/type-script-helper/src/kanbanHelper.ts b/type-script-helper/src/kanbanHelper.ts index df06483..d478792 100644 --- a/type-script-helper/src/kanbanHelper.ts +++ b/type-script-helper/src/kanbanHelper.ts @@ -30,30 +30,21 @@ async function openInNewWindowLogic(): Promise { const textDocument: vscode.TextDocument = await vscode.workspace.openTextDocument(fileUris[i]); for (let j = 0; j < textDocument.lineCount; ++j) { const text = textDocument.lineAt(j).text; - if (text.endsWith('"')) { - if (text.startsWith("code \"")) { - const lastText = textDocument.lineAt(j - 1).text; - if (lastText.startsWith("```")) { - const uri = vscode.Uri.parse("file:" + text.substring(6, text.length - 1)); - await vscode.commands.executeCommand('vscode.openFolder', uri, true); - break; - } + if (text.endsWith(')')) { + if (text.startsWith("- [code](")) { + const uri = vscode.Uri.parse("file:" + text.substring(9, text.length - 1)); + await vscode.commands.executeCommand('vscode.openFolder', uri, true); + break; } - if (text.startsWith("codium \"")) { - const lastText = textDocument.lineAt(j - 1).text; - if (lastText.startsWith("```")) { - const uri = vscode.Uri.parse("file:" + text.substring(8, text.length - 1)); - await vscode.commands.executeCommand('vscode.openFolder', uri, true); - break; - } + if (text.startsWith("- [codium](")) { + const uri = vscode.Uri.parse("file:" + text.substring(11, text.length - 1)); + await vscode.commands.executeCommand('vscode.openFolder', uri, true); + break; } - if (text.startsWith("code-insiders \"")) { - const lastText = textDocument.lineAt(j - 1).text; - if (lastText.startsWith("```")) { - const uri = vscode.Uri.parse("file:" + text.substring(15, text.length - 1)); - await vscode.commands.executeCommand('vscode.openFolder', uri, true); - break; - } + if (text.startsWith("- [code-insiders](")) { + const uri = vscode.Uri.parse("file:" + text.substring(18, text.length - 1)); + await vscode.commands.executeCommand('vscode.openFolder', uri, true); + break; } } }