Skip to content

Commit

Permalink
fix: doComplete result may be undefined (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk authored Feb 22, 2021
1 parent a44b492 commit 86f6867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emmetHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface VSCodeEmmetConfig {
* @param syntax Emmet supported language
* @param emmetConfig Emmet Configurations as derived from VS Code
*/
export function doComplete(document: TextDocument, position: Position, syntax: string, emmetConfig: VSCodeEmmetConfig): CompletionList {
export function doComplete(document: TextDocument, position: Position, syntax: string, emmetConfig: VSCodeEmmetConfig): CompletionList | undefined {
if (emmetConfig.showExpandedAbbreviation === 'never' || !getEmmetMode(syntax, emmetConfig.excludeLanguages)) {
return;
}
Expand Down

0 comments on commit 86f6867

Please # to comment.