|
1 | 1 | {
|
2 | 2 | "name": "vscode-typescript-dev",
|
3 | 3 | "displayName": "TSC Dev",
|
4 |
| - "description": "An extension for working in the TypeScript codebase", |
5 |
| - "version": "0.0.5", |
| 4 | + "description": "An extension only for working in the TypeScript compiler codebase", |
| 5 | + "version": "0.1.0", |
6 | 6 | "repository": {
|
7 | 7 | "type": "git",
|
8 | 8 | "url": "https://github.com/orta/vscode-typescript-dev"
|
|
17 | 17 | "activationEvents": [
|
18 | 18 | "workspaceContains:**/*.{ts,js,tsx,jsx}"
|
19 | 19 | ],
|
20 |
| - "main": "./out/extension.js", |
| 20 | + "main": "./out/main.js", |
21 | 21 | "contributes": {
|
| 22 | + "views": { |
| 23 | + "explorer": [ |
| 24 | + { |
| 25 | + "id": "tsDev.baselines", |
| 26 | + "name": "Changed Baselines" |
| 27 | + } |
| 28 | + ] |
| 29 | + }, |
22 | 30 | "languages": [
|
23 | 31 | {
|
24 | 32 | "id": "ts-symbols",
|
|
45 | 53 | "path": "./syntaxes/ts-types.tmLanguage.plist"
|
46 | 54 | }
|
47 | 55 | ],
|
48 |
| - "commands": [ |
49 |
| - { |
50 |
| - "command": "io.orta.typescript-dev.declare-current-test-file", |
51 |
| - "title": "Declare current test file", |
52 |
| - "category": "TSC" |
53 |
| - }, |
54 |
| - { |
55 |
| - "command": "io.orta.typescript-dev.run-current-test-file", |
56 |
| - "title": "Run tests", |
57 |
| - "category": "TSC" |
58 |
| - }, |
59 |
| - { |
60 |
| - "command": "io.orta.typescript-dev.go-to-position", |
61 |
| - "title": "Go to position", |
62 |
| - "category": "TSC" |
63 |
| - }, |
64 |
| - { |
65 |
| - "command": "io.orta.typescript-dev.toggle-position", |
66 |
| - "title": "Toggle position indicator in status bar", |
67 |
| - "category": "TSC" |
68 |
| - } |
69 |
| - ], |
70 | 56 | "menus": {
|
| 57 | + "view/title": [ |
| 58 | + { |
| 59 | + "command": "tsDev.openDiffTool", |
| 60 | + "when": "view == tsDev.baselines", |
| 61 | + "group": "navigation" |
| 62 | + } |
| 63 | + ], |
| 64 | + "view/item/context": [ |
| 65 | + { |
| 66 | + "command": "tsDev.openTestShort", |
| 67 | + "when": "view == tsDev.baselines && viewItem == edited", |
| 68 | + "group": "inline" |
| 69 | + }, |
| 70 | + { |
| 71 | + "command": "tsDev.openReferenceShort", |
| 72 | + "when": "view == tsDev.baselines && viewItem == edited", |
| 73 | + "group": "inline" |
| 74 | + }, |
| 75 | + { |
| 76 | + "command": "tsDev.openDiffShort", |
| 77 | + "when": "view == tsDev.baselines && viewItem == edited", |
| 78 | + "group": "inline" |
| 79 | + }, |
| 80 | + { |
| 81 | + "command": "tsDev.openTestShort", |
| 82 | + "when": "view == tsDev.baselines && viewItem == edited" |
| 83 | + }, |
| 84 | + { |
| 85 | + "command": "tsDev.openReferenceShort", |
| 86 | + "when": "view == tsDev.baselines && viewItem == edited" |
| 87 | + }, |
| 88 | + { |
| 89 | + "command": "tsDev.openDiffShort", |
| 90 | + "when": "view == tsDev.baselines && viewItem == edited" |
| 91 | + }, |
| 92 | + { |
| 93 | + "command": "tsDev.copyPath", |
| 94 | + "when": "view == tsDev.baselines && viewItem == edited" |
| 95 | + } |
| 96 | + ], |
71 | 97 | "commandPalette": [
|
72 | 98 | {
|
73 | 99 | "command": "io.orta.typescript-dev.declare-current-test-file",
|
|
86 | 112 | "when": "editorFocus"
|
87 | 113 | }
|
88 | 114 | ]
|
89 |
| - } |
| 115 | + }, |
| 116 | + "commands": [ |
| 117 | + { |
| 118 | + "command": "tsDev.openDiffTool", |
| 119 | + "title": "Difftool", |
| 120 | + "shortTitle": "Gulp Diff" |
| 121 | + }, |
| 122 | + { |
| 123 | + "command": "tsDev.openTestShort", |
| 124 | + "title": "Test" |
| 125 | + }, |
| 126 | + { |
| 127 | + "command": "tsDev.openReferenceShort", |
| 128 | + "title": "Ref" |
| 129 | + }, |
| 130 | + { |
| 131 | + "command": "tsDev.openDiffShort", |
| 132 | + "title": "Diff" |
| 133 | + }, |
| 134 | + { |
| 135 | + "command": "tsDev.copyPath", |
| 136 | + "title": "Copy Path" |
| 137 | + }, |
| 138 | + { |
| 139 | + "command": "io.orta.typescript-dev.go-to-position", |
| 140 | + "title": "Go to position", |
| 141 | + "category": "TSC" |
| 142 | + }, |
| 143 | + { |
| 144 | + "command": "io.orta.typescript-dev.toggle-position", |
| 145 | + "title": "Toggle position indicator in status bar", |
| 146 | + "category": "TSC" |
| 147 | + } |
| 148 | + ] |
90 | 149 | },
|
91 | 150 | "scripts": {
|
92 |
| - "vscode:prepublish": "yarn run compile", |
| 151 | + "vscode:prepublish": "yarn esbuild-base -- --minify", |
| 152 | + "esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node", |
| 153 | + "build": "yarn esbuild-base --sourcemap", |
| 154 | + "watch": "yarn esbuild-base --watch", |
93 | 155 | "compile": "tsc -p ./",
|
94 |
| - "watch": "tsc -watch -p ./", |
95 | 156 | "pretest": "yarn run compile",
|
96 |
| - "test": "node ./out/test/runTest.js" |
| 157 | + "test": "jest" |
97 | 158 | },
|
98 | 159 | "devDependencies": {
|
99 | 160 | "@types/glob": "^7.1.1",
|
100 |
| - "@types/mocha": "^5.2.6", |
101 | 161 | "@types/node": "^10.12.21",
|
102 | 162 | "@types/vscode": "^1.36.0",
|
103 | 163 | "glob": "^7.1.4",
|
104 |
| - "mocha": "^6.1.4", |
105 | 164 | "tslint": "^5.12.1",
|
106 |
| - "typescript": "^4.0.0-dev.20200803", |
107 |
| - "vscode-test": "^1.0.0-next.0" |
| 165 | + "typescript": "^4.3.2", |
| 166 | + "@types/jest": "^26.0.23", |
| 167 | + "esbuild": "^0.12.5", |
| 168 | + "esbuild-jest": "^0.5.0", |
| 169 | + "jest": "^27.0.3" |
| 170 | + }, |
| 171 | + "dependencies": {}, |
| 172 | + "prettier": { |
| 173 | + "printWidth": 140 |
108 | 174 | }
|
109 | 175 | }
|
0 commit comments