Add inlay hints support

This commit is contained in:
Wenlu Wang 2021-06-29 13:15:15 +08:00
parent dda62a58b7
commit f40d79d54d
5 changed files with 88 additions and 2 deletions

6
monaco.d.ts vendored
View file

@ -413,6 +413,12 @@ declare namespace monaco.languages.typescript {
errorCodes: number[],
formatOptions: any
): Promise<ReadonlyArray<any>>;
/**
* Get inlay hints in the range of the file.
* @param fileName
* @returns `Promise<typescript.InlayHint[]>`
*/
provideInlayHints(fileName: string, start: number, end: number): Promise<ReadonlyArray<any>>;
}
export const typescriptVersion: string;
export const typescriptDefaults: LanguageServiceDefaults;