Add setting to configure the max memory for tsserver (#82630)

* Add setting to configure the max memory for tsserver

* Fix silly tpo from fixing formatting

* Add "MB" to setting description string

* Add validation to configuration value

* Add 128MB as a lower bound
This commit is contained in:
Michael Loughry
2019-10-15 13:45:11 -07:00
committed by Matt Bierner
parent 5c705ea7ee
commit 89e4d3eddc
4 changed files with 25 additions and 4 deletions

View File

@@ -685,6 +685,12 @@
"default": true,
"description": "%configuration.tsserver.useSeparateSyntaxServer%",
"scope": "window"
},
"typescript.tsserver.maxTsServerMemory": {
"type": "number",
"default": 0,
"description": "%configuration.tsserver.maxTsServerMemory%",
"scope": "window"
}
}
},