Skip to content

Commit 5207eb8

Browse files
Add "Report Issue" button to TSGO status bar commands (#1889)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com> Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
1 parent 7a4a79f commit 5207eb8

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

_extension/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@
8585
"title": "Show LSP Trace",
8686
"enablement": "typescript.native-preview.serverRunning",
8787
"category": "TypeScript Native Preview"
88+
},
89+
{
90+
"command": "typescript.native-preview.reportIssue",
91+
"title": "Report Issue",
92+
"enablement": "typescript.native-preview.serverRunning",
93+
"category": "TypeScript Native Preview"
8894
}
8995
]
9096
},

_extension/src/commands.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ export function registerLanguageCommands(context: vscode.ExtensionContext, clien
3434

3535
disposables.push(vscode.commands.registerCommand("typescript.native-preview.showMenu", showCommands));
3636

37+
disposables.push(vscode.commands.registerCommand("typescript.native-preview.reportIssue", () => {
38+
vscode.commands.executeCommand("workbench.action.openIssueReporter", {
39+
extensionId: "TypeScriptTeam.native-preview",
40+
});
41+
}));
42+
3743
return disposables;
3844
}
3945

@@ -74,6 +80,11 @@ async function showCommands(): Promise<void> {
7480
description: "Show the LSP communication trace",
7581
command: "typescript.native-preview.lsp-trace.focus",
7682
},
83+
{
84+
label: "$(report) Report Issue",
85+
description: "Report an issue with TypeScript Native Preview",
86+
command: "typescript.native-preview.reportIssue",
87+
},
7788
{
7889
label: "$(stop-circle) Disable TypeScript Native Preview",
7990
description: "Switch back to the built-in TypeScript extension",

0 commit comments

Comments
 (0)