typescript-svelte-plugin 0.3.48 → 0.3.49
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.
|
@@ -11,6 +11,7 @@ declare module 'typescript/lib/tsserverlibrary' {
|
|
|
11
11
|
/** @internal */ getPackageJsonsVisibleToFile?(fileName: string, rootDir?: string): readonly unknown[];
|
|
12
12
|
/** @internal */ getPackageJsonAutoImportProvider?(): ts.Program | undefined;
|
|
13
13
|
/** @internal*/ getModuleResolutionCache?(): ts.ModuleResolutionCache;
|
|
14
|
+
/** @internal */ useSourceOfProjectReferenceRedirect?(): boolean;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
export declare const kitExports: Record<string, {
|
|
@@ -567,6 +567,9 @@ function getProxiedLanguageService(info, ts, logger) {
|
|
|
567
567
|
this.getModuleResolutionCache = originalLanguageServiceHost.getModuleResolutionCache
|
|
568
568
|
? () => originalLanguageServiceHost.getModuleResolutionCache()
|
|
569
569
|
: undefined;
|
|
570
|
+
this.useSourceOfProjectReferenceRedirect = originalLanguageServiceHost.useSourceOfProjectReferenceRedirect
|
|
571
|
+
? () => originalLanguageServiceHost.useSourceOfProjectReferenceRedirect()
|
|
572
|
+
: undefined;
|
|
570
573
|
// This never worked due to configPath being the wrong format and due to https://github.com/microsoft/TypeScript/issues/43329 .
|
|
571
574
|
// Noone has complained about this not working, so this is commented out for now, revisit if it ever comes up.
|
|
572
575
|
// const configPath = info.project.getCurrentDirectory() + '/svelte.config.js';
|