slightly better uri for untitled notebooks, https://github.com/microsoft/vscode/issues/121974

This commit is contained in:
Johannes Rieken
2021-05-19 18:43:56 +02:00
parent 52c8fced38
commit 9716c27e06
3 changed files with 4 additions and 4 deletions

View File

@@ -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)