Serpen / VBS-VSCode

VSCode VBScript language extension
https://marketplace.visualstudio.com/items?itemName=Serpen.vbsvscode
MIT License
24 stars 11 forks source link

VBA - Visibility of structure list + variable proposal while typing on .bas file #60

Open DamosDoutaz opened 1 year ago

DamosDoutaz commented 1 year ago

Type: Feature Request

Hi, I had found an extension for VBA code that allowed me to have visibility over the "Strucutre" list and that proposed the names of existing variables while typing. This extension has not been available for some time. I did find the "VBScript symbols v1.1.0" extension that displays the "Structure" list, but when this extension is active, the suggestion of existing variable names while typing no longer works. So it's either one or the other, but not both. Is there any way of correcting the problem?

Kind regards

Extension version: 1.2.1 VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z) OS version: Windows_NT x64 10.0.19045 Modes:

DamosDoutaz commented 1 year ago

Extension inactive

Extension active

Serpen commented 1 year ago

Hm, there are already two big problems in the first place

  1. You use two extensions for the same language and
  2. both extensions aren't made for VBA but for VBScript.

Which Screenshot shows which extension active?

The first screenshots AutoComplete seems to be from none of both extensions, its just showing vscode's default word matching?? (no vartype symbol simple abc-icon)

I'm pretty sure the problem that your file is using a languagefeature from VBA which my VBS parser couldn't understand.

Can you please simplify one of your VBA files (to correct VBS code) and only activate my extension, to see which syntax is breaking the parser (AS statements, Enum, iif, named Arguments := ) . OR post some of your source anywhere. Than i could have a look, but i won't promise anything. My extension is made for vbs not vba and i will not change that.

DamosDoutaz commented 1 year ago

Hi,

Thank you for your information. I've already tried a lot of extensions made for VBA but I've yet to find one that displays both. That's why I tested yours, which gave me the best result so far.

But no problem, I understand your position and don't want to waste your time.

Best regards