createModelReference(...)

This commit is contained in:
Joao Moreno
2016-11-21 16:00:06 +01:00
parent 0b6675494e
commit 3eddc66357
13 changed files with 15 additions and 15 deletions

View File

@@ -187,7 +187,7 @@ export class MainThreadDocuments extends MainThreadDocumentsShape {
}
private _handleAsResourceInput(uri: URI): TPromise<boolean> {
return this._textModelResolverService.getModelReference(uri).then(ref => {
return this._textModelResolverService.createModelReference(uri).then(ref => {
const result = !!ref.object;
ref.dispose();