mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
re #105735. selections as NotebookEditor properties.
This commit is contained in:
@@ -1315,15 +1315,6 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN
|
||||
visibleRanges: editor.editor.visibleRanges
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$acceptDocumentPropertiesChanged(uriComponents: UriComponents, data: INotebookDocumentPropertiesChangeData): void {
|
||||
this.logService.debug('ExtHostNotebook#$acceptDocumentPropertiesChanged', uriComponents.path, data);
|
||||
const editor = this._getEditorFromURI(uriComponents);
|
||||
|
||||
if (!editor) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (data.selections) {
|
||||
if (data.selections.selections.length) {
|
||||
@@ -1338,7 +1329,15 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN
|
||||
selection: editor.editor.selection
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$acceptDocumentPropertiesChanged(uriComponents: UriComponents, data: INotebookDocumentPropertiesChangeData): void {
|
||||
this.logService.debug('ExtHostNotebook#$acceptDocumentPropertiesChanged', uriComponents.path, data);
|
||||
const editor = this._getEditorFromURI(uriComponents);
|
||||
|
||||
if (!editor) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (data.metadata) {
|
||||
editor.editor.notebookData.notebookDocument.metadata = {
|
||||
|
||||
Reference in New Issue
Block a user