mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fix the "Failed to show notebook document" errors (#4649)
This commit is contained in:
@@ -109,7 +109,7 @@ export class ExtHostNotebookDocumentsAndEditors implements ExtHostNotebookDocume
|
|||||||
this._mainContext.getProxy(SqlMainContext.MainThreadNotebookDocumentsAndEditors),
|
this._mainContext.getProxy(SqlMainContext.MainThreadNotebookDocumentsAndEditors),
|
||||||
data.id,
|
data.id,
|
||||||
documentData,
|
documentData,
|
||||||
typeConverters.ViewColumn.to(data.editorPosition)
|
typeof data.editorPosition === 'number' ? typeConverters.ViewColumn.to(data.editorPosition) : undefined
|
||||||
);
|
);
|
||||||
this._editors.set(data.id, editor);
|
this._editors.set(data.id, editor);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -840,7 +840,7 @@ export interface INotebookModelChangedData {
|
|||||||
export interface INotebookEditorAddData {
|
export interface INotebookEditorAddData {
|
||||||
id: string;
|
id: string;
|
||||||
documentUri: UriComponents;
|
documentUri: UriComponents;
|
||||||
editorPosition: EditorViewColumn;
|
editorPosition: EditorViewColumn | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface INotebookShowOptions {
|
export interface INotebookShowOptions {
|
||||||
|
|||||||
Reference in New Issue
Block a user