Add ts.InlayHintsOptions for nightly builds

This commit is contained in:
Andrew Branch 2022-03-02 09:44:30 -08:00
parent db5039b702
commit 36fb92be15
No known key found for this signature in database
GPG key ID: 22CCA4B120C427D2

View file

@ -13,6 +13,19 @@ import {
} from './monaco.contribution'; } from './monaco.contribution';
import { Uri, worker } from '../../fillers/monaco-editor-core'; import { Uri, worker } from '../../fillers/monaco-editor-core';
declare module './lib/typescriptServices' {
// Removed in TS 4.7 and merged into UserPreferences
export interface InlayHintsOptions extends ts.UserPreferences {
readonly includeInlayParameterNameHints?: 'none' | 'literals' | 'all';
readonly includeInlayParameterNameHintsWhenArgumentMatchesName?: boolean;
readonly includeInlayFunctionParameterTypeHints?: boolean;
readonly includeInlayVariableTypeHints?: boolean;
readonly includeInlayPropertyDeclarationTypeHints?: boolean;
readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
readonly includeInlayEnumMemberValueHints?: boolean;
}
}
/** /**
* Loading a default lib as a source file will mess up TS completely. * Loading a default lib as a source file will mess up TS completely.
* So our strategy is to hide such a text model from TS. * So our strategy is to hide such a text model from TS.