ember-eslint-parser 0.14.4 → 0.14.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-eslint-parser",
3
- "version": "0.14.4",
3
+ "version": "0.14.5",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "repository": {
@@ -155,6 +155,14 @@ try {
155
155
  originalFileName: virtualSourceFile.originalFileName,
156
156
  resolvedPath: virtualSourceFile.resolvedPath,
157
157
  impliedNodeFormat: virtualSourceFile.impliedNodeFormat,
158
+ // The twin is a .mts/.mjs, so its script kind has to stay the one the language
159
+ // service host reports for that extension. Inheriting the .gts/.gjs file's
160
+ // Deferred kind makes TypeScript's getOrCreateSourceFileByPath see a script-kind
161
+ // mismatch on the next program sync, and it responds by releasing and
162
+ // re-acquiring the document instead of updating it — a full re-parse of every
163
+ // twin, on every parse. It never settles either: the re-acquired file comes back
164
+ // as TS, and the next call to this function stamps it back to Deferred.
165
+ scriptKind: virtualSourceFile.scriptKind,
158
166
  };
159
167
  Object.assign(virtualSourceFile, sourceFile, keep);
160
168
  virtualSourceFile[virtualFlag] = true;