Skip to content

Commit 9d80838

Browse files
committed
fix: tsconfig project references are not respected
close #525
1 parent 3064262 commit 9d80838

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

packages/server/src/project.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ export function createProject(
151151
readDirectory: ts.sys.readDirectory,
152152
realpath: ts.sys.realpath,
153153
fileExists: ts.sys.fileExists,
154+
getProjectReferences: () => parsedCommandLine.projectReferences,
154155
// custom
155156
getDefaultLibFileName: options => ts.getDefaultLibFilePath(options), // TODO: vscode option for ts lib
156157
getProjectVersion: () => tsProjectVersion.toString(),

packages/typescript-vue-plugin/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ function createProxyHost(ts: typeof import('typescript/lib/tsserverlibrary'), in
7878
getDefaultLibFileName: () => info.project.getDefaultLibFileName(),
7979
getProjectVersion: () => info.project.getProjectVersion(),
8080
getVueProjectVersion: () => projectVersion.toString(),
81+
getProjectReferences: () => info.project.getProjectReferences(),
8182

8283
getScriptFileNames,
8384
getScriptVersion,

packages/vue-tsc/src/proxy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export function createProgramProxy(options: ts.CreateProgramOptions) {
4545
getScriptSnapshot,
4646
getProjectVersion: () => '',
4747
getVueProjectVersion: () => '',
48+
getProjectReferences: () => options.projectReferences,
4849
};
4950
const vueLs = vue.createLanguageService({ typescript: ts }, vueLsHost);
5051
const program = vueLs.__internal__.tsProgramProxy;

0 commit comments

Comments
 (0)