Skip to content

Commit

Permalink
Add ts.InlayHintsOptions for nightly builds
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbranch committed Mar 2, 2022
1 parent db5039b commit 36fb92b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/language/typescript/tsWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ import {
} from './monaco.contribution';
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.
* So our strategy is to hide such a text model from TS.
Expand Down

0 comments on commit 36fb92b

Please sign in to comment.