declare cancellation support for openNotebook and wire it up, exempt notebook content provider from provider naming rules

This commit is contained in:
Johannes Rieken
2021-03-09 12:40:37 +01:00
parent 0e04c15de4
commit 98a22a957a
8 changed files with 26 additions and 24 deletions

View File

@@ -403,8 +403,8 @@ export class MainThreadNotebooks implements MainThreadNotebookShape {
contentOptions.transientOutputs = newOptions.transientOutputs;
},
viewOptions: options.viewOptions,
openNotebook: async (viewType: string, uri: URI, backupId?: string) => {
const data = await this._proxy.$openNotebook(viewType, uri, backupId);
openNotebook: async (viewType: string, uri: URI, backupId: string | undefined, token: CancellationToken) => {
const data = await this._proxy.$openNotebook(viewType, uri, backupId, token);
return {
data,
transientOptions: contentOptions