|
40 | 40 | ], |
41 | 41 | "commands": [ |
42 | 42 | { |
43 | | - "command": "fastapi-vscode.refreshEndpoints", |
44 | | - "title": "Refresh Endpoints", |
| 43 | + "command": "fastapi-vscode.refreshPathOperations", |
| 44 | + "title": "Refresh Path Operations", |
45 | 45 | "category": "FastAPI", |
46 | 46 | "icon": "$(refresh)" |
47 | 47 | }, |
|
52 | 52 | "icon": "$(fold)" |
53 | 53 | }, |
54 | 54 | { |
55 | | - "command": "fastapi-vscode.copyEndpointPath", |
56 | | - "title": "Copy Endpoint Path", |
| 55 | + "command": "fastapi-vscode.copyPathOperationPath", |
| 56 | + "title": "Copy Path to Path Operation", |
57 | 57 | "category": "FastAPI" |
58 | 58 | }, |
59 | 59 | { |
|
67 | 67 | "category": "FastAPI" |
68 | 68 | }, |
69 | 69 | { |
70 | | - "command": "fastapi-vscode.searchEndpoints", |
71 | | - "title": "Search Endpoints...", |
| 70 | + "command": "fastapi-vscode.searchPathOperations", |
| 71 | + "title": "Search Path Operations...", |
72 | 72 | "category": "FastAPI", |
73 | 73 | "icon": "$(search)" |
74 | 74 | }, |
|
105 | 105 | ], |
106 | 106 | "keybindings": [ |
107 | 107 | { |
108 | | - "command": "fastapi-vscode.searchEndpoints", |
| 108 | + "command": "fastapi-vscode.searchPathOperations", |
109 | 109 | "key": "ctrl+shift+e", |
110 | 110 | "mac": "cmd+shift+e" |
111 | 111 | } |
112 | 112 | ], |
113 | 113 | "menus": { |
114 | 114 | "commandPalette": [ |
115 | 115 | { |
116 | | - "command": "fastapi-vscode.copyEndpointPath", |
| 116 | + "command": "fastapi-vscode.copyPathOperationPath", |
117 | 117 | "when": "false" |
118 | 118 | }, |
119 | 119 | { |
|
147 | 147 | ], |
148 | 148 | "view/title": [ |
149 | 149 | { |
150 | | - "command": "fastapi-vscode.refreshEndpoints", |
151 | | - "when": "view == endpoint-explorer", |
| 150 | + "command": "fastapi-vscode.refreshPathOperations", |
| 151 | + "when": "view == path-operation-explorer", |
152 | 152 | "group": "navigation@1" |
153 | 153 | }, |
154 | 154 | { |
155 | 155 | "command": "fastapi-vscode.toggleRouters", |
156 | | - "when": "view == endpoint-explorer", |
| 156 | + "when": "view == path-operation-explorer", |
157 | 157 | "group": "navigation@2" |
158 | 158 | } |
159 | 159 | ], |
160 | 160 | "view/item/context": [ |
161 | 161 | { |
162 | | - "command": "fastapi-vscode.copyEndpointPath", |
163 | | - "when": "view == endpoint-explorer && viewItem == route", |
| 162 | + "command": "fastapi-vscode.copyPathOperationPath", |
| 163 | + "when": "view == path-operation-explorer && viewItem == route", |
164 | 164 | "group": "navigation" |
165 | 165 | }, |
166 | 166 | { |
167 | 167 | "command": "fastapi-vscode.goToRouter", |
168 | | - "when": "view == endpoint-explorer && viewItem == router", |
| 168 | + "when": "view == path-operation-explorer && viewItem == router", |
169 | 169 | "group": "navigation" |
170 | 170 | } |
171 | 171 | ] |
|
189 | 189 | "views": { |
190 | 190 | "fastapi": [ |
191 | 191 | { |
192 | | - "id": "endpoint-explorer", |
193 | | - "name": "Endpoint Explorer", |
| 192 | + "id": "path-operation-explorer", |
| 193 | + "name": "Path Operation Explorer", |
194 | 194 | "icon": "media/icons/logo-outline.svg" |
195 | 195 | } |
196 | 196 | ], |
|
205 | 205 | }, |
206 | 206 | "viewsWelcome": [ |
207 | 207 | { |
208 | | - "view": "endpoint-explorer", |
| 208 | + "view": "path-operation-explorer", |
209 | 209 | "contents": "No FastAPI apps found in this workspace.\n\n[Configure Entry Point](command:workbench.action.openSettings?[\"fastapi.entryPoint\"])\n\n[Open Getting Started](command:workbench.action.openWalkthrough?{\"category\":\"FastAPILabs.fastapi-vscode#fastapi-getting-started\"})" |
210 | 210 | } |
211 | 211 | ], |
|
217 | 217 | "icon": "media/icons/logo-teal.svg", |
218 | 218 | "steps": [ |
219 | 219 | { |
220 | | - "id": "view-endpoints", |
221 | | - "title": "View Your API Endpoints", |
222 | | - "description": "Open the Endpoint Explorer in the Activity Bar (⚡) to see all routes in your FastAPI application.\n[Open Endpoint Explorer](command:endpoint-explorer.focus)", |
| 220 | + "id": "view-path-operations", |
| 221 | + "title": "View Your Path Operations", |
| 222 | + "description": "Open the Path Operation Explorer in the Activity Bar (⚡) to see all routes in your FastAPI application.\n[Open Path Operation Explorer](command:path-operation-explorer.focus)", |
223 | 223 | "media": { |
224 | | - "image": "media/walkthrough/endpoints.gif", |
225 | | - "altText": "Endpoint Explorer showing FastAPI routes organized by router" |
| 224 | + "image": "media/walkthrough/path-operations.gif", |
| 225 | + "altText": "Path Operation Explorer showing FastAPI routes organized by router" |
226 | 226 | }, |
227 | 227 | "completionEvents": [ |
228 | | - "onView:endpoint-explorer" |
| 228 | + "onView:path-operation-explorer" |
229 | 229 | ] |
230 | 230 | }, |
231 | 231 | { |
232 | | - "id": "search-endpoints", |
233 | | - "title": "Quickly Find Endpoints", |
234 | | - "description": "Instantly filter and navigate to any endpoint in your application.\n[Search Endpoints](command:fastapi-vscode.searchEndpoints)", |
| 232 | + "id": "search-path-operations", |
| 233 | + "title": "Quickly Find Path Operations", |
| 234 | + "description": "Instantly filter and navigate to any path operation in your application.\n[Search Path Operations](command:fastapi-vscode.searchPathOperations)", |
235 | 235 | "media": { |
236 | 236 | "image": "media/walkthrough/search.gif", |
237 | | - "altText": "Search endpoints quick pick showing filtered results" |
| 237 | + "altText": "Search path operations quick pick showing filtered results" |
238 | 238 | }, |
239 | 239 | "completionEvents": [ |
240 | | - "onCommand:fastapi-vscode.searchEndpoints" |
| 240 | + "onCommand:fastapi-vscode.searchPathOperations" |
241 | 241 | ] |
242 | 242 | }, |
243 | 243 | { |
|
0 commit comments