@volar/language-core 1.0.0 → 1.0.2

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.
@@ -130,6 +130,10 @@ function createEmbeddedLanguageServiceHost(host, languageModules) {
130
130
  }
131
131
  }
132
132
  }
133
+ // no any vue file version change, it mean project version was update by ts file change at this time
134
+ if (!sourceFilesToUpdate.length) {
135
+ tsFileUpdated = true;
136
+ }
133
137
  // add
134
138
  for (const fileName of [...remainFileNames]) {
135
139
  const snapshot = host.getScriptSnapshot(fileName);
@@ -137,6 +141,7 @@ function createEmbeddedLanguageServiceHost(host, languageModules) {
137
141
  for (const languageModule of languageModules) {
138
142
  const sourceFile = languageModule.createSourceFile(fileName, snapshot);
139
143
  if (sourceFile) {
144
+ fileVersions.set(sourceFile.fileName, host.getScriptVersion(fileName));
140
145
  documentRegistry.set(fileName, (0, reactivity_1.shallowReactive)(sourceFile), languageModule);
141
146
  remainFileNames.delete(fileName);
142
147
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/language-core",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -13,9 +13,9 @@
13
13
  "directory": "packages/language-core"
14
14
  },
15
15
  "dependencies": {
16
- "@volar/source-map": "1.0.0",
16
+ "@volar/source-map": "1.0.2",
17
17
  "@vue/reactivity": "^3.2.38",
18
18
  "muggle-string": "^0.1.0"
19
19
  },
20
- "gitHead": "5496c1ecc0ae6207d6fa7da745f047c44c32db81"
20
+ "gitHead": "4e750f808450c0f70b0a439cb6954cf29345e8f2"
21
21
  }