mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-19 14:49:48 +01:00
NotebookDocumentShowOptions#selections.
This commit is contained in:
Vendored
+1
-1
@@ -1299,7 +1299,7 @@ declare module 'vscode' {
|
||||
viewColumn?: ViewColumn;
|
||||
preserveFocus?: boolean;
|
||||
preview?: boolean;
|
||||
selection?: NotebookCellRange;
|
||||
selections?: NotebookCellRange[];
|
||||
}
|
||||
|
||||
export namespace notebook {
|
||||
|
||||
@@ -130,7 +130,7 @@ export class MainThreadNotebookEditors implements MainThreadNotebookEditorsShape
|
||||
|
||||
async $tryShowNotebookDocument(resource: UriComponents, viewType: string, options: INotebookDocumentShowOptions): Promise<string> {
|
||||
const editorOptions = new NotebookEditorOptions({
|
||||
cellSelections: options.selection && [options.selection],
|
||||
cellSelections: options.selections,
|
||||
preserveFocus: options.preserveFocus,
|
||||
pinned: options.pinned,
|
||||
// selection: options.selection,
|
||||
|
||||
@@ -861,7 +861,7 @@ export interface INotebookDocumentShowOptions {
|
||||
position?: EditorGroupColumn;
|
||||
preserveFocus?: boolean;
|
||||
pinned?: boolean;
|
||||
selection?: ICellRange;
|
||||
selections?: ICellRange[];
|
||||
}
|
||||
|
||||
export type INotebookCellStatusBarEntryDto = Dto<INotebookCellStatusBarEntry>;
|
||||
|
||||
@@ -416,7 +416,7 @@ export class ExtHostNotebookController implements ExtHostNotebookShape {
|
||||
resolvedOptions = {
|
||||
position: typeConverters.ViewColumn.from(options.viewColumn),
|
||||
preserveFocus: options.preserveFocus,
|
||||
selection: options.selection && typeConverters.NotebookCellRange.from(options.selection),
|
||||
selections: options.selections && options.selections.map(typeConverters.NotebookCellRange.from),
|
||||
pinned: typeof options.preview === 'boolean' ? !options.preview : undefined
|
||||
};
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user