-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
122 lines (122 loc) · 4.44 KB
/
package.json
File metadata and controls
122 lines (122 loc) · 4.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "auto-reattach-for-java-debug",
"displayName": "Auto Reattach for Java Debug",
"description": "Automatically reconnects your Java debug session when your application restarts during development",
"version": "0.1.3",
"publisher": "marlonpatrick",
"engines": {
"vscode": "^1.99.3"
},
"categories": [
"Debuggers"
],
"keywords": [
"java",
"debug",
"debugger",
"attach",
"reattach",
"micronaut",
"spring boot",
"jdwp",
"hot reload",
"auto reconnect"
],
"license": "MIT",
"icon": "icon.png",
"repository": {
"type": "git",
"url": "https://github.com/marlonpatrick/auto-reattach-for-java-debug"
},
"bugs": {
"url": "https://github.com/marlonpatrick/auto-reattach-for-java-debug/issues"
},
"homepage": "https://github.com/marlonpatrick/auto-reattach-for-java-debug#readme",
"activationEvents": [
"onDebug"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "Java Auto Reattach",
"properties": {
"javaAutoReattach.enabled": {
"type": "boolean",
"default": true,
"description": "Enable or disable automatic reattach for Java debug sessions",
"scope": "window"
},
"javaAutoReattach.maxWaitTimeMs": {
"type": "number",
"default": 5000,
"markdownDescription": "Maximum time in milliseconds to wait for the JDWP port to become available after a debug session terminates. The extension will check the port at intervals defined by `retryIntervalMs` until this timeout is reached.\n\n**Important:** This measures JVM restart time, NOT full application startup time. JDWP is ready as soon as the JVM starts (typically 1-3 seconds), even if your application takes longer to fully initialize. Increase this value only if you see timeout warnings in the Output panel (e.g., Docker Desktop, slow machines).",
"scope": "window"
},
"javaAutoReattach.retryIntervalMs": {
"type": "number",
"default": 500,
"markdownDescription": "Interval in milliseconds between each port availability check. A lower value means more frequent checks (more responsive but more CPU usage), while a higher value means less frequent checks (less responsive but lower CPU usage).",
"scope": "window"
},
"javaAutoReattach.configurations": {
"type": "array",
"default": [],
"description": "Array of debug configurations to monitor for auto-reattach",
"scope": "window",
"items": {
"type": "object",
"required": [
"launchName"
],
"properties": {
"launchName": {
"type": "string",
"description": "Name of the launch configuration in launch.json to monitor"
},
"enabled": {
"type": "boolean",
"default": true,
"description": "Enable auto-reattach for this specific configuration"
},
"maxWaitTimeMs": {
"type": "number",
"description": "Override global maxWaitTimeMs for this configuration"
},
"retryIntervalMs": {
"type": "number",
"description": "Override global retryIntervalMs for this configuration"
}
}
}
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/vscode": "^1.99.3",
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"@typescript-eslint/eslint-plugin": "^8.45.0",
"@typescript-eslint/parser": "^8.45.0",
"eslint": "^9.36.0",
"esbuild": "^0.25.10",
"npm-run-all": "^4.1.5",
"typescript": "^5.9.3",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2"
}
}