Skip to content

Commit 2dd7960

Browse files
committed
Accept baselines
1 parent e0432bd commit 2dd7960

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5668,7 +5668,8 @@ declare namespace ts.server.protocol {
56685668
GetApplicableRefactors = "getApplicableRefactors",
56695669
GetEditsForRefactor = "getEditsForRefactor",
56705670
OrganizeImports = "organizeImports",
5671-
GetEditsForFileRename = "getEditsForFileRename"
5671+
GetEditsForFileRename = "getEditsForFileRename",
5672+
ConfigurePlugin = "configurePlugin"
56725673
}
56735674
/**
56745675
* A TypeScript Server message
@@ -6609,6 +6610,14 @@ declare namespace ts.server.protocol {
66096610
*/
66106611
interface ConfigureResponse extends Response {
66116612
}
6613+
interface ConfigurePluginRequestArguments {
6614+
pluginName: string;
6615+
configuration: any;
6616+
}
6617+
interface ConfigurePluginRequest extends Request {
6618+
command: CommandTypes.ConfigurePlugin;
6619+
arguments: ConfigurePluginRequestArguments;
6620+
}
66126621
/**
66136622
* Information found in an "open" request.
66146623
*/
@@ -8035,6 +8044,11 @@ declare namespace ts.server {
80358044
interface PluginModule {
80368045
create(createInfo: PluginCreateInfo): LanguageService;
80378046
getExternalFiles?(proj: Project): string[];
8047+
onConfigurationChanged?(config: any): void;
8048+
}
8049+
interface PluginModuleWithName {
8050+
name: string;
8051+
module: PluginModule;
80388052
}
80398053
type PluginModuleFactory = (mod: {
80408054
typescript: typeof ts;
@@ -8173,11 +8187,12 @@ declare namespace ts.server {
81738187
filesToString(writeProjectFileNames: boolean): string;
81748188
setCompilerOptions(compilerOptions: CompilerOptions): void;
81758189
protected removeRoot(info: ScriptInfo): void;
8176-
protected enableGlobalPlugins(options: CompilerOptions): void;
8177-
protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[]): void;
8190+
protected enableGlobalPlugins(options: CompilerOptions, pluginConfigOverrides: Map<any> | undefined): void;
8191+
protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[], pluginConfigOverrides: Map<any> | undefined): void;
8192+
private enableProxy;
8193+
onPluginConfigurationChanged(pluginName: string, configuration: any): void;
81788194
/** Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. */
81798195
refreshDiagnostics(): void;
8180-
private enableProxy;
81818196
}
81828197
/**
81838198
* If a file is opened and no tsconfig (or jsconfig) is found,
@@ -8218,7 +8233,6 @@ declare namespace ts.server {
82188233
getConfigFilePath(): NormalizedPath;
82198234
getProjectReferences(): ReadonlyArray<ProjectReference>;
82208235
updateReferences(refs: ReadonlyArray<ProjectReference> | undefined): void;
8221-
enablePlugins(): void;
82228236
/**
82238237
* Get the errors that dont have any file name associated
82248238
*/
@@ -8463,6 +8477,7 @@ declare namespace ts.server {
84638477
readonly globalPlugins: ReadonlyArray<string>;
84648478
readonly pluginProbeLocations: ReadonlyArray<string>;
84658479
readonly allowLocalPluginLoads: boolean;
8480+
private currentPluginConfigOverrides;
84668481
readonly typesMapLocation: string | undefined;
84678482
readonly syntaxOnly?: boolean;
84688483
/** Tracks projects that we have already sent telemetry for. */
@@ -8638,6 +8653,7 @@ declare namespace ts.server {
86388653
applySafeList(proj: protocol.ExternalProject): NormalizedPath[];
86398654
openExternalProject(proj: protocol.ExternalProject): void;
86408655
hasDeferredExtension(): boolean;
8656+
configurePlugin(args: protocol.ConfigurePluginRequestArguments): void;
86418657
}
86428658
}
86438659
declare namespace ts.server {
@@ -8808,6 +8824,7 @@ declare namespace ts.server {
88088824
private convertTextChangeToCodeEdit;
88098825
private getBraceMatching;
88108826
private getDiagnosticsForProject;
8827+
private configurePlugin;
88118828
getCanonicalFileName(fileName: string): string;
88128829
exit(): void;
88138830
private notRequired;

0 commit comments

Comments
 (0)