Merge branch 'master' into scm-api

This commit is contained in:
Joao Moreno
2016-11-25 10:20:11 +01:00
20 changed files with 427 additions and 295 deletions

View File

@@ -189,7 +189,9 @@ export class MainThreadDocuments extends MainThreadDocumentsShape {
private _handleAsResourceInput(uri: URI): TPromise<boolean> {
return this._textModelResolverService.createModelReference(uri).then(ref => {
const result = !!ref.object;
ref.dispose();
// TODO@Joao TODO@Joh when should this model reference be disposed?
// ref.dispose();
return result;
});