Skip to content

Commit 14a9cf8

Browse files
committed
Move LSIF to TS 4.5.2
1 parent 7893f68 commit 14a9cf8

21 files changed

+13893
-3075
lines changed

lib/cancellationToken.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/tsc.js

Lines changed: 285 additions & 256 deletions
Large diffs are not rendered by default.

lib/tsserver.js

Lines changed: 578 additions & 550 deletions
Large diffs are not rendered by default.

lib/tsserverlibrary.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,20 @@ declare namespace ts {
22482248
diagnostics: readonly Diagnostic[];
22492249
emittedFiles?: string[];
22502250
}
2251+
export interface SymbolChainCacheKey {
2252+
symbol: Symbol;
2253+
enclosingDeclaration?: Node;
2254+
flags: NodeBuilderFlags;
2255+
meaning: SymbolFlags;
2256+
yieldModuleSymbol?: boolean;
2257+
endOfChain: boolean;
2258+
}
2259+
export interface SymbolChainCache {
2260+
lookup(key: SymbolChainCacheKey): Symbol[] | undefined;
2261+
cache(key: SymbolChainCacheKey, value: Symbol[]): void;
2262+
}
22512263
export interface TypeChecker {
2264+
setSymbolChainCache(cache: SymbolChainCache | undefined): void;
22522265
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
22532266
getDeclaredTypeOfSymbol(symbol: Symbol): Type;
22542267
getPropertiesOfType(type: Type): Symbol[];
@@ -5776,6 +5789,7 @@ declare namespace ts {
57765789
* @param position A zero-based index of the character where you want the quick info
57775790
*/
57785791
getQuickInfoAtPosition(fileName: string, position: number): QuickInfo | undefined;
5792+
getQuickInfoAtPosition(node: ts.Node, sourceFile?: ts.SourceFile): QuickInfo | undefined;
57795793
getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined;
57805794
getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined;
57815795
getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined;
@@ -5800,6 +5814,7 @@ declare namespace ts {
58005814
provideCallHierarchyOutgoingCalls(fileName: string, position: number): CallHierarchyOutgoingCall[];
58015815
provideInlayHints(fileName: string, span: TextSpan, preferences: UserPreferences | undefined): InlayHint[];
58025816
getOutliningSpans(fileName: string): OutliningSpan[];
5817+
getOutliningSpans(sourceFile: ts.SourceFile): OutliningSpan[];
58035818
getTodoComments(fileName: string, descriptors: TodoCommentDescriptor[]): TodoComment[];
58045819
getBraceMatchingAtPosition(fileName: string, position: number): TextSpan[];
58055820
getIndentationAtPosition(fileName: string, position: number, options: EditorOptions | EditorSettings): number;

lib/tsserverlibrary.js

Lines changed: 554 additions & 526 deletions
Large diffs are not rendered by default.

lib/typescript.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,20 @@ declare namespace ts {
22482248
diagnostics: readonly Diagnostic[];
22492249
emittedFiles?: string[];
22502250
}
2251+
export interface SymbolChainCacheKey {
2252+
symbol: Symbol;
2253+
enclosingDeclaration?: Node;
2254+
flags: NodeBuilderFlags;
2255+
meaning: SymbolFlags;
2256+
yieldModuleSymbol?: boolean;
2257+
endOfChain: boolean;
2258+
}
2259+
export interface SymbolChainCache {
2260+
lookup(key: SymbolChainCacheKey): Symbol[] | undefined;
2261+
cache(key: SymbolChainCacheKey, value: Symbol[]): void;
2262+
}
22512263
export interface TypeChecker {
2264+
setSymbolChainCache(cache: SymbolChainCache | undefined): void;
22522265
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
22532266
getDeclaredTypeOfSymbol(symbol: Symbol): Type;
22542267
getPropertiesOfType(type: Type): Symbol[];
@@ -5776,6 +5789,7 @@ declare namespace ts {
57765789
* @param position A zero-based index of the character where you want the quick info
57775790
*/
57785791
getQuickInfoAtPosition(fileName: string, position: number): QuickInfo | undefined;
5792+
getQuickInfoAtPosition(node: ts.Node, sourceFile?: ts.SourceFile): QuickInfo | undefined;
57795793
getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined;
57805794
getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined;
57815795
getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined;
@@ -5800,6 +5814,7 @@ declare namespace ts {
58005814
provideCallHierarchyOutgoingCalls(fileName: string, position: number): CallHierarchyOutgoingCall[];
58015815
provideInlayHints(fileName: string, span: TextSpan, preferences: UserPreferences | undefined): InlayHint[];
58025816
getOutliningSpans(fileName: string): OutliningSpan[];
5817+
getOutliningSpans(sourceFile: ts.SourceFile): OutliningSpan[];
58035818
getTodoComments(fileName: string, descriptors: TodoCommentDescriptor[]): TodoComment[];
58045819
getBraceMatchingAtPosition(fileName: string, position: number): TextSpan[];
58055820
getIndentationAtPosition(fileName: string, position: number, options: EditorOptions | EditorSettings): number;

0 commit comments

Comments
 (0)