You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "rthomas320 (via GitHub)" <gi...@apache.org> on 2025/09/19 11:44:28 UTC
[PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
rthomas320 opened a new pull request, #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426
based on the dfdl cross reference document
updated the intellisense checklist to match the updated intellisense suggestions
Closes #1328
Closes #1425
Closes #[issue]
## Description
[Please include a summary of the change and which issue is fixed. Also include relevant context or motivation.]
## Wiki
- [x] I have determined that no documentation updates are needed for these changes
- [ ] I have added following documentation for these changes
[List added wiki/docs documentation here for review, if applicable]
## Review Instructions including Screenshots
[Add review instructions including screenshots or GIFs to help explain the change visually.]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "stricklandrbls (via GitHub)" <gi...@apache.org>.
stricklandrbls commented on PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#issuecomment-3436960728
@hdalsania - Thanks for that, I did not even see that chevron was there for expanding the description. I think I didn't see it because you have to hover the mouse on the menu. Previously I was only using the arrow keys.
<img width="910" height="63" alt="image" src="https://github.com/user-attachments/assets/6ed7c8b5-c8e8-4018-bcff-6fa6898aa38e" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "rthomas320 (via GitHub)" <gi...@apache.org>.
rthomas320 commented on PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#issuecomment-3415311033
The description displays for the highlighted item in the dropdown box on WIndows 11 for me. I am running VS Code 1.105.0.
<img width="1255" height="833" alt="image" src="https://github.com/user-attachments/assets/7ed0d33a-776e-464c-8f90-11ebcf6f586d" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "hdalsania (via GitHub)" <gi...@apache.org>.
hdalsania commented on PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#issuecomment-3416331564
> In the intellisense checklist, during this step: _Verify dropdown appears with above listed elements, and the first line in dropdown is highlighted with a description of the highlighted item beside it._
>
> I am not seeing a description for the menu's highlighted target. <img alt="image" width="843" height="75" src="https://private-user-images.githubusercontent.com/30351915/498965801-bbad48e4-a626-43c6-a5e1-45e1ec243428.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjA3MTk0NDEsIm5iZiI6MTc2MDcxOTE0MSwicGF0aCI6Ii8zMDM1MTkxNS80OTg5NjU4MDEtYmJhZDQ4ZTQtYTYyNi00M2M2LWE1ZTEtNDVlMWVjMjQzNDI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEwMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMDE3VDE2MzkwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzNmNlZDBmMmZlMWVhOWQ5MDI5ZjdmNDQ1NmEzZjhkNGVhOTA5MWMzZmRkMmViNGM5NDU1MGE1M2JlMDM1M2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OHuOI_Pc-IFrmLQb76uqx3a7F-42jV9uS24Z_JCE6LE">
@stricklandrbls I tested this myself on windows 11 machine, and what I have observed is that, when those suggestions show up, you need to hover over the one of the option and arrow will show up on the right hand side, when you click on that arrow, tool tip will show up with option to close it. This tool tip will be active until you click on "x" as shown below. I am not sure whether this is windows 11 specific or not.
<img width="1147" height="319" alt="image" src="https://github.com/user-attachments/assets/b47597f4-e77f-41fc-aeb2-1d359fc28eed" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "rthomas320 (via GitHub)" <gi...@apache.org>.
rthomas320 commented on code in PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#discussion_r2388803991
##########
src/language/providers/attributeCompletion.ts:
##########
@@ -393,32 +393,95 @@ function checkNearestOpenItem(
return getCompletionItems(
[
'name',
+ 'maxOccurs',
+ 'minOccurs',
+ 'nillable',
'ref',
'type',
- 'minOccurs',
- 'maxOccurs',
+ 'default',
+ 'fixed',
'dfdl:occursCount',
'dfdl:bitOrder',
'dfdl:byteOrder',
- 'dfdl:occursCountKind',
- 'dfdl:length',
- 'dfdl:lengthKind',
'dfdl:encoding',
+ 'dfdl:utf16Width',
+ 'dfdl:encodingErrorPolicy',
'dfdl:alignment',
- 'dfdl:lengthUnits',
- 'dfdl:lengthPattern',
- 'dfdl:inputValueCalc',
- 'dfdl:outputValueCalc',
'dfdl:alignmentUnits',
- 'dfdl:binaryNumberRep',
+ 'dfdl:fillbyte',
+ 'dfdl:leadingSkip',
+ 'dfdl:trailingSkip',
+ 'dfdl:initiator',
'dfdl:terminator',
+ 'dfdl:emptyValueDelimiterPolicy',
'dfdl:outputNewLine',
- 'dfdl:choiceBranchKey',
+ 'dfdl:emptyElementParsePolicy',
+ 'dfdl:lengthKind',
+ 'dfdl:lengthUnits',
+ 'dfdl:length',
'dfdl:prefixIncludesPrefixLength',
'dfdl:prefixLengthType',
+ 'dfdl:lengthPattern',
'dfdl:representation',
+ 'dfdl:textPadKind',
+ 'dfdl:textTrimKind',
+ 'dfdl:textOutputMinLength',
+ 'dfdl:escapeSchemeRef',
+ 'dfdl:textBidi',
+ 'dfdl:textStringustification',
+ 'dfdl:textStringPadChar',
+ 'dfdl:truncateSpecifiedLengthString',
+ 'dfdl:decimalSigned',
+ 'dfdl:textNumberRep',
+ 'dfdl:textNumberJustification',
+ 'dfdl:textNumberPadCharacter',
+ 'dfdl:textNumberPattern',
+ 'dfdl:textnumberRounding',
+ 'dfdl:textNumberRoundingMode',
+ 'dfdl:textNumberRoundingIncrement',
+ 'dfdl:textNumberCheckPolicy',
+ 'dfdl:textStandardDecimalSeparator',
+ 'dfdl:textStandardGroupingSeparator',
+ 'dfdl:textStandardExponentRep',
+ 'dfdl:textStandardInfinityRep',
+ 'dfdl:textStandardNaNRep',
+ 'dfdl:textStandardZeroRep',
+ 'dfdl:textStandardBase',
+ 'dfdl:textZonedSignStyle',
+ 'dfdl:binaryNumberRep',
+ 'dfdl:binaryDecimalVirtualPoint',
+ 'dfdl:binaryPakedSignCodes',
+ 'dfdl:binaryNumberCheckPolicy',
+ 'dfdl:binaryFloatRep',
+ 'dfdl:textBooleanTrueRep',
+ 'dfdl:textBooleanFalseRep',
+ 'dfdl:textBooleanJustification',
+ 'dfdl:textBooleanPadChar',
'dfdl:binaryBooleanTrueRep',
- 'dfdl:binaryBooleanFalseRep',
+ 'dfdl:binaryBoolenaFalseRep',
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "stricklandrbls (via GitHub)" <gi...@apache.org>.
stricklandrbls commented on PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#issuecomment-3411462521
@rthomas320 I verified those items you had mentioned and re-tested this and seeing the same issue where the description for the selected item in the menu does not appear:
<img width="432" height="119" alt="image" src="https://github.com/user-attachments/assets/68fb48b3-6e5e-4a62-8e1f-644443f8095f" />
Also, I noticed that if you start a new XML tag by typing `<` then select one of the inline suggestions it will prepend an additional `<`. Resulting in `<<xs....` which can also be seen in this image.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "rthomas320 (via GitHub)" <gi...@apache.org>.
rthomas320 commented on code in PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#discussion_r2454514396
##########
src/language/providers/attributeCompletion.ts:
##########
@@ -393,32 +393,95 @@ function checkNearestOpenItem(
return getCompletionItems(
[
'name',
+ 'maxOccurs',
+ 'minOccurs',
+ 'nillable',
'ref',
'type',
- 'minOccurs',
- 'maxOccurs',
Review Comment:
They were not removed, but they may have been reordered when additional items were added. Git diffs don't seem to be 100% accurate. See the 4 lines above git diff says were added.
<img width="977" height="941" alt="image" src="https://github.com/user-attachments/assets/195dd305-f961-4dc0-9331-e9cd74a28df8" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "rthomas320 (via GitHub)" <gi...@apache.org>.
rthomas320 commented on PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#issuecomment-3397873657
> In the intellisense checklist, during this step: _Verify dropdown appears with above listed elements, and the first line in dropdown is highlighted with a description of the highlighted item beside it._
>
> I am not seeing a description for the menu's highlighted target. <img alt="image" width="843" height="75" src="https://private-user-images.githubusercontent.com/30351915/498965801-bbad48e4-a626-43c6-a5e1-45e1ec243428.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjAzNjYxODcsIm5iZiI6MTc2MDM2NTg4NywicGF0aCI6Ii8zMDM1MTkxNS80OTg5NjU4MDEtYmJhZDQ4ZTQtYTYyNi00M2M2LWE1ZTEtNDVlMWVjMjQzNDI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEwMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMDEzVDE0MzEyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTExZjk1ZmVlZmI5NGJlZTkwZWUwNDgxNjU3NTIwZDU4MDMxZWIzNWIyZDIwMTgwY2YwYmQyZmZmYmYwZTcyZjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.i9Vq9_AyI6izH4UlembV81NGP1VTH45ko6xbwL5GZQg">
That's odd, it is working for me.
<img width="1768" height="1194" alt="image" src="https://github.com/user-attachments/assets/6063d0ca-9a88-4ddf-be40-de1045c9beba" />
Can you verify that the code you are working with has a mardownString for the 'default' item in attributeItems.ts?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "rthomas320 (via GitHub)" <gi...@apache.org>.
rthomas320 commented on code in PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#discussion_r2454525868
##########
src/tests/suite/language/items.test.ts:
##########
@@ -73,12 +73,16 @@ suite('Items Test Suite', () => {
const expectedAttributeItems = [
'name',
'ref',
+ 'default',
+ 'fixed',
'minOccurs',
'maxOccurs',
Review Comment:
Yes, the items must match the items and order of the items in attributeItems.ts exactly in order for the test to pass.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "stricklandrbls (via GitHub)" <gi...@apache.org>.
stricklandrbls commented on PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#issuecomment-3382292983
In the intellisense checklist, during this step:
_Verify dropdown appears with above listed elements, and the first line in dropdown is highlighted with a description of the highlighted item beside it._
I am not seeing a description for the menu's highlighted target.
<img width="843" height="75" alt="image" src="https://github.com/user-attachments/assets/bbad48e4-a626-43c6-a5e1-45e1ec243428" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "scholarsmate (via GitHub)" <gi...@apache.org>.
scholarsmate merged PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "scholarsmate (via GitHub)" <gi...@apache.org>.
scholarsmate commented on code in PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#discussion_r2382915395
##########
src/language/providers/elementCompletion.ts:
##########
@@ -288,22 +288,15 @@ function nearestOpenTagChildElements(
'',
nsPrefix
)
- case 'restriction':
- return getElementCompletionItems(
- [
- 'maxInclusive',
- 'maxExclusive',
- 'minInclusive',
- 'minExclusive',
- 'pattern',
- 'totalDigits',
- 'fractionDigits',
- 'enumeration',
- ],
- '',
- '',
- nsPrefix
- )
+ //restriction doesn't seem to have any child elements
+ // case 'restriction':
+ // return getElementCompletionItems(
+ // [
+ // ],
+ // '',
+ // '',
+ // nsPrefix
+ // )
Review Comment:
Just get rid of this.
##########
src/language/providers/attributeCompletion.ts:
##########
@@ -393,32 +393,95 @@ function checkNearestOpenItem(
return getCompletionItems(
[
'name',
+ 'maxOccurs',
+ 'minOccurs',
+ 'nillable',
'ref',
'type',
- 'minOccurs',
- 'maxOccurs',
+ 'default',
+ 'fixed',
'dfdl:occursCount',
'dfdl:bitOrder',
'dfdl:byteOrder',
- 'dfdl:occursCountKind',
- 'dfdl:length',
- 'dfdl:lengthKind',
'dfdl:encoding',
+ 'dfdl:utf16Width',
+ 'dfdl:encodingErrorPolicy',
'dfdl:alignment',
- 'dfdl:lengthUnits',
- 'dfdl:lengthPattern',
- 'dfdl:inputValueCalc',
- 'dfdl:outputValueCalc',
'dfdl:alignmentUnits',
- 'dfdl:binaryNumberRep',
+ 'dfdl:fillbyte',
+ 'dfdl:leadingSkip',
+ 'dfdl:trailingSkip',
+ 'dfdl:initiator',
'dfdl:terminator',
+ 'dfdl:emptyValueDelimiterPolicy',
'dfdl:outputNewLine',
- 'dfdl:choiceBranchKey',
+ 'dfdl:emptyElementParsePolicy',
+ 'dfdl:lengthKind',
+ 'dfdl:lengthUnits',
+ 'dfdl:length',
'dfdl:prefixIncludesPrefixLength',
'dfdl:prefixLengthType',
+ 'dfdl:lengthPattern',
'dfdl:representation',
+ 'dfdl:textPadKind',
+ 'dfdl:textTrimKind',
+ 'dfdl:textOutputMinLength',
+ 'dfdl:escapeSchemeRef',
+ 'dfdl:textBidi',
+ 'dfdl:textStringustification',
+ 'dfdl:textStringPadChar',
+ 'dfdl:truncateSpecifiedLengthString',
+ 'dfdl:decimalSigned',
+ 'dfdl:textNumberRep',
+ 'dfdl:textNumberJustification',
+ 'dfdl:textNumberPadCharacter',
+ 'dfdl:textNumberPattern',
+ 'dfdl:textnumberRounding',
+ 'dfdl:textNumberRoundingMode',
+ 'dfdl:textNumberRoundingIncrement',
+ 'dfdl:textNumberCheckPolicy',
+ 'dfdl:textStandardDecimalSeparator',
+ 'dfdl:textStandardGroupingSeparator',
+ 'dfdl:textStandardExponentRep',
+ 'dfdl:textStandardInfinityRep',
+ 'dfdl:textStandardNaNRep',
+ 'dfdl:textStandardZeroRep',
+ 'dfdl:textStandardBase',
+ 'dfdl:textZonedSignStyle',
+ 'dfdl:binaryNumberRep',
+ 'dfdl:binaryDecimalVirtualPoint',
+ 'dfdl:binaryPakedSignCodes',
+ 'dfdl:binaryNumberCheckPolicy',
+ 'dfdl:binaryFloatRep',
+ 'dfdl:textBooleanTrueRep',
+ 'dfdl:textBooleanFalseRep',
+ 'dfdl:textBooleanJustification',
+ 'dfdl:textBooleanPadChar',
'dfdl:binaryBooleanTrueRep',
- 'dfdl:binaryBooleanFalseRep',
+ 'dfdl:binaryBoolenaFalseRep',
Review Comment:
Spelling error, should be `dfdl:binaryBooleanFalseRep`, not `dfdl:binaryBoolenaFalseRep`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "rthomas320 (via GitHub)" <gi...@apache.org>.
rthomas320 commented on PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#issuecomment-3405825903
The getCompletionProvider function is a VS Code supplied function. This function returns the list of completion items. A completionItem is structured label containing label, detail, and description. In the dfdl intellisense code for attributes 'name' = 'label', 'snippetString' = 'detail', and 'markdownString' = 'description'. Was the list is provided, VS code provides the item description behind the scenes. Whether or not a markdownString exists for an item is the only thing that can be controlled in the dfdl intellisense code. If the markdownString/description exists then VS Code should display it unless some setting is preventing it from being displayed.
<img width="3292" height="1405" alt="image" src="https://github.com/user-attachments/assets/bfc86553-7172-4bbe-b409-046fef8da346" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "stricklandrbls (via GitHub)" <gi...@apache.org>.
stricklandrbls commented on PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#issuecomment-3402164380
@rthomas320 I will verify those items and test again when I get a chance.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "rthomas320 (via GitHub)" <gi...@apache.org>.
rthomas320 commented on PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#issuecomment-3414623943
Release 1.105.1 is an insiders build. I am running on 1.105.0 (the latest non-insiders build) on my Nteligen supplied laptop which has Windows 10. I have a a personal laptop with Windows 11, so I can test on that to see if I get the same results as you. Since all the code behind displaying the description info is an internal VS Code typeScript function, I wonder if you get the same result if you test with the current code from main?
The additional '<' you mention is a bug. The code has always supplied the opening '<' tag along with dfdl element item tag. It seems no one has tried that particular test before. The code in main will have the same behavior, so it wasn't introduced with the changes in this PR. A bug issue can be created to address it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "rthomas320 (via GitHub)" <gi...@apache.org>.
rthomas320 commented on code in PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#discussion_r2454514396
##########
src/language/providers/attributeCompletion.ts:
##########
@@ -393,32 +393,95 @@ function checkNearestOpenItem(
return getCompletionItems(
[
'name',
+ 'maxOccurs',
+ 'minOccurs',
+ 'nillable',
'ref',
'type',
- 'minOccurs',
- 'maxOccurs',
Review Comment:
They were not removed, but they were reordered when additional items were added.
<img width="977" height="941" alt="image" src="https://github.com/user-attachments/assets/195dd305-f961-4dc0-9331-e9cd74a28df8" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "rthomas320 (via GitHub)" <gi...@apache.org>.
rthomas320 commented on code in PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#discussion_r2454525868
##########
src/tests/suite/language/items.test.ts:
##########
@@ -73,12 +73,16 @@ suite('Items Test Suite', () => {
const expectedAttributeItems = [
'name',
'ref',
+ 'default',
+ 'fixed',
'minOccurs',
'maxOccurs',
Review Comment:
Yes, the items must match the items and order of the items in attributeItems.ts in order for the test to pass.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "scholarsmate (via GitHub)" <gi...@apache.org>.
scholarsmate commented on code in PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#discussion_r2452973571
##########
src/tests/suite/language/items.test.ts:
##########
@@ -73,12 +73,16 @@ suite('Items Test Suite', () => {
const expectedAttributeItems = [
'name',
'ref',
+ 'default',
+ 'fixed',
'minOccurs',
'maxOccurs',
Review Comment:
Should these remain?
##########
src/language/providers/attributeCompletion.ts:
##########
@@ -393,32 +393,95 @@ function checkNearestOpenItem(
return getCompletionItems(
[
'name',
+ 'maxOccurs',
+ 'minOccurs',
+ 'nillable',
'ref',
'type',
- 'minOccurs',
- 'maxOccurs',
Review Comment:
Should these have been removed?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] updated the extension's intellisense element and attribute suggestions [daffodil-vscode]
Posted by "rthomas320 (via GitHub)" <gi...@apache.org>.
rthomas320 commented on code in PR #1426:
URL: https://github.com/apache/daffodil-vscode/pull/1426#discussion_r2388804408
##########
src/language/providers/elementCompletion.ts:
##########
@@ -288,22 +288,15 @@ function nearestOpenTagChildElements(
'',
nsPrefix
)
- case 'restriction':
- return getElementCompletionItems(
- [
- 'maxInclusive',
- 'maxExclusive',
- 'minInclusive',
- 'minExclusive',
- 'pattern',
- 'totalDigits',
- 'fractionDigits',
- 'enumeration',
- ],
- '',
- '',
- nsPrefix
- )
+ //restriction doesn't seem to have any child elements
+ // case 'restriction':
+ // return getElementCompletionItems(
+ // [
+ // ],
+ // '',
+ // '',
+ // nsPrefix
+ // )
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org