diff --git a/package.json b/package.json index 5cb7fd7..aace295 100644 --- a/package.json +++ b/package.json @@ -449,4 +449,4 @@ "@vscode/webview-ui-toolkit": "^1.4.0", "asciichart": "^1.5.25" } -} \ No newline at end of file +} diff --git a/src/codeMarker.ts b/src/codeMarker.ts index 9c9af39..c2d4a4e 100644 --- a/src/codeMarker.ts +++ b/src/codeMarker.ts @@ -1002,16 +1002,18 @@ export class CodeMarker implements vscode.TreeDataProvider { } // Prompt the user to copy the issue body and open the empty issue page - vscode.window.showErrorMessage("The issue body is too long to open automatically in the URL", "Copy issue to clipboard and open browser window").then((action) => { - if (action === undefined) { - return; - } - vscode.env.clipboard.writeText(issueBodyText); - const pasteHere = encodeURIComponent("[Paste the issue body here]"); - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - vscode.env.openExternal(`${issueUrl}title=${title}&body=${pasteHere}`); - }); + vscode.window + .showErrorMessage("The issue body is too long to open automatically in the URL", "Copy issue to clipboard and open browser window") + .then((action) => { + if (action === undefined) { + return; + } + vscode.env.clipboard.writeText(issueBodyText); + const pasteHere = encodeURIComponent("[Paste the issue body here]"); + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + vscode.env.openExternal(`${issueUrl}title=${title}&body=${pasteHere}`); + }); } /**