mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
slightly better uri for untitled notebooks, https://github.com/microsoft/vscode/issues/121974
This commit is contained in:
@@ -254,7 +254,7 @@ export class ExtHostNotebookController implements ExtHostNotebookShape {
|
||||
return new NotebookEditorDecorationType(this._notebookEditorsProxy, options).value;
|
||||
}
|
||||
|
||||
async createNotebookDocument(options: { viewType?: string, content?: vscode.NotebookData } = {}): Promise<URI> {
|
||||
async createNotebookDocument(options: { viewType: string, content?: vscode.NotebookData }): Promise<URI> {
|
||||
const canonicalUri = await this._notebookDocumentsProxy.$tryCreateNotebook({
|
||||
viewType: options.viewType,
|
||||
content: options.content && typeConverters.NotebookData.from(options.content)
|
||||
|
||||
Reference in New Issue
Block a user