Skip to content

Commit

Permalink
Update api.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Mar 23, 2022
1 parent 14e9add commit 0ddc126
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/cspell-lib/api/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ declare type CSpellSettingsWSTO = OptionalOrUndefined<CSpellSettingsWithSourceTr
declare type CSpellSettingsI = CSpellSettingsInternal;
declare const currentSettingsFileVersion = "0.2";
declare const ENV_CSPELL_GLOB_ROOT = "CSPELL_GLOB_ROOT";
declare function mergeSettings(left: CSpellSettingsWSTO | CSpellSettingsI, ...settings: (CSpellSettingsWSTO | CSpellSettingsI)[]): CSpellSettingsI;
declare function mergeSettings(left: CSpellSettingsWSTO | CSpellSettingsI, ...settings: (CSpellSettingsWSTO | CSpellSettingsI | undefined)[]): CSpellSettingsI;
declare function mergeInDocSettings(left: CSpellSettingsWSTO, right: CSpellSettingsWSTO): CSpellSettingsWST;
declare function calcOverrideSettings(settings: CSpellSettingsWSTO, filename: string): CSpellSettingsI;
/**
Expand Down Expand Up @@ -580,6 +580,7 @@ declare class DocumentValidator {
private _prepared;
private _preparations;
private _preparationTime;
private _suggestions;
/**
* @param doc - Document to validate
* @param config - configuration to use (not finalized).
Expand All @@ -589,15 +590,19 @@ declare class DocumentValidator {
prepareSync(): void;
prepare(): Promise<void>;
private _prepareAsync;
private _updatePrep;
/**
* The amount of time in ms to prepare for validation.
*/
get prepTime(): number;
checkText(range: SimpleRange, _text: string, _scope: string[]): ValidationIssue[];
get document(): TextDocument;
updateDocumentText(text: string): void;
private addPossibleError;
private catchError;
private errorCatcherWrapper;
private suggest;
private genSuggestions;
}
declare type Offset = number;
declare type SimpleRange = readonly [Offset, Offset];
Expand Down

0 comments on commit 0ddc126

Please sign in to comment.