From 7f76188bebe2d582087993ef17a646828816a4ef Mon Sep 17 00:00:00 2001 From: Pine Wu Date: Fri, 31 Jul 2020 19:23:56 +0800 Subject: [PATCH] Add tests and credits --- CHANGELOG.md | 1 + test/lsp/features/completion/template.test.ts | 25 +++++++++++++------ .../template/childComponent/Child.vue | 2 +- .../template/childComponent/Child1775.vue | 10 ++++++++ .../template/childComponent/Parent1775.vue | 13 ++++++++++ 5 files changed, 42 insertions(+), 9 deletions(-) create mode 100644 test/lsp/fixture/completion/template/childComponent/Child1775.vue create mode 100644 test/lsp/fixture/completion/template/childComponent/Parent1775.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index 38f0860455..fbb1991958 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Load different `eslint-plugin-vue` rulesets depending on workspace vue version. #2015. - Remove leading empty line in diagnostic errors. #2067. - `"vetur.completion.tagCasing": "initial"` causes double tag completion. #2053 +- 🙌 Fix no props completion when child component `export default {}` ends with `;`. Thanks to contribution from [@yoyo930021](@yoyo930021). #1775 and #1791. - 🙌 Fix object property completion when have hyphen. Thanks to contribution from [@yoyo930021](@yoyo930021). #1804 and #1808. - 🙌 SFC without a script tag show an error when trying to import. Thanks to contribution from [@yoyo930021](@yoyo930021). #1187 and #1806. - 🙌 Fix initializationOptions: Cannot read property 'config' of undefined. Thanks to contribution from [Dawid Pakuła](https://github.com/zulus). #1897 and #1341. diff --git a/test/lsp/features/completion/template.test.ts b/test/lsp/features/completion/template.test.ts index 82f44f39aa..c091813fab 100644 --- a/test/lsp/features/completion/template.test.ts +++ b/test/lsp/features/completion/template.test.ts @@ -3,15 +3,9 @@ import { getDocUri, position } from '../../util'; import { testCompletion } from './helper'; describe('Should autocomplete for