typescript 4.8.0-dev.20220614 → 4.8.0-dev.20220617

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4137,6 +4137,7 @@ declare namespace ts {
4137
4137
  readonly includeInlayPropertyDeclarationTypeHints?: boolean;
4138
4138
  readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
4139
4139
  readonly includeInlayEnumMemberValueHints?: boolean;
4140
+ readonly allowRenameOfImportPath?: boolean;
4140
4141
  }
4141
4142
  /** Represents a bigint literal value without requiring bigint support */
4142
4143
  export interface PseudoBigInt {
@@ -5917,6 +5918,8 @@ declare namespace ts {
5917
5918
  getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined;
5918
5919
  getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined;
5919
5920
  getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined;
5921
+ getRenameInfo(fileName: string, position: number, preferences: UserPreferences): RenameInfo;
5922
+ /** @deprecated Use the signature with `UserPreferences` instead. */
5920
5923
  getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo;
5921
5924
  findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): readonly RenameLocation[] | undefined;
5922
5925
  getSmartSelectionRange(fileName: string, position: number): SelectionRange;
@@ -6296,6 +6299,7 @@ declare namespace ts {
6296
6299
  Insert = "insert",
6297
6300
  Remove = "remove"
6298
6301
  }
6302
+ /** @deprecated - consider using EditorSettings instead */
6299
6303
  interface EditorOptions {
6300
6304
  BaseIndentSize?: number;
6301
6305
  IndentSize: number;
@@ -6313,6 +6317,7 @@ declare namespace ts {
6313
6317
  indentStyle?: IndentStyle;
6314
6318
  trimTrailingWhitespace?: boolean;
6315
6319
  }
6320
+ /** @deprecated - consider using FormatCodeSettings instead */
6316
6321
  interface FormatCodeOptions extends EditorOptions {
6317
6322
  InsertSpaceAfterCommaDelimiter: boolean;
6318
6323
  InsertSpaceAfterSemicolonInForStatements: boolean;
@@ -6438,6 +6443,9 @@ declare namespace ts {
6438
6443
  canRename: false;
6439
6444
  localizedErrorMessage: string;
6440
6445
  }
6446
+ /**
6447
+ * @deprecated Use `UserPreferences` instead.
6448
+ */
6441
6449
  interface RenameInfoOptions {
6442
6450
  readonly allowRenameOfImportPath?: boolean;
6443
6451
  }
@@ -6980,7 +6988,7 @@ declare namespace ts.server {
6980
6988
  compressionKind: string;
6981
6989
  data: any;
6982
6990
  }
6983
- type RequireResult = {
6991
+ type ModuleImportResult = {
6984
6992
  module: {};
6985
6993
  error: undefined;
6986
6994
  } | {
@@ -6990,6 +6998,8 @@ declare namespace ts.server {
6990
6998
  message?: string;
6991
6999
  };
6992
7000
  };
7001
+ /** @deprecated Use {@link ModuleImportResult} instead. */
7002
+ type RequireResult = ModuleImportResult;
6993
7003
  interface ServerHost extends System {
6994
7004
  watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?: WatchOptions): FileWatcher;
6995
7005
  watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?: WatchOptions): FileWatcher;
@@ -6999,7 +7009,8 @@ declare namespace ts.server {
6999
7009
  clearImmediate(timeoutId: any): void;
7000
7010
  gc?(): void;
7001
7011
  trace?(s: string): void;
7002
- require?(initialPath: string, moduleName: string): RequireResult;
7012
+ require?(initialPath: string, moduleName: string): ModuleImportResult;
7013
+ importServicePlugin?(root: string, moduleName: string): Promise<ModuleImportResult>;
7003
7014
  }
7004
7015
  }
7005
7016
  declare namespace ts.server {
@@ -10449,6 +10460,8 @@ declare namespace ts.server {
10449
10460
  /** Tracks projects that we have already sent telemetry for. */
10450
10461
  private readonly seenProjects;
10451
10462
  private performanceEventHandler?;
10463
+ private pendingPluginEnablements?;
10464
+ private currentPluginEnablementPromise?;
10452
10465
  constructor(opts: ProjectServiceOptions);
10453
10466
  toPath(fileName: string): Path;
10454
10467
  private loadTypesMap;
@@ -10608,6 +10621,9 @@ declare namespace ts.server {
10608
10621
  applySafeList(proj: protocol.ExternalProject): NormalizedPath[];
10609
10622
  openExternalProject(proj: protocol.ExternalProject): void;
10610
10623
  hasDeferredExtension(): boolean;
10624
+ private enableRequestedPluginsAsync;
10625
+ private enableRequestedPluginsWorker;
10626
+ private enableRequestedPluginsForProjectAsync;
10611
10627
  configurePlugin(args: protocol.ConfigurePluginRequestArguments): void;
10612
10628
  }
10613
10629
  export {};