typescript 5.1.0-dev.20230420 → 5.1.0-dev.20230421

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.
@@ -3254,7 +3254,7 @@ declare namespace ts {
3254
3254
  private readonly cancellationToken;
3255
3255
  isNonTsProject(): boolean;
3256
3256
  isJsOnlyProject(): boolean;
3257
- static resolveModule(moduleName: string, initialDir: string, host: ServerHost, log: (message: string) => void, logErrors?: (message: string) => void): {} | undefined;
3257
+ static resolveModule(moduleName: string, initialDir: string, host: ServerHost, log: (message: string) => void): {} | undefined;
3258
3258
  isKnownTypesPackageName(name: string): boolean;
3259
3259
  installPackage(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>;
3260
3260
  private get typingsCache();
@@ -3341,9 +3341,8 @@ declare namespace ts {
3341
3341
  setTypeAcquisition(newTypeAcquisition: TypeAcquisition | undefined): void;
3342
3342
  getTypeAcquisition(): ts.TypeAcquisition;
3343
3343
  protected removeRoot(info: ScriptInfo): void;
3344
- protected enableGlobalPlugins(options: CompilerOptions, pluginConfigOverrides: Map<string, any> | undefined): void;
3345
- protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[], pluginConfigOverrides: Map<string, any> | undefined): void;
3346
- private enableProxy;
3344
+ protected enableGlobalPlugins(options: CompilerOptions): void;
3345
+ protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[]): void;
3347
3346
  /** Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. */
3348
3347
  refreshDiagnostics(): void;
3349
3348
  }
@@ -3644,7 +3643,6 @@ declare namespace ts {
3644
3643
  readonly globalPlugins: readonly string[];
3645
3644
  readonly pluginProbeLocations: readonly string[];
3646
3645
  readonly allowLocalPluginLoads: boolean;
3647
- private currentPluginConfigOverrides;
3648
3646
  readonly typesMapLocation: string | undefined;
3649
3647
  readonly serverMode: LanguageServiceMode;
3650
3648
  /** Tracks projects that we have already sent telemetry for. */
@@ -9247,7 +9245,7 @@ declare namespace ts {
9247
9245
  * this list is only the set of defaults that are implicitly included.
9248
9246
  */
9249
9247
  function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[];
9250
- function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache;
9248
+ function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): ModuleResolutionCache;
9251
9249
  function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache;
9252
9250
  function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined;
9253
9251
  function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations;
@@ -10097,6 +10095,8 @@ declare namespace ts {
10097
10095
  getRenameInfo(fileName: string, position: number, preferences: UserPreferences): RenameInfo;
10098
10096
  /** @deprecated Use the signature with `UserPreferences` instead. */
10099
10097
  getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo;
10098
+ findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, preferences: UserPreferences): readonly RenameLocation[] | undefined;
10099
+ /** @deprecated Pass `providePrefixAndSuffixTextForRename` as part of a `UserPreferences` parameter. */
10100
10100
  findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): readonly RenameLocation[] | undefined;
10101
10101
  getSmartSelectionRange(fileName: string, position: number): SelectionRange;
10102
10102
  getDefinitionAtPosition(fileName: string, position: number): readonly DefinitionInfo[] | undefined;