Skip to content

Commit 2698001

Browse files
Fix removal of copy router prefix
1 parent c9ca925 commit 2698001

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

package.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@
4747
"title": "Go to Router Definition",
4848
"category": "FastAPI"
4949
},
50-
{
51-
"command": "fastapi-vscode.copyRouterPrefix",
52-
"title": "Copy Prefix",
53-
"category": "FastAPI"
54-
},
5550
{
5651
"command": "fastapi-vscode.reportIssue",
5752
"title": "Report Issue...",
@@ -67,10 +62,6 @@
6762
{
6863
"command": "fastapi-vscode.goToRouter",
6964
"when": "false"
70-
},
71-
{
72-
"command": "fastapi-vscode.copyRouterPrefix",
73-
"when": "false"
7465
}
7566
],
7667
"view/title": [
@@ -95,11 +86,6 @@
9586
"command": "fastapi-vscode.goToRouter",
9687
"when": "view == endpoint-explorer && viewItem == router",
9788
"group": "navigation"
98-
},
99-
{
100-
"command": "fastapi-vscode.copyRouterPrefix",
101-
"when": "view == endpoint-explorer && viewItem == router",
102-
"group": "navigation"
10389
}
10490
]
10591
},

src/extension.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,6 @@ export async function activate(context: vscode.ExtensionContext) {
151151
},
152152
),
153153

154-
vscode.commands.registerCommand(
155-
"fastapi-vscode.copyRouterPrefix",
156-
(item: EndpointTreeItem) => {
157-
if (item.type === "router") {
158-
vscode.env.clipboard.writeText(item.router.prefix)
159-
vscode.window.showInformationMessage(`Copied: ${item.router.prefix}`)
160-
}
161-
},
162-
),
163-
164154
vscode.commands.registerCommand("fastapi-vscode.reportIssue", () => {
165155
vscode.env.openExternal(
166156
vscode.Uri.parse(

0 commit comments

Comments
 (0)