You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let extensions prepopulate the issue reporter title and description (microsoft#91039)
* Let extensions prepopulate the issue reporter title and description
Fixesmicrosoft#91028
Adds two new optional arguments to the `vscode.openIssueReporter` command: `issueTitle` and `issueBody`. These are taken using an options object and are used to pre-populate the native issue reporter fields
Hooks up these fields for TypeScript's report issue prompt. We use this to post the most recent TS Server error stack
* Extract duplicate command id to constant
* Log version directly instead of prompting users for it
description: 'Opens the issue reporter with the provided extension id as the selected source',
366
366
args: [
367
-
{name: 'extensionId',description: 'extensionId to report an issue on',constraint: (value: any)=>typeofvalue==='string'}
367
+
{name: 'extensionId',description: 'extensionId to report an issue on',constraint: (value: unknown)=>typeofvalue==='string'||(typeofvalue==='object'&&typeof(valueasOpenIssueReporterArgs).extensionId==='string')}
constOpenIssueReporterActionLabel=nls.localize({key: 'reportIssueInEnglish',comment: ['Translate this to "Report Issue in English" in all languages please!']},"Report Issue");
constOpenIssueReporterActionLabel=nls.localize({key: 'reportIssueInEnglish',comment: ['Translate this to "Report Issue in English" in all languages please!']},"Report Issue");
0 commit comments