Fix --noImplicitOverride problems (#120675)

This commit is contained in:
Alexandru Dima 2021-04-22 14:50:20 +02:00
parent 6a78187837
commit 166efae366
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
5 changed files with 13 additions and 12 deletions

View file

@ -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;):
}

View file

@ -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 {

View file

@ -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[];

View file

@ -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
View file

@ -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;