mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
createModelReference(...)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user