remove viewType from openNotebookDocument call

This commit is contained in:
Johannes Rieken
2021-03-10 14:30:33 +01:00
parent da562fa27c
commit a6d7d86e85
5 changed files with 11 additions and 13 deletions

View File

@@ -582,11 +582,10 @@ export class MainThreadNotebooks implements MainThreadNotebookShape {
}
async $tryOpenDocument(uriComponents: UriComponents, viewType?: string): Promise<URI> {
async $tryOpenDocument(uriComponents: UriComponents): Promise<URI> {
const uri = URI.revive(uriComponents);
const ref = await this._notebookModelResolverService.resolve(uri, viewType);
const ref = await this._notebookModelResolverService.resolve(uri, undefined);
this._modelReferenceCollection.add(uri, ref);
return uri;
}