This commit is contained in:
Matt Bierner 2017-02-21 18:22:32 -08:00
parent 9421cfda91
commit 3eb0cc5348

View file

@ -110,13 +110,13 @@ export default class JsDocCompletionHelper implements CompletionItemProvider {
return this.prepForDocCompletion(editor, position)
.then((start: Position) => {
return this.tryInsertJsDocFromTemplate(editor, file, start);
})
.then((didInsertFromTemplate: boolean) => {
if (didInsertFromTemplate) {
return true;
}
return this.tryInsertDefaultDoc(editor, position);
return this.tryInsertJsDocFromTemplate(editor, file, start)
.then((didInsertFromTemplate: boolean) => {
if (didInsertFromTemplate) {
return true;
}
return this.tryInsertDefaultDoc(editor, start);
});
});
}