@vue/language-server 3.0.0-beta.2 → 3.0.0-beta.3

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.
package/index.js CHANGED
@@ -39,7 +39,7 @@ connection.onInitialize(params => {
39
39
  const fileName = uri.fsPath.replace(/\\/g, '/');
40
40
  let projectInfoPromise = file2ProjectInfo.get(fileName);
41
41
  if (!projectInfoPromise) {
42
- projectInfoPromise = sendTsRequest(ts.server.protocol.CommandTypes.ProjectInfo, {
42
+ projectInfoPromise = sendTsRequest('_vue:' + ts.server.protocol.CommandTypes.ProjectInfo, {
43
43
  file: fileName,
44
44
  needFileNameList: false,
45
45
  });
@@ -76,42 +76,41 @@ connection.onInitialize(params => {
76
76
  },
77
77
  }, (0, language_service_1.createVueLanguageServicePlugins)(ts, {
78
78
  collectExtractProps(...args) {
79
- return sendTsRequest('vue:collectExtractProps', args);
79
+ return sendTsRequest('_vue:collectExtractProps', args);
80
80
  },
81
81
  getComponentDirectives(...args) {
82
- return sendTsRequest('vue:getComponentDirectives', args);
82
+ return sendTsRequest('_vue:getComponentDirectives', args);
83
83
  },
84
84
  getComponentEvents(...args) {
85
- return sendTsRequest('vue:getComponentEvents', args);
85
+ return sendTsRequest('_vue:getComponentEvents', args);
86
86
  },
87
87
  getComponentNames(...args) {
88
- return sendTsRequest('vue:getComponentNames', args);
88
+ return sendTsRequest('_vue:getComponentNames', args);
89
89
  },
90
90
  getComponentProps(...args) {
91
- return sendTsRequest('vue:getComponentProps', args);
91
+ return sendTsRequest('_vue:getComponentProps', args);
92
92
  },
93
93
  getElementAttrs(...args) {
94
- return sendTsRequest('vue:getElementAttrs', args);
94
+ return sendTsRequest('_vue:getElementAttrs', args);
95
95
  },
96
96
  getElementNames(...args) {
97
- return sendTsRequest('vue:getElementNames', args);
97
+ return sendTsRequest('_vue:getElementNames', args);
98
98
  },
99
99
  getImportPathForFile(...args) {
100
- return sendTsRequest('vue:getImportPathForFile', args);
100
+ return sendTsRequest('_vue:getImportPathForFile', args);
101
101
  },
102
102
  getPropertiesAtLocation(...args) {
103
- return sendTsRequest('vue:getPropertiesAtLocation', args);
103
+ return sendTsRequest('_vue:getPropertiesAtLocation', args);
104
104
  },
105
105
  getDocumentHighlights(fileName, position) {
106
- return sendTsRequest('documentHighlights-full', // internal command
107
- {
106
+ return sendTsRequest('_vue:documentHighlights-full', {
108
107
  file: fileName,
109
108
  ...{ position },
110
109
  filesToSearch: [fileName],
111
110
  });
112
111
  },
113
112
  async getQuickInfoAtPosition(fileName, { line, character }) {
114
- const result = await sendTsRequest(ts.server.protocol.CommandTypes.Quickinfo, {
113
+ const result = await sendTsRequest('_vue:' + ts.server.protocol.CommandTypes.Quickinfo, {
115
114
  file: fileName,
116
115
  line: line + 1,
117
116
  offset: character + 1,
@@ -265,7 +265,7 @@ function collect(ts, sourceFile) {
265
265
  }
266
266
  }
267
267
  else if (ts.isParameter(node)) {
268
- if (node.type && node.type && ts.isTypeReferenceNode(node.type)) {
268
+ if (node.type && ts.isTypeReferenceNode(node.type)) {
269
269
  const typeName = node.type.typeName.getText(sourceFile);
270
270
  if (typeName.endsWith('Ref')) {
271
271
  signals.push({
@@ -321,7 +321,7 @@ function collect(ts, sourceFile) {
321
321
  sideEffectInfo: {
322
322
  isEffect: true,
323
323
  handler: effectCallback.body,
324
- }
324
+ },
325
325
  });
326
326
  }
327
327
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/language-server",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.3",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -17,9 +17,9 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@volar/language-server": "2.4.14",
20
- "@vue/language-core": "3.0.0-beta.2",
21
- "@vue/language-service": "3.0.0-beta.2",
22
- "@vue/typescript-plugin": "3.0.0-beta.2",
20
+ "@vue/language-core": "3.0.0-beta.3",
21
+ "@vue/language-service": "3.0.0-beta.3",
22
+ "@vue/typescript-plugin": "3.0.0-beta.3",
23
23
  "vscode-uri": "^3.0.8"
24
24
  },
25
25
  "peerDependencies": {
@@ -29,5 +29,5 @@
29
29
  "@typescript/server-harness": "latest",
30
30
  "@volar/test-utils": "2.4.14"
31
31
  },
32
- "gitHead": "ea40288f6fceebb65346732b6de5859c300cf1ee"
32
+ "gitHead": "17e3beabc13e9eb59a82fb1a9f0252fd6685e444"
33
33
  }