codefori / vscode-rpgle

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

Format document wrong #209

Open pabloto opened 1 year ago

pabloto commented 1 year ago

Hi,

If I have a variable declared in my sqlrpgle than as the same name as a column of my table using format document in vscode it do this:

https://user-images.githubusercontent.com/9719313/219318875-3cbbe102-451b-4787-8b64-17b54f4fbea7.mov

Is it correct?

Many thanks

worksofliam commented 1 year ago

@pabloto that is the current behaviour. Paste the code here and I will see what I can do, though I don't know what that will be.

pabloto commented 1 year ago

Hi Liam, here's a sample.

` *free Ctl-Opt DftActGrp(no)ActGrp(StgMdl) StgMdl(SNGLVL) Thread(Concurrent) Option(NoUnRef :SrcStmt :NoDebugIo) DatFmt(Iso) TimFmt(Iso) Debug(Constants) Expropts(AlwBlankNum) AlwNull(*UsrCtl) DftName(TESTFORM) Text('Test for format document'); // ____

Dcl-s Ostpc Char(10);

Exec Sql Set Option Datfmt = Iso, Timfmt = Iso, Closqlcsr = EndMod, Commit = none;

Ostpc = 'TEST';

Exec Sql update testupdate set ostpc = :OStPc where ococl = '20470' and otito = 'FCT';

Return; `