Fix --noImplicitOverride
problems (#120675)
This commit is contained in:
parent
6a78187837
commit
166efae366
|
@ -91,6 +91,7 @@ declare namespace monaco.languages {
|
|||
|
||||
declare namespace monaco.worker {
|
||||
|
||||
#include(vs/editor/common/model/mirrorTextModel): IMirrorTextModel
|
||||
#includeAll(vs/editor/common/services/editorSimpleWorker;):
|
||||
|
||||
}
|
||||
|
|
|
@ -11,7 +11,6 @@ import { ICodeEditor } from 'vs/editor/browser/editorBrowser';
|
|||
import { AbstractCodeEditorService } from 'vs/editor/browser/services/abstractCodeEditorService';
|
||||
import { IContentDecorationRenderOptions, IDecorationRenderOptions, IThemeDecorationRenderOptions, isThemeColor } from 'vs/editor/common/editorCommon';
|
||||
import { IModelDecorationOptions, IModelDecorationOverviewRulerOptions, OverviewRulerLane, TrackedRangeStickiness } from 'vs/editor/common/model';
|
||||
import { IResourceEditorInput } from 'vs/platform/editor/common/editor';
|
||||
import { IColorTheme, IThemeService, ThemeColor } from 'vs/platform/theme/common/themeService';
|
||||
|
||||
export class RefCountedStyleSheet {
|
||||
|
@ -172,9 +171,6 @@ export abstract class CodeEditorServiceImpl extends AbstractCodeEditorService {
|
|||
}
|
||||
return provider.resolveDecorationCSSRules();
|
||||
}
|
||||
|
||||
abstract getActiveCodeEditor(): ICodeEditor | null;
|
||||
abstract openCodeEditor(input: IResourceEditorInput, source: ICodeEditor | null, sideBySide?: boolean): Promise<ICodeEditor | null>;
|
||||
}
|
||||
|
||||
interface IModelDecorationOptionsProvider extends IDisposable {
|
||||
|
|
|
@ -25,7 +25,11 @@ export interface IModelChangedEvent {
|
|||
readonly versionId: number;
|
||||
}
|
||||
|
||||
export class MirrorTextModel {
|
||||
export interface IMirrorTextModel {
|
||||
readonly version: number;
|
||||
}
|
||||
|
||||
export class MirrorTextModel implements IMirrorTextModel {
|
||||
|
||||
protected _uri: URI;
|
||||
protected _lines: string[];
|
||||
|
|
|
@ -13,7 +13,7 @@ import { IRange, Range } from 'vs/editor/common/core/range';
|
|||
import { DiffComputer } from 'vs/editor/common/diff/diffComputer';
|
||||
import { IChange } from 'vs/editor/common/editorCommon';
|
||||
import { EndOfLineSequence, IWordAtPosition } from 'vs/editor/common/model';
|
||||
import { IModelChangedEvent, MirrorTextModel as BaseMirrorModel } from 'vs/editor/common/model/mirrorTextModel';
|
||||
import { IMirrorTextModel, IModelChangedEvent, MirrorTextModel as BaseMirrorModel } from 'vs/editor/common/model/mirrorTextModel';
|
||||
import { ensureValidWordDefinition, getWordAtText } from 'vs/editor/common/model/wordHelper';
|
||||
import { IInplaceReplaceSupportResult, ILink, TextEdit } from 'vs/editor/common/modes';
|
||||
import { ILinkComputerTarget, computeLinks } from 'vs/editor/common/modes/linkComputer';
|
||||
|
@ -24,7 +24,7 @@ import * as types from 'vs/base/common/types';
|
|||
import { EditorWorkerHost } from 'vs/editor/common/services/editorWorkerServiceImpl';
|
||||
import { StopWatch } from 'vs/base/common/stopwatch';
|
||||
|
||||
export interface IMirrorModel {
|
||||
export interface IMirrorModel extends IMirrorTextModel {
|
||||
readonly uri: URI;
|
||||
readonly version: number;
|
||||
getValue(): string;
|
||||
|
@ -96,10 +96,6 @@ class MirrorModel extends BaseMirrorModel implements ICommonModel {
|
|||
return this._uri;
|
||||
}
|
||||
|
||||
public get version(): number {
|
||||
return this._versionId;
|
||||
}
|
||||
|
||||
public get eol(): string {
|
||||
return this._eol;
|
||||
}
|
||||
|
|
6
src/vs/monaco.d.ts
vendored
6
src/vs/monaco.d.ts
vendored
|
@ -6655,7 +6655,11 @@ declare namespace monaco.languages {
|
|||
declare namespace monaco.worker {
|
||||
|
||||
|
||||
export interface IMirrorModel {
|
||||
export interface IMirrorTextModel {
|
||||
readonly version: number;
|
||||
}
|
||||
|
||||
export interface IMirrorModel extends IMirrorTextModel {
|
||||
readonly uri: Uri;
|
||||
readonly version: number;
|
||||
getValue(): string;
|
||||
|
|
Loading…
Reference in a new issue