Skip to content

Commit de37f35

Browse files
committed
set compilation settings of project as a part of sync process
1 parent e77f9b2 commit de37f35

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/server/project.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ namespace ts.server {
294294
const info = {
295295
projectName: this.getProjectName(),
296296
version: this.projectStructureVersion,
297-
isInferred: this.projectKind === ProjectKind.Inferred
297+
isInferred: this.projectKind === ProjectKind.Inferred,
298+
options: this.getCompilerOptions()
298299
};
299300
// check if requested version is the same that we have reported last time
300301
if (this.lastReportedFileNames && lastKnownVersion === this.lastReportedVersion) {

src/server/protocol.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ declare namespace ts.server.protocol {
507507
projectName: string;
508508
isInferred: boolean;
509509
version: number;
510+
options: CompilerOptions;
510511
}
511512

512513
export interface ProjectChanges {

0 commit comments

Comments
 (0)