feat: support heap profile and snapshot capture for tsserver

This commit is contained in:
deepak1556
2026-03-04 01:32:36 +09:00
parent 1b92648d63
commit 278032fc75
4 changed files with 124 additions and 0 deletions

View File

@@ -2556,6 +2556,16 @@
"TypeScript"
]
},
"js/ts.tsserver.diagnosticDir": {
"type": "string",
"markdownDescription": "%configuration.tsserver.diagnosticDir%",
"scope": "window",
"keywords": [
"TypeScript",
"diagnostic",
"memory"
]
},
"typescript.tsserver.maxTsServerMemory": {
"type": "number",
"default": 3072,
@@ -2563,6 +2573,48 @@
"markdownDeprecationMessage": "%configuration.tsserver.maxTsServerMemory.unifiedDeprecationMessage%",
"scope": "window"
},
"js/ts.tsserver.heapSnapshot": {
"type": "number",
"default": 0,
"minimum": 0,
"markdownDescription": "%configuration.tsserver.heapSnapshot%",
"scope": "window",
"keywords": [
"TypeScript",
"memory",
"diagnostics"
]
},
"js/ts.tsserver.heapProfile": {
"type": "object",
"default": {
"enabled": false
},
"markdownDescription": "%configuration.tsserver.heapProfile%",
"scope": "window",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "%configuration.tsserver.heapProfile.enabled%"
},
"dir": {
"type": "string",
"description": "%configuration.tsserver.heapProfile.dir%"
},
"interval": {
"type": "number",
"minimum": 1,
"description": "%configuration.tsserver.heapProfile.interval%"
}
},
"keywords": [
"TypeScript",
"memory",
"heap",
"profile"
]
},
"js/ts.tsserver.watchOptions": {
"description": "%configuration.tsserver.watchOptions%",
"scope": "window",