workbench editor model: getResource => resource

This commit is contained in:
Benjamin Pasero
2019-11-12 17:04:49 +01:00
parent dc315fcb0f
commit da5f408834
16 changed files with 88 additions and 104 deletions

View File

@@ -233,7 +233,7 @@ export class MainThreadDocuments implements MainThreadDocumentsShape {
initialValue,
useResourcePath: Boolean(resource && resource.path)
}).then(model => {
const resource = model.getResource();
const resource = model.resource;
if (!this._modelIsSynced.has(resource.toString())) {
throw new Error(`expected URI ${resource.toString()} to have come to LIFE`);