This is an automated email from the ASF dual-hosted git repository.
shanedell pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-vscode.git
The following commit(s) were added to refs/heads/main by this push:
new 3f9d860 Fix the spelling of initiated (currently intiated)
3f9d860 is described below
commit 3f9d860498065d59da5188e62c50fc3d2df976bf
Author: Davin Shearer <[email protected]>
AuthorDate: Thu Oct 6 11:27:25 2022 -0400
Fix the spelling of initiated (currently intiated)
fixes #318
---
src/language/providers/attributeCompletion.ts | 2 +-
src/language/providers/intellisense/attributeItems.ts | 4 ++--
src/tests/suite/language/items.test.ts | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/language/providers/attributeCompletion.ts
b/src/language/providers/attributeCompletion.ts
index bc4561d..37c7b1b 100644
--- a/src/language/providers/attributeCompletion.ts
+++ b/src/language/providers/attributeCompletion.ts
@@ -158,7 +158,7 @@ export function getAttributeCompletionProvider() {
[
'dfdl:choiceLengthKind=',
'dfdl:choiceLength=',
- 'dfdl:intiatedContent=',
+ 'dfdl:initiatedContent=',
'dfdl:choiceDispatchKey=',
'dfdl:choiceBranchKey=',
],
diff --git a/src/language/providers/intellisense/attributeItems.ts
b/src/language/providers/intellisense/attributeItems.ts
index 442ac2c..fa74a88 100644
--- a/src/language/providers/intellisense/attributeItems.ts
+++ b/src/language/providers/intellisense/attributeItems.ts
@@ -149,8 +149,8 @@ export const attributeCompletion = (additionalItems,
nsPrefix: string) => {
markdownString: 'Only used when dfdl:choiceLengthKind is explicit',
},
{
- item: 'dfdl:intiatedContent=',
- snippetString: 'dfdl:intiatedContent="${1|yes,no}"$0',
+ item: 'dfdl:initiatedContent=',
+ snippetString: 'dfdl:initiatedContent="${1|yes,no}"$0',
markdownString: 'yes indicates all branches of a choice are
initiated\no indicates the branch dfdl:initator property may be ste to empty
string',
},
{
diff --git a/src/tests/suite/language/items.test.ts
b/src/tests/suite/language/items.test.ts
index 848aaac..8310ba5 100644
--- a/src/tests/suite/language/items.test.ts
+++ b/src/tests/suite/language/items.test.ts
@@ -72,14 +72,14 @@ suite('Items Test Suite', () => {
'dfdl:separatorSuppressionPolicy',
'dfdl:choiceLengthKind=',
'dfdl:choiceLength=',
- 'dfdl:intiatedContent=',
+ 'dfdl:initiatedContent=',
'dfdl:choiceDispatchKey=',
'dfdl:simpleType',
'xs:restriction',
]
test('all commonItems available', async () => {
- var itemNames: string[] = []
+ let itemNames: string[] = []
commonCompletion('', 'xs:').items.forEach((r) => itemNames.push(r.item))
assert.strictEqual(itemNames.includes('type='), true)
})