[js] Cannot read property 'then' of undefined #664

This commit is contained in:
Martin Aeschlimann 2015-11-27 15:07:24 +01:00
parent 0a642440ef
commit c48da2e131

View file

@ -48,7 +48,7 @@ export class QuickFixMainActions {
var dtsFileResource = this._contextService.toResource(dtsFile);
var jsConfigResource = this._contextService.toResource('jsconfig.json');
if (!dtsFileResource || !jsConfigResource) {
return;
return winjs.Promise.as(null);
}
var resourcePath = this._contextService.toWorkspaceRelativePath(resource);