typescript: Pass hostInfo
to tsserver
(#12055)
- Added `hostInfo` property to zed's typescript plugin. This can be
useful for telemetry (for e.g. identifying the usage of editors based on
typescript usage) when building typescript plugins.
- VSCode / IntelliJ based editors already set this property
([see](aa31bfc9fd/extensions/typescript-language-features/src/typescriptServiceClient.ts (L574)
))
The config option as available —
https://github.com/typescript-language-server/typescript-language-server/blob/master/docs/configuration.md#initializationoptions
Release Notes:
- N/A
This commit is contained in:
parent
597469bbbd
commit
db06244972
1 changed files with 1 additions and 0 deletions
|
@ -200,6 +200,7 @@ impl LspAdapter for TypeScriptLspAdapter {
|
||||||
) -> Result<Option<serde_json::Value>> {
|
) -> Result<Option<serde_json::Value>> {
|
||||||
Ok(Some(json!({
|
Ok(Some(json!({
|
||||||
"provideFormatter": true,
|
"provideFormatter": true,
|
||||||
|
"hostInfo": "zed",
|
||||||
"tsserver": {
|
"tsserver": {
|
||||||
"path": "node_modules/typescript/lib",
|
"path": "node_modules/typescript/lib",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue