Removes selection from TextEditor debug description.

This commit is contained in:
Henning Dieterichs
2024-07-05 12:45:07 +02:00
committed by Henning Dieterichs
parent 2f29f3931c
commit 4f99e9503b

View File

@@ -11,7 +11,7 @@ import { IRange } from 'vs/editor/common/core/range';
import { ISingleEditOperation } from 'vs/editor/common/core/editOperation';
import { IResolvedTextEditorConfiguration, ITextEditorConfigurationUpdate, MainThreadTextEditorsShape } from 'vs/workbench/api/common/extHost.protocol';
import * as TypeConverters from 'vs/workbench/api/common/extHostTypeConverters';
import { EndOfLine, getDebugDescriptionOfSelection, Position, Range, Selection, SnippetString, TextEditorLineNumbersStyle, TextEditorRevealType } from 'vs/workbench/api/common/extHostTypes';
import { EndOfLine, Position, Range, Selection, SnippetString, TextEditorLineNumbersStyle, TextEditorRevealType } from 'vs/workbench/api/common/extHostTypes';
import type * as vscode from 'vscode';
import { ILogService } from 'vs/platform/log/common/log';
import { Lazy } from 'vs/base/common/lazy';
@@ -568,7 +568,7 @@ export class ExtHostTextEditor {
_proxy.$tryHideEditor(id);
},
[Symbol.for('debug.description')]() {
return `TextEditor(${this.document.uri.toString()}, ${this.selections.map(s => getDebugDescriptionOfSelection(s)).join(', ')})`;
return `TextEditor(${this.document.uri.toString()})`;
}
});
}