codefori / vscode-rpgle

RPGLE language tools for VS Code
MIT License
39 stars 20 forks source link

Feature/rpgle_2023_oct #265

Closed worksofliam closed 12 months ago

worksofliam commented 1 year ago

Changes

Checklist

worksofliam commented 1 year 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.

image
worksofliam commented 1 year ago

@chrjorgensen I added two tests cases for the new WHEN operators. Thanks for getting on my case to do that!

chrjorgensen commented 1 year ago

@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:

Screenshot 2023-10-17 222429

I don't know what going on here... not like your experience at all...???

worksofliam commented 1 year ago

@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.

chrjorgensen commented 12 months ago

@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.

worksofliam commented 12 months ago

Totally cool! Weird that it was off though.

chrjorgensen commented 12 months ago

Totally cool! Weird that it was off though.

Probably me that have turned if off at some point - annoyed by the pop-ups... 😆

worksofliam commented 12 months ago

@chrjorgensen Issues resolved. Over to you for approval, and if you want to.. merge 😄

chrjorgensen commented 12 months ago

@worksofliam I don't have write access and can't merge... 😭

image