Skip to content

Commit bf11522

Browse files
committed
Fix debugging
1 parent 1d2b789 commit bf11522

File tree

3 files changed

+33
-61
lines changed

3 files changed

+33
-61
lines changed

.vscode/launch.json

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,16 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Run Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"runtimeExecutable": "${execPath}",
13-
"args": [
14-
"--extensionDevelopmentPath=${workspaceFolder}"
15-
],
16-
"outFiles": [
17-
"${workspaceFolder}/out/**/*.js"
18-
]
19-
},
20-
{
21-
"name": "Extension Tests",
22-
"type": "extensionHost",
23-
"request": "launch",
24-
"args": [
25-
"--extensionDevelopmentPath=${workspaceFolder}",
26-
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
27-
],
28-
"outFiles": [
29-
"${workspaceFolder}/out/test/**/*.js"
30-
],
31-
"preLaunchTask": "${defaultBuildTask}"
32-
}
33-
]
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Launch Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
14+
"sourceMaps": true,
15+
"outFiles": ["${workspaceFolder}/out/**/*.js"]
16+
}
17+
]
3418
}

package.json

Lines changed: 21 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"theme": "dark"
1111
},
1212
"icon": "assets/demo-time-128x128.png",
13-
"badges": [
14-
{
13+
"badges": [{
1514
"description": "version",
1615
"url": "https://img.shields.io/github/package-json/v/estruyf/vscode-demo-time?color=green&label=vscode-demo-time&style=flat-square",
1716
"href": "https://github.com/estruyf/vscode-demo-time"
@@ -89,8 +88,7 @@
8988
}
9089
}
9190
},
92-
"commands": [
93-
{
91+
"commands": [{
9492
"command": "demo-time.start",
9593
"title": "Start",
9694
"category": "Demo Time",
@@ -162,8 +160,7 @@
162160
}
163161
],
164162
"menus": {
165-
"commandPalette": [
166-
{
163+
"commandPalette": [{
167164
"command": "demo-time.runById",
168165
"when": "false"
169166
},
@@ -192,8 +189,7 @@
192189
"when": "false"
193190
}
194191
],
195-
"view/title": [
196-
{
192+
"view/title": [{
197193
"command": "demo-time.togglePresentationMode",
198194
"when": "view == demo-time && !config.demoTime.presentationMode",
199195
"group": "navigation@0"
@@ -214,8 +210,7 @@
214210
"group": "navigation@-1"
215211
}
216212
],
217-
"view/item/context": [
218-
{
213+
"view/item/context": [{
219214
"command": "demo-time.start",
220215
"when": "view == demo-time && viewItem == demo-time.file",
221216
"group": "inline@1"
@@ -238,31 +233,25 @@
238233
]
239234
},
240235
"views": {
241-
"explorer": [
242-
{
243-
"id": "demo-time",
244-
"name": "Demo Time",
245-
"icon": "assets/logo-small.svg"
246-
}
247-
]
236+
"explorer": [{
237+
"id": "demo-time",
238+
"name": "Demo Time",
239+
"icon": "assets/logo-small.svg"
240+
}]
248241
},
249-
"viewsWelcome": [
250-
{
251-
"view": "demo-time",
252-
"contents": "Hello and welcome to Demo Time! You can use this extension to help you during coding demos.\n\nGet started creating a `.demo/demo.json` file in your workspace or by clicking on the initialize button.\n\n[Initialize](command:demo-time.initialize)"
253-
}
254-
],
255-
"keybindings": [
256-
{
257-
"command": "demo-time.start",
258-
"key": "right",
259-
"when": "demo-time.presentation"
260-
}
261-
]
242+
"viewsWelcome": [{
243+
"view": "demo-time",
244+
"contents": "Hello and welcome to Demo Time! You can use this extension to help you during coding demos.\n\nGet started creating a `.demo/demo.json` file in your workspace or by clicking on the initialize button.\n\n[Initialize](command:demo-time.initialize)"
245+
}],
246+
"keybindings": [{
247+
"command": "demo-time.start",
248+
"key": "right",
249+
"when": "demo-time.presentation"
250+
}]
262251
},
263252
"scripts": {
264253
"vscode:prepublish": "npm run compile",
265-
"compile": "tsup",
254+
"compile": "tsup --minify",
266255
"watch": "tsup --watch",
267256
"lint": "eslint src --ext ts"
268257
},
@@ -280,4 +269,4 @@
280269
"tsup": "^8.0.1",
281270
"typescript": "^5.2.2"
282271
}
283-
}
272+
}

tsup.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export default defineConfig({
44
entry: ["./src/extension.ts"],
55
clean: true,
66
format: ["cjs"],
7-
minify: true,
87
outDir: "./out",
98
external: ["vscode"],
109
sourcemap: true,

0 commit comments

Comments
 (0)