Closed worksofliam closed 12 months ago
@chrjorgensen
How do I test the WHEN tokens being recognized?
The way we can test for this is by using WHEN
, WHEN-IN
or WHEN-IS
with the indent lint rule enabled.
when I type the name of the ENUM and a dot and Ctrl-Space - but they are not in the list?
That is odd. See this screenshot below that shows the content assist after I use the dot/period trigger.
@chrjorgensen I added two tests cases for the new WHEN
operators. Thanks for getting on my case to do that!
@worksofliam I did a fresh install of VS Code, Code for IBM i and RPGLE extension in a new Windows profile. But I get this when opening a slightly modified sample of your code and pressing Ctrl-Enter after the dot:
I don't know what going on here... not like your experience at all...???
@chrjorgensen okay I see what's going on.
Control+space will only show in scope references. You will only see subfields when you press dot after the structure.
@worksofliam Finally found the setting, that prohibited the pop-up when entering the dot after the structure:
"editor.suggestOnTriggerCharacters": false,
After removal of this setting, the subfields are shown after entering the dot character.
Will review your code tomorrow.
Totally cool! Weird that it was off though.
Totally cool! Weird that it was off though.
Probably me that have turned if off at some point - annoyed by the pop-ups... 😆
@chrjorgensen Issues resolved. Over to you for approval, and if you want to.. merge 😄
@worksofliam I don't have write access and can't merge... ðŸ˜
Changes
WHEN-IS
andWHEN-IN
Checklist
console.log
s I added