mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-23 07:07:09 -05:00
Merge pull request #36383 from uniqueiniquity/redirectInfo
Redirect info
This commit is contained in:
@@ -1324,6 +1324,18 @@ namespace ts.server.protocol {
|
||||
lastFileExceededProgramSize?: string;
|
||||
}
|
||||
|
||||
export interface FileWithProjectReferenceRedirectInfo {
|
||||
/**
|
||||
* Name of file
|
||||
*/
|
||||
fileName: string;
|
||||
|
||||
/**
|
||||
* True if the file is primarily included in a referenced project
|
||||
*/
|
||||
isSourceOfProjectReferenceRedirect: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a set of changes that happen in project
|
||||
*/
|
||||
@@ -1331,15 +1343,20 @@ namespace ts.server.protocol {
|
||||
/**
|
||||
* List of added files
|
||||
*/
|
||||
added: string[];
|
||||
added: string[] | FileWithProjectReferenceRedirectInfo[];
|
||||
/**
|
||||
* List of removed files
|
||||
*/
|
||||
removed: string[];
|
||||
removed: string[] | FileWithProjectReferenceRedirectInfo[];
|
||||
/**
|
||||
* List of updated files
|
||||
*/
|
||||
updated: string[];
|
||||
updated: string[] | FileWithProjectReferenceRedirectInfo[];
|
||||
/**
|
||||
* List of files that have had their project reference redirect status updated
|
||||
* Only provided when the synchronizeProjectList request has includeProjectReferenceRedirectInfo set to true
|
||||
*/
|
||||
updatedRedirects?: FileWithProjectReferenceRedirectInfo[];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1357,8 +1374,10 @@ namespace ts.server.protocol {
|
||||
info?: ProjectVersionInfo;
|
||||
/**
|
||||
* List of files in project (might be omitted if current state of project can be computed using only information from 'changes')
|
||||
* This property will have type FileWithProjectReferenceRedirectInfo[] if includeProjectReferenceRedirectInfo is set to true in
|
||||
* the corresponding SynchronizeProjectList request; otherwise, it will have type string[].
|
||||
*/
|
||||
files?: string[];
|
||||
files?: string[] | FileWithProjectReferenceRedirectInfo[];
|
||||
/**
|
||||
* Set of changes in project (omitted if the entire set of files in project should be replaced)
|
||||
*/
|
||||
@@ -1621,6 +1640,11 @@ namespace ts.server.protocol {
|
||||
* List of last known projects
|
||||
*/
|
||||
knownProjects: ProjectVersionInfo[];
|
||||
/**
|
||||
* If true, response specifies whether or not each file in each project
|
||||
* is a source from a project reference redirect
|
||||
*/
|
||||
includeProjectReferenceRedirectInfo?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user