Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format document wrong #209

Open
pabloto opened this issue Feb 16, 2023 · 2 comments
Open

Format document wrong #209

pabloto opened this issue Feb 16, 2023 · 2 comments

Comments

@pabloto
Copy link

pabloto commented Feb 16, 2023

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:

Screen.Recording.2023-02-16.at.09.56.13.mov

Is it correct?

Many thanks

@worksofliam
Copy link
Contributor

@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
Copy link
Author

pabloto commented Feb 16, 2023

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;
`

@worksofliam worksofliam transferred this issue from codefori/vscode-ibmi Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants