File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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..." ,
6762 {
6863 "command" : " fastapi-vscode.goToRouter" ,
6964 "when" : " false"
70- },
71- {
72- "command" : " fastapi-vscode.copyRouterPrefix" ,
73- "when" : " false"
7465 }
7566 ],
7667 "view/title" : [
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 },
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments