TextEditorDiffInformation API proposal (#233896)

* WIP - initial implementation

* Introduce the diff model service

* Remove code that is not needed

* Handle DiffEditor

* Performance optimization

* Refactor code

* More cleanup (V1)

* More cleanup (V2)

* More cleanup (V2.1)

* Pull request feedback

* Remove debugging statements

* Update mock proxy to fix tests

* Add proposed api check
This commit is contained in:
Ladislau Szomoru
2024-11-18 15:38:21 +01:00
committed by GitHub
parent 853676dc2c
commit 30043071a3
14 changed files with 338 additions and 9 deletions

View File

@@ -723,6 +723,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
onDidChangeTextEditorViewColumn(listener, thisArg?, disposables?) {
return _asExtensionEvent(extHostEditors.onDidChangeTextEditorViewColumn)(listener, thisArg, disposables);
},
onDidChangeTextEditorDiffInformation(listener, thisArg?, disposables?) {
checkProposedApiEnabled(extension, 'textEditorDiffInformation');
return _asExtensionEvent(extHostEditors.onDidChangeTextEditorDiffInformation)(listener, thisArg, disposables);
},
onDidCloseTerminal(listener, thisArg?, disposables?) {
return _asExtensionEvent(extHostTerminalService.onDidCloseTerminal)(listener, thisArg, disposables);
},
@@ -1661,6 +1665,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
TextEdit: extHostTypes.TextEdit,
SnippetTextEdit: extHostTypes.SnippetTextEdit,
TextEditorCursorStyle: TextEditorCursorStyle,
TextEditorDiffKind: extHostTypes.TextEditorDiffKind,
TextEditorLineNumbersStyle: extHostTypes.TextEditorLineNumbersStyle,
TextEditorRevealType: extHostTypes.TextEditorRevealType,
TextEditorSelectionChangeKind: extHostTypes.TextEditorSelectionChangeKind,