mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
This commit is contained in:
@@ -75,8 +75,6 @@ export abstract class EditModeStrategy {
|
||||
abstract renderChanges(response: ReplyResponse): Promise<Position | undefined>;
|
||||
|
||||
abstract hasFocus(): boolean;
|
||||
|
||||
abstract needsMargin(): boolean;
|
||||
}
|
||||
|
||||
export class PreviewStrategy extends EditModeStrategy {
|
||||
@@ -165,10 +163,6 @@ export class PreviewStrategy extends EditModeStrategy {
|
||||
hasFocus(): boolean {
|
||||
return this._zone.widget.hasFocus();
|
||||
}
|
||||
|
||||
needsMargin(): boolean {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -307,11 +301,6 @@ export class LivePreviewStrategy extends EditModeStrategy {
|
||||
this._zone.widget.updateStatus(message);
|
||||
}
|
||||
|
||||
override needsMargin(): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
private async _updateDiffZones() {
|
||||
const diff = await this._editorWorkerService.computeDiff(this._session.textModel0.uri, this._session.textModelN.uri, { ignoreTrimWhitespace: false, maxComputationTimeMs: 5000, computeMoves: false }, 'advanced');
|
||||
if (!diff || diff.changes.length === 0) {
|
||||
@@ -901,10 +890,6 @@ export class LiveStrategy extends EditModeStrategy {
|
||||
this._zone.widget.updateStatus(message);
|
||||
}
|
||||
|
||||
override needsMargin(): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
hasFocus(): boolean {
|
||||
return this._zone.widget.hasFocus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user