mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Swap InlayHintsOptions with UserPreferences
This commit is contained in:
parent
1f5765a3bb
commit
0f64bdb69f
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ export class TypeScriptWorker implements ts.LanguageServiceHost, ITypeScriptWork
|
||||||
private _extraLibs: IExtraLibs = Object.create(null);
|
private _extraLibs: IExtraLibs = Object.create(null);
|
||||||
private _languageService = ts.createLanguageService(this);
|
private _languageService = ts.createLanguageService(this);
|
||||||
private _compilerOptions: ts.CompilerOptions;
|
private _compilerOptions: ts.CompilerOptions;
|
||||||
private _inlayHintsOptions?: ts.InlayHintsOptions;
|
private _inlayHintsOptions?: ts.UserPreferences;
|
||||||
|
|
||||||
constructor(ctx: worker.IWorkerContext, createData: ICreateData) {
|
constructor(ctx: worker.IWorkerContext, createData: ICreateData) {
|
||||||
this._ctx = ctx;
|
this._ctx = ctx;
|
||||||
|
|
@ -445,7 +445,7 @@ export class TypeScriptWorker implements ts.LanguageServiceHost, ITypeScriptWork
|
||||||
if (fileNameIsLib(fileName)) {
|
if (fileNameIsLib(fileName)) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
const preferences: ts.InlayHintsOptions = this._inlayHintsOptions ?? {};
|
const preferences: ts.UserPreferences = this._inlayHintsOptions ?? {};
|
||||||
const span: ts.TextSpan = {
|
const span: ts.TextSpan = {
|
||||||
start,
|
start,
|
||||||
length: end - start
|
length: end - start
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue