mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
Extract more code to textSource.ts
This commit is contained in:
@@ -20,6 +20,7 @@ import * as vscode from 'vscode';
|
||||
import { asWinJsPromise } from 'vs/base/common/async';
|
||||
import { getWordAtText, ensureValidWordDefinition } from 'vs/editor/common/model/wordHelper';
|
||||
import { MainContext, MainThreadDocumentsShape, ExtHostDocumentsShape, IModelAddedData } from './extHost.protocol';
|
||||
import { ITextSource } from 'vs/editor/common/model/textSource';
|
||||
|
||||
const _modeId2WordDefinition = new Map<string, RegExp>();
|
||||
|
||||
@@ -263,7 +264,7 @@ export class ExtHostDocumentData extends MirrorModel2 {
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
equalLines({lines}: editorCommon.ITextSource): boolean {
|
||||
equalLines({lines}: ITextSource): boolean {
|
||||
const len = lines.length;
|
||||
if (len !== this._lines.length) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user