mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 01:37:20 +00:00
Fixes #21036
This commit is contained in:
parent
9421cfda91
commit
3eb0cc5348
1 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue