Skip to content

Commit 9733858

Browse files
Update LKG.
1 parent 626303e commit 9733858

10 files changed

+726
-958
lines changed

lib/protocol.d.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ declare namespace ts.server.protocol {
6161
GetApplicableRefactors = "getApplicableRefactors",
6262
GetEditsForRefactor = "getEditsForRefactor",
6363
OrganizeImports = "organizeImports",
64-
GetEditsForFileRename = "getEditsForFileRename"
64+
GetEditsForFileRename = "getEditsForFileRename",
65+
ConfigurePlugin = "configurePlugin"
6566
}
6667
/**
6768
* A TypeScript Server message
@@ -1006,6 +1007,14 @@ declare namespace ts.server.protocol {
10061007
*/
10071008
interface ConfigureResponse extends Response {
10081009
}
1010+
interface ConfigurePluginRequestArguments {
1011+
pluginName: string;
1012+
configuration: any;
1013+
}
1014+
interface ConfigurePluginRequest extends Request {
1015+
command: CommandTypes.ConfigurePlugin;
1016+
arguments: ConfigurePluginRequestArguments;
1017+
}
10091018
/**
10101019
* Information found in an "open" request.
10111020
*/

lib/tsc.js

+95-146
Large diffs are not rendered by default.

lib/tsserver.js

+143-172
Large diffs are not rendered by default.

lib/tsserverlibrary.d.ts

+23-6
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ declare namespace ts {
6969
pos: number;
7070
end: number;
7171
}
72-
type JsDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind.AtToken | SyntaxKind.NewLineTrivia | SyntaxKind.AsteriskToken | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.LessThanToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.EqualsToken | SyntaxKind.CommaToken | SyntaxKind.DotToken | SyntaxKind.Identifier | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.Unknown;
72+
type JsDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind.AtToken | SyntaxKind.NewLineTrivia | SyntaxKind.AsteriskToken | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.LessThanToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.EqualsToken | SyntaxKind.CommaToken | SyntaxKind.DotToken | SyntaxKind.Identifier | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.Unknown | KeywordSyntaxKind;
73+
type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InferKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.OfKeyword;
7374
type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken;
7475
enum SyntaxKind {
7576
Unknown = 0,
@@ -5672,7 +5673,8 @@ declare namespace ts.server.protocol {
56725673
GetApplicableRefactors = "getApplicableRefactors",
56735674
GetEditsForRefactor = "getEditsForRefactor",
56745675
OrganizeImports = "organizeImports",
5675-
GetEditsForFileRename = "getEditsForFileRename"
5676+
GetEditsForFileRename = "getEditsForFileRename",
5677+
ConfigurePlugin = "configurePlugin"
56765678
}
56775679
/**
56785680
* A TypeScript Server message
@@ -6617,6 +6619,14 @@ declare namespace ts.server.protocol {
66176619
*/
66186620
interface ConfigureResponse extends Response {
66196621
}
6622+
interface ConfigurePluginRequestArguments {
6623+
pluginName: string;
6624+
configuration: any;
6625+
}
6626+
interface ConfigurePluginRequest extends Request {
6627+
command: CommandTypes.ConfigurePlugin;
6628+
arguments: ConfigurePluginRequestArguments;
6629+
}
66206630
/**
66216631
* Information found in an "open" request.
66226632
*/
@@ -8043,6 +8053,11 @@ declare namespace ts.server {
80438053
interface PluginModule {
80448054
create(createInfo: PluginCreateInfo): LanguageService;
80458055
getExternalFiles?(proj: Project): string[];
8056+
onConfigurationChanged?(config: any): void;
8057+
}
8058+
interface PluginModuleWithName {
8059+
name: string;
8060+
module: PluginModule;
80468061
}
80478062
type PluginModuleFactory = (mod: {
80488063
typescript: typeof ts;
@@ -8181,11 +8196,11 @@ declare namespace ts.server {
81818196
filesToString(writeProjectFileNames: boolean): string;
81828197
setCompilerOptions(compilerOptions: CompilerOptions): void;
81838198
protected removeRoot(info: ScriptInfo): void;
8184-
protected enableGlobalPlugins(options: CompilerOptions): void;
8185-
protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[]): void;
8199+
protected enableGlobalPlugins(options: CompilerOptions, pluginConfigOverrides: Map<any> | undefined): void;
8200+
protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[], pluginConfigOverrides: Map<any> | undefined): void;
8201+
private enableProxy;
81868202
/** Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. */
81878203
refreshDiagnostics(): void;
8188-
private enableProxy;
81898204
}
81908205
/**
81918206
* If a file is opened and no tsconfig (or jsconfig) is found,
@@ -8226,7 +8241,6 @@ declare namespace ts.server {
82268241
getConfigFilePath(): NormalizedPath;
82278242
getProjectReferences(): ReadonlyArray<ProjectReference>;
82288243
updateReferences(refs: ReadonlyArray<ProjectReference> | undefined): void;
8229-
enablePlugins(): void;
82308244
/**
82318245
* Get the errors that dont have any file name associated
82328246
*/
@@ -8471,6 +8485,7 @@ declare namespace ts.server {
84718485
readonly globalPlugins: ReadonlyArray<string>;
84728486
readonly pluginProbeLocations: ReadonlyArray<string>;
84738487
readonly allowLocalPluginLoads: boolean;
8488+
private currentPluginConfigOverrides;
84748489
readonly typesMapLocation: string | undefined;
84758490
readonly syntaxOnly?: boolean;
84768491
/** Tracks projects that we have already sent telemetry for. */
@@ -8646,6 +8661,7 @@ declare namespace ts.server {
86468661
applySafeList(proj: protocol.ExternalProject): NormalizedPath[];
86478662
openExternalProject(proj: protocol.ExternalProject): void;
86488663
hasDeferredExtension(): boolean;
8664+
configurePlugin(args: protocol.ConfigurePluginRequestArguments): void;
86498665
}
86508666
}
86518667
declare namespace ts.server {
@@ -8816,6 +8832,7 @@ declare namespace ts.server {
88168832
private convertTextChangeToCodeEdit;
88178833
private getBraceMatching;
88188834
private getDiagnosticsForProject;
8835+
private configurePlugin;
88198836
getCanonicalFileName(fileName: string): string;
88208837
exit(): void;
88218838
private notRequired;

0 commit comments

Comments
 (0)