Permalink
Browse files

fix autocompletion in case that there is no required property or prop…

…erty with default value
  • Loading branch information...
928PJY committed Sep 7, 2018
1 parent 87b4d62 commit 0f62274db2c132dd82e4464543af6422cac5095f
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/languageservice/services/yamlCompletion.ts
@@ -588,6 +588,9 @@ export class YAMLCompletion {
}
}
});
if (insertText.trim().length === 0) {
insertText = `${indent}\$${insertIndex++}\n`;
}
insertText = insertText.trimRight() + separatorAfter;
return { insertText, insertIndex };
}

0 comments on commit 0f62274

Please sign in to comment.