Skip to content

Commit c98166c

Browse files
committed
Accept new LKG (LKGd via gulp)
1 parent e0ffe05 commit c98166c

8 files changed

Lines changed: 39234 additions & 17445 deletions

lib/tsc.js

Lines changed: 1072 additions & 123 deletions
Large diffs are not rendered by default.

lib/tsserver.js

Lines changed: 18562 additions & 8509 deletions
Large diffs are not rendered by default.

lib/tsserverlibrary.d.ts

Lines changed: 555 additions & 10 deletions
Large diffs are not rendered by default.

lib/tsserverlibrary.js

Lines changed: 18535 additions & 8509 deletions
Large diffs are not rendered by default.

lib/typescript.d.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ declare namespace ts {
919919
type ModuleBody = ModuleBlock | ModuleDeclaration;
920920
interface ModuleDeclaration extends DeclarationStatement {
921921
name: Identifier | LiteralExpression;
922-
body: ModuleBlock | ModuleDeclaration;
922+
body?: ModuleBlock | ModuleDeclaration;
923923
}
924924
interface ModuleBlock extends Node, Statement {
925925
statements: NodeArray<Statement>;
@@ -1575,6 +1575,8 @@ declare namespace ts {
15751575
target?: ScriptTarget;
15761576
traceResolution?: boolean;
15771577
types?: string[];
1578+
/** Paths used to used to compute primary types search locations */
1579+
typeRoots?: string[];
15781580
typesSearchPaths?: string[];
15791581
[option: string]: CompilerOptionsValue | undefined;
15801582
}
@@ -1672,6 +1674,7 @@ declare namespace ts {
16721674
getDefaultTypeDirectiveNames?(rootPath: string): string[];
16731675
writeFile: WriteFileCallback;
16741676
getCurrentDirectory(): string;
1677+
getDirectories(path: string): string[];
16751678
getCanonicalFileName(fileName: string): string;
16761679
useCaseSensitiveFileNames(): boolean;
16771680
getNewLine(): string;
@@ -1821,6 +1824,7 @@ declare namespace ts {
18211824
function updateSourceFile(sourceFile: SourceFile, newText: string, textChangeRange: TextChangeRange, aggressiveChecks?: boolean): SourceFile;
18221825
}
18231826
declare namespace ts {
1827+
/** The version of the TypeScript compiler release */
18241828
const version: string;
18251829
function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean): string;
18261830
function resolveTripleslashReference(moduleName: string, containingFile: string): string;
@@ -1836,7 +1840,15 @@ declare namespace ts {
18361840
function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost;
18371841
function getPreEmitDiagnostics(program: Program, sourceFile?: SourceFile, cancellationToken?: CancellationToken): Diagnostic[];
18381842
function flattenDiagnosticMessageText(messageText: string | DiagnosticMessageChain, newLine: string): string;
1839-
function getDefaultTypeDirectiveNames(options: CompilerOptions, rootFiles: string[], host: CompilerHost): string[];
1843+
/**
1844+
* Given a set of options and a set of root files, returns the set of type directive names
1845+
* that should be included for this program automatically.
1846+
* This list could either come from the config file,
1847+
* or from enumerating the types root + initial secondary types lookup location.
1848+
* More type directives might appear in the program later as a result of loading actual source files;
1849+
* this list is only the set of defaults that are implicitly included.
1850+
*/
1851+
function getAutomaticTypeDirectiveNames(options: CompilerOptions, rootFiles: string[], host: CompilerHost): string[];
18401852
function createProgram(rootNames: string[], options: CompilerOptions, host?: CompilerHost, oldProgram?: Program): Program;
18411853
}
18421854
declare namespace ts {
@@ -1978,6 +1990,7 @@ declare namespace ts {
19781990
resolveModuleNames?(moduleNames: string[], containingFile: string): ResolvedModule[];
19791991
resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string): ResolvedTypeReferenceDirective[];
19801992
directoryExists?(directoryName: string): boolean;
1993+
getDirectories?(directoryName: string): string[];
19811994
}
19821995
interface LanguageService {
19831996
cleanupSemanticCache(): void;
@@ -2068,6 +2081,7 @@ declare namespace ts {
20682081
textSpan: TextSpan;
20692082
fileName: string;
20702083
isWriteAccess: boolean;
2084+
isDefinition: boolean;
20712085
}
20722086
interface DocumentHighlights {
20732087
fileName: string;

lib/typescript.js

Lines changed: 239 additions & 145 deletions
Large diffs are not rendered by default.

lib/typescriptServices.d.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ declare namespace ts {
919919
type ModuleBody = ModuleBlock | ModuleDeclaration;
920920
interface ModuleDeclaration extends DeclarationStatement {
921921
name: Identifier | LiteralExpression;
922-
body: ModuleBlock | ModuleDeclaration;
922+
body?: ModuleBlock | ModuleDeclaration;
923923
}
924924
interface ModuleBlock extends Node, Statement {
925925
statements: NodeArray<Statement>;
@@ -1575,6 +1575,8 @@ declare namespace ts {
15751575
target?: ScriptTarget;
15761576
traceResolution?: boolean;
15771577
types?: string[];
1578+
/** Paths used to used to compute primary types search locations */
1579+
typeRoots?: string[];
15781580
typesSearchPaths?: string[];
15791581
[option: string]: CompilerOptionsValue | undefined;
15801582
}
@@ -1672,6 +1674,7 @@ declare namespace ts {
16721674
getDefaultTypeDirectiveNames?(rootPath: string): string[];
16731675
writeFile: WriteFileCallback;
16741676
getCurrentDirectory(): string;
1677+
getDirectories(path: string): string[];
16751678
getCanonicalFileName(fileName: string): string;
16761679
useCaseSensitiveFileNames(): boolean;
16771680
getNewLine(): string;
@@ -1821,6 +1824,7 @@ declare namespace ts {
18211824
function updateSourceFile(sourceFile: SourceFile, newText: string, textChangeRange: TextChangeRange, aggressiveChecks?: boolean): SourceFile;
18221825
}
18231826
declare namespace ts {
1827+
/** The version of the TypeScript compiler release */
18241828
const version: string;
18251829
function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean): string;
18261830
function resolveTripleslashReference(moduleName: string, containingFile: string): string;
@@ -1836,7 +1840,15 @@ declare namespace ts {
18361840
function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost;
18371841
function getPreEmitDiagnostics(program: Program, sourceFile?: SourceFile, cancellationToken?: CancellationToken): Diagnostic[];
18381842
function flattenDiagnosticMessageText(messageText: string | DiagnosticMessageChain, newLine: string): string;
1839-
function getDefaultTypeDirectiveNames(options: CompilerOptions, rootFiles: string[], host: CompilerHost): string[];
1843+
/**
1844+
* Given a set of options and a set of root files, returns the set of type directive names
1845+
* that should be included for this program automatically.
1846+
* This list could either come from the config file,
1847+
* or from enumerating the types root + initial secondary types lookup location.
1848+
* More type directives might appear in the program later as a result of loading actual source files;
1849+
* this list is only the set of defaults that are implicitly included.
1850+
*/
1851+
function getAutomaticTypeDirectiveNames(options: CompilerOptions, rootFiles: string[], host: CompilerHost): string[];
18401852
function createProgram(rootNames: string[], options: CompilerOptions, host?: CompilerHost, oldProgram?: Program): Program;
18411853
}
18421854
declare namespace ts {
@@ -1978,6 +1990,7 @@ declare namespace ts {
19781990
resolveModuleNames?(moduleNames: string[], containingFile: string): ResolvedModule[];
19791991
resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string): ResolvedTypeReferenceDirective[];
19801992
directoryExists?(directoryName: string): boolean;
1993+
getDirectories?(directoryName: string): string[];
19811994
}
19821995
interface LanguageService {
19831996
cleanupSemanticCache(): void;
@@ -2068,6 +2081,7 @@ declare namespace ts {
20682081
textSpan: TextSpan;
20692082
fileName: string;
20702083
isWriteAccess: boolean;
2084+
isDefinition: boolean;
20712085
}
20722086
interface DocumentHighlights {
20732087
fileName: string;

0 commit comments

Comments
 (0)