zed-ets-language-server 2.3.3 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -57,6 +57,8 @@ async function main() {
57
57
 
58
58
  const ohos = await listHelperPaths(initializationOptions.tsdk, initializationOptions.ohosSdkPath);
59
59
 
60
+ // Send both `ohos` and `ets` keys to stay compatible with
61
+ // @arkts/language-server v1.2.x (uses `ohos`) and v1.3.x+ (uses `ets`).
60
62
  const etsSpecialRequest = {
61
63
  jsonrpc: '2.0',
62
64
  id: Date.now(),
@@ -66,6 +68,7 @@ async function main() {
66
68
  tsdk: initializationOptions.tsdk,
67
69
  },
68
70
  ohos: ohos,
71
+ ets: ohos,
69
72
  },
70
73
  };
71
74
 
@@ -74,6 +77,7 @@ async function main() {
74
77
  tsdk: initializationOptions.tsdk,
75
78
  };
76
79
  generalInitRequest.params.initializationOptions.ohos = ohos;
80
+ generalInitRequest.params.initializationOptions.ets = ohos;
77
81
 
78
82
  logger.info(JSON.stringify(generalInitRequest));
79
83
  logger.info(JSON.stringify(etsSpecialRequest));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zed-ets-language-server",
3
- "version": "2.3.3",
3
+ "version": "2.3.4",
4
4
  "description": "ETS language server wrapper for Zed ArkTS extension.",
5
5
  "type": "module",
6
6
  "main": "index.js",