mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
workbench editor model: getResource => resource
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user