volar-service-typescript 0.0.49 → 0.0.50

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.
@@ -132,7 +132,8 @@ function create(ts, { isValidationEnabled = async (document, context) => {
132
132
  fileNameToUri(fileName) {
133
133
  const extraServiceScript = getExtraServiceScript(fileName);
134
134
  if (extraServiceScript) {
135
- return context.encodeEmbeddedDocumentUri(extraServiceScript[0].id, extraServiceScript[1].code.id);
135
+ const sourceScript = context.language.scripts.fromVirtualCode(extraServiceScript.code);
136
+ return context.encodeEmbeddedDocumentUri(sourceScript.id, extraServiceScript.code.id);
136
137
  }
137
138
  const uri = asScriptId(fileName);
138
139
  const sourceScript = context.language.scripts.get(uri);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volar-service-typescript",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "Integrate TypeScript into Volar",
5
5
  "homepage": "https://github.com/volarjs/services/tree/master/packages/typescript",
6
6
  "bugs": "https://github.com/volarjs/services/issues",
@@ -36,12 +36,12 @@
36
36
  "vscode-uri": "^3.0.8"
37
37
  },
38
38
  "peerDependencies": {
39
- "@volar/language-service": "~2.3.0-alpha.1"
39
+ "@volar/language-service": "~2.3.0-alpha.5"
40
40
  },
41
41
  "peerDependenciesMeta": {
42
42
  "@volar/language-service": {
43
43
  "optional": true
44
44
  }
45
45
  },
46
- "gitHead": "81275d75ab2adc03a643785a551ad31debd72866"
46
+ "gitHead": "70ff61c4cd2fd307703c10d3a80e1513aff7fbae"
47
47
  }