typescript-svelte-plugin 0.3.19 → 0.3.20

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.
@@ -596,23 +596,79 @@ function getProxiedLanguageService(info, ts, logger) {
596
596
  function createProxyRegistry(ts, originalLanguageServiceHost, options) {
597
597
  // Don't destructure options param, as the value may be mutated through a svelte.config.js later
598
598
  const registry = ts.createDocumentRegistry();
599
- const originalRegistry = originalLanguageServiceHost.documentRegistry;
600
- const proxyRegistry = {
601
- ...originalRegistry,
602
- acquireDocumentWithKey(fileName, tsPath, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions) {
603
- if (svelte2tsx_1.internalHelpers.isKitFile(fileName, options)) {
604
- return registry.acquireDocumentWithKey(fileName, tsPath, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions);
605
- }
606
- return originalRegistry.acquireDocumentWithKey(fileName, tsPath, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions);
607
- },
608
- updateDocumentWithKey(fileName, tsPath, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions) {
609
- if (svelte2tsx_1.internalHelpers.isKitFile(fileName, options)) {
610
- return registry.updateDocumentWithKey(fileName, tsPath, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions);
611
- }
612
- return originalRegistry.updateDocumentWithKey(fileName, tsPath, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions);
613
- }
614
- };
615
- return proxyRegistry;
599
+ return registry;
600
+ // TODO check why this fails on linux and reenable later
601
+ // const originalRegistry = (originalLanguageServiceHost as any).documentRegistry;
602
+ // const proxyRegistry: ts.DocumentRegistry = {
603
+ // ...originalRegistry,
604
+ // acquireDocumentWithKey(
605
+ // fileName,
606
+ // tsPath,
607
+ // compilationSettingsOrHost,
608
+ // key,
609
+ // scriptSnapshot,
610
+ // version,
611
+ // scriptKind,
612
+ // sourceFileOptions
613
+ // ) {
614
+ // if (internalHelpers.isKitFile(fileName, options)) {
615
+ // return registry.acquireDocumentWithKey(
616
+ // fileName,
617
+ // tsPath,
618
+ // compilationSettingsOrHost,
619
+ // key,
620
+ // scriptSnapshot,
621
+ // version,
622
+ // scriptKind,
623
+ // sourceFileOptions
624
+ // );
625
+ // }
626
+ // return originalRegistry.acquireDocumentWithKey(
627
+ // fileName,
628
+ // tsPath,
629
+ // compilationSettingsOrHost,
630
+ // key,
631
+ // scriptSnapshot,
632
+ // version,
633
+ // scriptKind,
634
+ // sourceFileOptions
635
+ // );
636
+ // },
637
+ // updateDocumentWithKey(
638
+ // fileName,
639
+ // tsPath,
640
+ // compilationSettingsOrHost,
641
+ // key,
642
+ // scriptSnapshot,
643
+ // version,
644
+ // scriptKind,
645
+ // sourceFileOptions
646
+ // ) {
647
+ // if (internalHelpers.isKitFile(fileName, options)) {
648
+ // return registry.updateDocumentWithKey(
649
+ // fileName,
650
+ // tsPath,
651
+ // compilationSettingsOrHost,
652
+ // key,
653
+ // scriptSnapshot,
654
+ // version,
655
+ // scriptKind,
656
+ // sourceFileOptions
657
+ // );
658
+ // }
659
+ // return originalRegistry.updateDocumentWithKey(
660
+ // fileName,
661
+ // tsPath,
662
+ // compilationSettingsOrHost,
663
+ // key,
664
+ // scriptSnapshot,
665
+ // version,
666
+ // scriptKind,
667
+ // sourceFileOptions
668
+ // );
669
+ // }
670
+ // };
671
+ // return proxyRegistry;
616
672
  }
617
673
  function getVirtualLS(fileName, info, ts, logger) {
618
674
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typescript-svelte-plugin",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
4
4
  "description": "A TypeScript Plugin providing Svelte intellisense",
5
5
  "main": "dist/src/index.js",
6
6
  "scripts": {