Skip to content

Component update#539

Merged
julesyan merged 27 commits into
mainfrom
component-update
Jun 10, 2026
Merged

Component update#539
julesyan merged 27 commits into
mainfrom
component-update

Conversation

@julesyan

Copy link
Copy Markdown
Member

Update to match the component checking in base extension v3.0.0

julesyan added 4 commits May 25, 2026 10:57
Signed-off-by: Julia Yan <julia.yan@ibm.com>
Signed-off-by: Julia Yan <julia.yan@ibm.com>
Signed-off-by: Julia Yan <julia.yan@ibm.com>
Signed-off-by: Julia Yan <julia.yan@ibm.com>
@julesyan

Copy link
Copy Markdown
Member Author

Putting in draft until v3.0.0 is out

@julesyan julesyan marked this pull request as draft May 25, 2026 19:08
@julesyan julesyan mentioned this pull request May 25, 2026
@sebjulliand

Copy link
Copy Markdown
Member

We should make a note to remove the Mapepire Component from this extension and use the core's now.
We'd need to add support for the JDBC options in the core, but otherwise, it should be fine.

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

👋 A new build is available for this PR based on b60c26f.

@julesyan julesyan marked this pull request as ready for review June 2, 2026 19:23
@julesyan julesyan linked an issue Jun 3, 2026 that may be closed by this pull request
Comment thread src/connection/components/checkStatement.ts
Comment thread src/connection/components/checkStatement.ts
sebjulliand and others added 2 commits June 8, 2026 18:33
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
@sebjulliand sebjulliand requested review from a team and SanjulaGanepola June 9, 2026 13:52
@sebjulliand sebjulliand added the enhancement New feature or request label Jun 9, 2026
@julesyan

julesyan commented Jun 9, 2026

Copy link
Copy Markdown
Member Author
image

I get this when trying to start any SQL job (saved configuration or through the New SQL Job button). I cant run any commands without starting an SQL job.

Is it expected that the SQL Job Manager still exists in Db2i if the job we use is supposed to be the one from Core? If not then does that mean i lose all my configurations?

@SanjulaGanepola SanjulaGanepola left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I tried to do hopefully a thorough review of this (lots of changes!) and commented anything and everything I found 😅

Just wanted to point out that it looks like there are a whole lot of type errors still in several files. Are these unrelated to the changes made in this branch? Also not sure why these are not flagged by the build.

Image

Comment thread src/views/jobManager/editJob/otherTab.ts
Comment thread src/language/providers/logic/parse.ts Outdated
Comment thread src/connection/extendedSQLJob.ts
Comment on lines -123 to -126
.addSelect(`database name`, `Database name`, [
{text: `System Base`, description: `*SYSBAS`, value: ``, selected: options["database name"] === ``},
...Object.values(connection.getAllIAsps()).map(asp => ({text: asp.name, description: asp.name, value: asp.rdbName, selected: options["database name"] === asp.rdbName}))
], formatDescription(dbNameText))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we no longer fetch this and instead rely on the user to set it? From what I see in Code4i, this API is still available.

Is this related to #546 which was just opened? In which case, lets link that issue to this PR too.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's been removed from the API. The ASP_INFO service that gave us this info cannot be run by any user in 7.6. So listing ASP is not possible anymore, hence the switch to a simple input here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh didn't know that. Is there any alternatives we can use to still fetch this @forstie? Or input box the way to go?

Comment thread src/views/results/index.ts Outdated
Comment thread src/connection/manager.ts
Comment thread src/views/jobManager/statusBar.ts Outdated
Comment thread src/views/jobManager/editJob/systemTab.ts
Comment thread src/extension.ts
Comment thread src/language/sql/document.ts
@SanjulaGanepola SanjulaGanepola requested a review from forstie June 10, 2026 01:21
@SanjulaGanepola

Copy link
Copy Markdown
Member

@forstie After the comments I just left are addressed, it would be great if you could test this out as well just to make sure nothing was broken.

@SanjulaGanepola SanjulaGanepola linked an issue Jun 10, 2026 that may be closed by this pull request
@forstie

forstie commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

I'm ready to test it when given the go ahead.
It would help to have a brief summary of where to focus testing.

Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
@sebjulliand

Copy link
Copy Markdown
Member

@SanjulaGanepola I tried to fix most of the type errors. It must be ok now (I put //@ts-ignore on some of them because these cases would need more changes).

julesyan and others added 5 commits June 10, 2026 07:27
Co-authored-by: Sanjula Ganepola <32170854+SanjulaGanepola@users.noreply.github.com>
Co-authored-by: Sanjula Ganepola <32170854+SanjulaGanepola@users.noreply.github.com>
Co-authored-by: Sanjula Ganepola <32170854+SanjulaGanepola@users.noreply.github.com>
Co-authored-by: Sanjula Ganepola <32170854+SanjulaGanepola@users.noreply.github.com>
Co-authored-by: Sanjula Ganepola <32170854+SanjulaGanepola@users.noreply.github.com>
@SanjulaGanepola

Copy link
Copy Markdown
Member

@sebjulliand Sounds good, let me know when this is ready for a re-review :)

@SanjulaGanepola SanjulaGanepola left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if these type errors are due to changes made in this PR, but thought I would just point them out in case we wanted to fix them here. If they are unrelated, we can maybe leave for a different PR:

Image

Did we ever find why these aren't flagged by the build?

Comment thread src/connection/components/checkStatement.ts
Comment thread src/connection/components/validateStatement.ts Outdated
Comment thread src/connection/components/validateStatement.ts Outdated
Comment thread src/views/results/explain/doveTreeDecorationProvider.ts
Comment thread src/views/results/explain/doveTreeDecorationProvider.ts
Signed-off-by: Julia Yan <julia.yan@ibm.com>
@julesyan

Copy link
Copy Markdown
Member Author

@SanjulaGanepola resolved the two comments for the components
@sebjulliand the other comments are for your code

Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
@SanjulaGanepola

Copy link
Copy Markdown
Member

I'm ready to test it when given the go ahead.
It would help to have a brief summary of where to focus testing.

@forstie For testing, this PR doesn't actually have any changes that actually impact functionality. Rather we are no longer installing and have our own mapepire logic in this extension, and instead re-using similar mapepire logic which was added in Code for IBM i. > 3.0.0. However, since this PR does touch a lot of files though, I just tested everything more generally to make sure nothing was broken. I am hoping you can help do the same.

Note: Content assist is not working properly right now, but everything else seems to be good. I have a comment above for that.

Note the VSIX can be found here: #539 (comment)
Also for testing, make sure you are on Code for IBM i 3.0.10.

Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
@sebjulliand

Copy link
Copy Markdown
Member

@SanjulaGanepola I fixed those types issue and the completion (hopefully).
I still don't know why the build doesn't complain about the TS issues...

@SanjulaGanepola SanjulaGanepola left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, all looks good on my end

@forstie forstie left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll test post release.

@julesyan julesyan merged commit 05c1e5e into main Jun 10, 2026
1 check passed
@julesyan julesyan deleted the component-update branch June 10, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

4 participants