Skip to content

Commit 3e9c3b9

Browse files
committed
Merge branch 'main' into feature/singular_prompt_builder
2 parents 0bace48 + 0dc84de commit 3e9c3b9

File tree

6 files changed

+20
-9
lines changed

6 files changed

+20
-9
lines changed

.github/workflows/webpack_ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
cat $GITHUB_ENV
3636
3737
- name: Upload dist artifacts
38-
uses: actions/upload-artifact@v3
38+
uses: actions/upload-artifact@v4
3939
with:
4040
name: test_vsix
4141
path: ${{env.vsix_name}}
@@ -70,4 +70,4 @@ jobs:
7070
👋 A new build is available for this PR based on ${{ github.event.pull_request.head.sha }}.
7171
7272
* [Download here.](https://github.com/codefori/vscode-db2i/actions/runs/${{ github.run_id }})
73-
* [Read more about how to test](https://github.com/codefori/vscode-db2i/blob/master/.github/pr_testing_template.md)
73+
* [Read more about how to test](https://github.com/codefori/vscode-db2i/blob/master/.github/pr_testing_template.md)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-db2i",
33
"displayName": "Db2 for IBM i",
44
"description": "Db2 for IBM i tools in VS Code",
5-
"version": "1.8.2",
5+
"version": "1.8.3",
66
"engines": {
77
"vscode": "^1.95.0"
88
},

src/language/providers/hoverProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function addSymbol(base: MarkdownString, symbol: LookupResult) {
181181
else if ('COLUMN_NAME' in symbol) {
182182
base.appendCodeblock(prepareParamType(symbol) + `\n`, `sql`);
183183
}
184-
else if ('name' in symbol) {
184+
else if ('name' in symbol && symbol.text) {
185185
addList(base, [
186186
`**Description:** ${symbol.text}`,
187187
]);

src/views/jobManager/selfCodes/selfCodesResultsView.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,10 @@ class SelfCodeItems extends ExtendedTreeItem {
231231

232232
async getChildren(): Promise<ExtendedTreeItem[]> {
233233
const selfCodes = await this.selfView.getSelfCodes(this.selected, true);
234-
return selfCodes.map((error) => new SelfCodeTreeItem(error));
234+
235+
if (selfCodes) {
236+
return selfCodes.map((error) => new SelfCodeTreeItem(error));
237+
}
235238
}
236239
}
237240

src/views/types/function.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import Function from "../../database/callable";
33
import ParmTreeItem from "./ParmTreeItem";
44

55
export async function getChildren (schema: string, specificName: string): Promise<ParmTreeItem[]> {
6-
const parms = await Function.getParms(schema, specificName);
6+
const signatures = await Function.getSignaturesFor(schema, [specificName]);
7+
const allParms = signatures.map(signature => signature.parms).flat();
8+
const removedDupes = allParms.filter((parm, index) => {
9+
return allParms.findIndex(p => p.PARAMETER_NAME === parm.PARAMETER_NAME && p.DATA_TYPE === p.DATA_TYPE) === index;
10+
});
711

8-
return parms.map(parm => new ParmTreeItem(schema, specificName, parm));
12+
return removedDupes.map(parm => new ParmTreeItem(schema, specificName, parm));
913
}

src/views/types/procedure.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import Procedure from "../../database/callable";
33
import ParmTreeItem from "./ParmTreeItem";
44

55
export async function getChildren(schema: string, specificName: string): Promise<ParmTreeItem[]> {
6-
const parms = await Procedure.getParms(schema, specificName);
6+
const signatures = await Procedure.getSignaturesFor(schema, [specificName]);
7+
const allParms = signatures.map(signature => signature.parms).flat();
8+
const removedDupes = allParms.filter((parm, index) => {
9+
return allParms.findIndex(p => p.PARAMETER_NAME === parm.PARAMETER_NAME && p.DATA_TYPE === p.DATA_TYPE) === index;
10+
});
711

8-
return parms.map(parm => new ParmTreeItem(schema, specificName, parm));
12+
return removedDupes.map(parm => new ParmTreeItem(schema, specificName, parm));
913
}

0 commit comments

Comments
 (0)