|
5 | 5 | "version": "0.0.1", |
6 | 6 | "publisher": "FastAPI Labs", |
7 | 7 | "engines": { |
8 | | - "vscode": "^1.107.0" |
| 8 | + "vscode": "^1.85.0" |
9 | 9 | }, |
10 | 10 | "categories": [ |
11 | 11 | "Other" |
|
17 | 17 | "contributes": { |
18 | 18 | "commands": [ |
19 | 19 | { |
20 | | - "command": "fastapi-vscode.helloWorld", |
21 | | - "title": "Hello World" |
| 20 | + "command": "fastapi-vscode.refreshEndpoints", |
| 21 | + "title": "Refresh Endpoints", |
| 22 | + "icon": "$(refresh)" |
| 23 | + }, |
| 24 | + { |
| 25 | + "command": "fastapi-vscode.goToEndpoint", |
| 26 | + "title": "Go to Definition" |
| 27 | + }, |
| 28 | + { |
| 29 | + "command": "fastapi-vscode.copyEndpointPath", |
| 30 | + "title": "Copy Path" |
| 31 | + }, |
| 32 | + { |
| 33 | + "command": "fastapi-vscode.goToRouter", |
| 34 | + "title": "Go to Router Definition" |
| 35 | + }, |
| 36 | + { |
| 37 | + "command": "fastapi-vscode.copyRouterPrefix", |
| 38 | + "title": "Copy Prefix" |
22 | 39 | } |
23 | | - ] |
| 40 | + ], |
| 41 | + "menus": { |
| 42 | + "view/title": [ |
| 43 | + { |
| 44 | + "command": "fastapi-vscode.refreshEndpoints", |
| 45 | + "when": "view == endpoint-explorer", |
| 46 | + "group": "navigation" |
| 47 | + } |
| 48 | + ], |
| 49 | + "view/item/context": [ |
| 50 | + { |
| 51 | + "command": "fastapi-vscode.goToEndpoint", |
| 52 | + "when": "view == endpoint-explorer && viewItem == route", |
| 53 | + "group": "navigation" |
| 54 | + }, |
| 55 | + { |
| 56 | + "command": "fastapi-vscode.copyEndpointPath", |
| 57 | + "when": "view == endpoint-explorer && viewItem == route", |
| 58 | + "group": "navigation" |
| 59 | + }, |
| 60 | + { |
| 61 | + "command": "fastapi-vscode.goToRouter", |
| 62 | + "when": "view == endpoint-explorer && viewItem == router", |
| 63 | + "group": "navigation" |
| 64 | + }, |
| 65 | + { |
| 66 | + "command": "fastapi-vscode.copyRouterPrefix", |
| 67 | + "when": "view == endpoint-explorer && viewItem == router", |
| 68 | + "group": "navigation" |
| 69 | + } |
| 70 | + ] |
| 71 | + }, |
| 72 | + "viewsContainers": { |
| 73 | + "activitybar": [ |
| 74 | + { |
| 75 | + "id": "fastapi", |
| 76 | + "title": "FastAPI", |
| 77 | + "icon": "$(zap)" |
| 78 | + } |
| 79 | + ] |
| 80 | + }, |
| 81 | + "views": { |
| 82 | + "fastapi": [ |
| 83 | + { |
| 84 | + "id": "endpoint-explorer", |
| 85 | + "name": "Endpoint Explorer" |
| 86 | + } |
| 87 | + ] |
| 88 | + } |
24 | 89 | }, |
25 | 90 | "scripts": { |
26 | 91 | "vscode:prepublish": "bun run esbuild.js --production", |
27 | 92 | "compile": "bun run esbuild.js", |
28 | 93 | "watch": "bun run esbuild.js --watch", |
29 | 94 | "package": "vsce package", |
30 | 95 | "publish:marketplace": "vsce publish", |
31 | | - "lint": "biome check --write --unsafe --no-errors-on-unmatched --files-ignore-unknown=true ./", |
32 | | - "test": "vscode-test" |
| 96 | + "lint": "biome check --write --unsafe --no-errors-on-unmatched --files-ignore-unknown=true src/", |
| 97 | + "test": "vscode-test", |
| 98 | + "prepare": "husky" |
33 | 99 | }, |
34 | 100 | "devDependencies": { |
35 | 101 | "@biomejs/biome": "^2.3.11", |
36 | 102 | "@types/bun": "latest", |
37 | 103 | "@types/mocha": "^10.0.10", |
38 | | - "@types/vscode": "^1.107.0", |
| 104 | + "@types/vscode": "^1.85.0", |
39 | 105 | "@vscode/test-cli": "^0.0.12", |
40 | 106 | "@vscode/test-electron": "^2.5.2", |
41 | 107 | "@vscode/vsce": "^3.7.1", |
42 | | - "esbuild": "^0.27.2" |
| 108 | + "esbuild": "^0.27.2", |
| 109 | + "husky": "^9.1.7", |
| 110 | + "lint-staged": "^16.2.7" |
43 | 111 | }, |
44 | 112 | "peerDependencies": { |
45 | 113 | "typescript": "^5" |
|
52 | 120 | "bugs": { |
53 | 121 | "url": "https://github.com/fastapi/fastapi-vscode/issues" |
54 | 122 | }, |
55 | | - "homepage": "https://github.com/fastapi/fastapi-vscode#readme" |
| 123 | + "homepage": "https://github.com/fastapi/fastapi-vscode#readme", |
| 124 | + "lint-staged": { |
| 125 | + "*.{ts,js,json}": [ |
| 126 | + "biome check --write" |
| 127 | + ] |
| 128 | + } |
56 | 129 | } |
0 commit comments