Code navigation in basic project and rba extensions
Posted: Wed Nov 22, 2023 9:06 pm
I am trying to get code navigation going. Our code base primarily use VMS Basic. Presently it fails to find the defintion of most symbols or their references.
It's split between .rba and .bas files - where rba files are basic files that are preprocessed by RDBPRE
I've set the rba files as VMS-BASIC files - they are syntax highlighted accordingly.
As a starting point, while i investigate this more, do i have to do anything else to have to have vs code parse my basic files for symbols definition and references ? e.g
https://code.visualstudio.com/docs/lang ... a-language
Does the terminology "reparse a basic project" indicate i have to do anything to set it as a basic project ? Current project type is just "executable"
I've started to look through the code https://github.com/vmssoftware/vms-ide/ ... on.ts#L121, and https://github.com/vmssoftware/vms-ide/ ... ation.json but i haven't looked at vs code's language server functionality before so i thought i would post an initial check here as to whether rba files should be being parsed.
On enacting the "Reparse basic project" command, I dont' see a list of files being parsed output in the Developer Tools. I see "Found workspace for scope ..... " and other logging but nothing else obviously of interest
A lot of our references are link time via EXTERN keywords - but it doesn't presently seem to pick up either included functions, or link time resolved functions.
It's split between .rba and .bas files - where rba files are basic files that are preprocessed by RDBPRE
I've set the rba files as VMS-BASIC files - they are syntax highlighted accordingly.
As a starting point, while i investigate this more, do i have to do anything else to have to have vs code parse my basic files for symbols definition and references ? e.g
https://code.visualstudio.com/docs/lang ... a-language
Does the terminology "reparse a basic project" indicate i have to do anything to set it as a basic project ? Current project type is just "executable"
I've started to look through the code https://github.com/vmssoftware/vms-ide/ ... on.ts#L121, and https://github.com/vmssoftware/vms-ide/ ... ation.json but i haven't looked at vs code's language server functionality before so i thought i would post an initial check here as to whether rba files should be being parsed.
On enacting the "Reparse basic project" command, I dont' see a list of files being parsed output in the Developer Tools. I see "Found workspace for scope ..... " and other logging but nothing else obviously of interest
A lot of our references are link time via EXTERN keywords - but it doesn't presently seem to pick up either included functions, or link time resolved functions.