Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create issue from markdown template #5503

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add support for blank issue
  • Loading branch information
Balastrong committed Nov 25, 2023
commit 5bf019ad215a6e1e3430f065420a6970a3e2c099
7 changes: 5 additions & 2 deletions src/issues/issueFeatureRegistrar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ ${body ?? ''}\n
}

interface IssueChoice extends vscode.QuickPickItem {
uri: vscode.Uri;
uri?: vscode.Uri;
}
const templateUris = await folderManager.getIssueTemplates();
if (templateUris.length === 0) {
Expand All @@ -1103,10 +1103,13 @@ ${body ?? ''}\n
uri: uri,
};
});
choices.push({
label: vscode.l10n.t('Blank issue'),
});
const selectedUriChoice = await vscode.window.showQuickPick(choices, {
placeHolder: vscode.l10n.t('Select a template for the new issue.'),
});
if (!selectedUriChoice) {
if (!selectedUriChoice?.uri) {
return undefined;
}

Expand Down