@volar/typescript 2.4.21 → 2.4.23

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.
@@ -301,7 +301,11 @@ function organizeImports(language, organizeImports) {
301
301
  };
302
302
  }
303
303
  function getQuickInfoAtPosition(language, getQuickInfoAtPosition) {
304
- return (filePath, position) => {
304
+ /**
305
+ * Using `...args` for pass through rest params (including internal `verbosityLevel` param).
306
+ * https://github.com/microsoft/TypeScript/blob/dd830711041b7b0cfd3da7937755996b1e1b1c7e/src/services/types.ts#L588
307
+ */
308
+ return (filePath, position, ...args) => {
305
309
  const fileName = filePath.replace(windowsPathReg, '/');
306
310
  const [serviceScript, targetScript, sourceScript] = (0, utils_1.getServiceScript)(language, fileName);
307
311
  if (targetScript?.associatedOnly) {
@@ -310,7 +314,7 @@ function getQuickInfoAtPosition(language, getQuickInfoAtPosition) {
310
314
  if (serviceScript) {
311
315
  const infos = [];
312
316
  for (const [generatePosition] of (0, transform_1.toGeneratedOffsets)(language, serviceScript, sourceScript, position, language_core_1.isHoverEnabled)) {
313
- const info = getQuickInfoAtPosition(targetScript.id, generatePosition);
317
+ const info = getQuickInfoAtPosition(targetScript.id, generatePosition, ...args);
314
318
  if (info) {
315
319
  const textSpan = (0, transform_1.transformTextSpan)(sourceScript, language, serviceScript, info.textSpan, true, language_core_1.isHoverEnabled)?.[1];
316
320
  if (textSpan) {
@@ -361,7 +365,7 @@ function getQuickInfoAtPosition(language, getQuickInfoAtPosition) {
361
365
  }
362
366
  }
363
367
  else {
364
- return getQuickInfoAtPosition(fileName, position);
368
+ return getQuickInfoAtPosition(fileName, position, ...args);
365
369
  }
366
370
  };
367
371
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/typescript",
3
- "version": "2.4.21",
3
+ "version": "2.4.23",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -12,14 +12,14 @@
12
12
  "directory": "packages/typescript"
13
13
  },
14
14
  "dependencies": {
15
- "@volar/language-core": "2.4.21",
15
+ "@volar/language-core": "2.4.23",
16
16
  "path-browserify": "^1.0.1",
17
17
  "vscode-uri": "^3.0.8"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "latest",
21
21
  "@types/path-browserify": "latest",
22
- "@volar/language-service": "2.4.21"
22
+ "@volar/language-service": "2.4.23"
23
23
  },
24
- "gitHead": "ddb336ac5074cf17afe7929d5bb2258f451e67ff"
24
+ "gitHead": "9b06fb744475622284870f6cc4e638dc7747daef"
25
25
  }