Skip to content

Commit

Permalink
Fmt prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
fcasal committed Mar 15, 2024
1 parent d5c1fbc commit 5347fe1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,4 +449,4 @@
"@vscode/webview-ui-toolkit": "^1.4.0",
"asciichart": "^1.5.25"
}
}
}
22 changes: 12 additions & 10 deletions src/codeMarker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1002,16 +1002,18 @@ export class CodeMarker implements vscode.TreeDataProvider<TreeEntry> {
}

// 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

Check failure

Code scanning / ESLint

Disallow `@ts-<directive>` comments or require descriptions after directives Error

Do not use "@ts-ignore" because it alters compilation errors.
vscode.env.openExternal(`${issueUrl}title=${title}&body=${pasteHere}`);
});
}

/**
Expand Down

0 comments on commit 5347fe1

Please sign in to comment.