Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 6 additions & 0 deletions _extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
"title": "Show LSP Trace",
"enablement": "typescript.native-preview.serverRunning",
"category": "TypeScript Native Preview"
},
{
"command": "typescript.native-preview.reportIssue",
"title": "Report Issue",
"enablement": "typescript.native-preview.serverRunning",
"category": "TypeScript Native Preview"
}
]
},
Expand Down
11 changes: 11 additions & 0 deletions _extension/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ export function registerLanguageCommands(context: vscode.ExtensionContext, clien

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

disposables.push(vscode.commands.registerCommand("typescript.native-preview.reportIssue", () => {
vscode.commands.executeCommand("workbench.action.openIssueReporter", {
extensionId: "TypeScriptTeam.native-preview",
});
}));

return disposables;
}

Expand Down Expand Up @@ -74,6 +80,11 @@ async function showCommands(): Promise<void> {
description: "Show the LSP communication trace",
command: "typescript.native-preview.lsp-trace.focus",
},
{
label: "$(report) Report Issue",
description: "Report an issue with TypeScript Native Preview",
command: "typescript.native-preview.reportIssue",
},
{
label: "$(stop-circle) Disable TypeScript Native Preview",
description: "Switch back to the built-in TypeScript extension",
Expand Down