未验证 提交 f7e5a670 编写于 作者: R rebornix

NotebookDocumentShowOptions#selections.

上级 9a00c870
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册