diff --git a/.bob/user/skills/create-pr/SKILL.md b/.bob/user/skills/create-pr/SKILL.md new file mode 100644 index 00000000..8bddbe50 --- /dev/null +++ b/.bob/user/skills/create-pr/SKILL.md @@ -0,0 +1,15 @@ +--- +name: create-pr +description: Create a PR from the working tree +metadata: + user-invocable: true + disable-model-invocation: true +--- + +Please create a PR from my branch using the GitHub CLI (`gh`). Push the branch if I have not pushed it. If I'm not in a branch for this fix, then create a branch and push that. + +If I provide an issue number, the issue belongs to the codefori/vscode-db2i repository. Use this command to find out the info for it: gh issue view -R codefori/vscode-db2i + +When creating the issue body, mention in the PR "Closes " in the related issue section. + +Please use the PR template when creating the PR: .github/PULL_REQUEST_TEMPLATE.md \ No newline at end of file diff --git a/.bob/user/skills/issue/SKILL.md b/.bob/user/skills/issue/SKILL.md new file mode 100644 index 00000000..5cc19371 --- /dev/null +++ b/.bob/user/skills/issue/SKILL.md @@ -0,0 +1,15 @@ +--- +name: issue +description: Use this when working with GitHub issues +metadata: + user-invocable: true + disable-model-invocation: true +--- + +If figuring out what to work on, then use: gh issue list -R codefori/vscode-db2i + +If the you know what issue number to work on, then use: gh issue view -R codefori/vscode-db2i + +Ask the user any clarifying questions. + +Do not make any commits or branches. Let the user handle committing. \ No newline at end of file diff --git a/src/language/providers/completionProvider.ts b/src/language/providers/completionProvider.ts index 6f27456c..31b9b36b 100644 --- a/src/language/providers/completionProvider.ts +++ b/src/language/providers/completionProvider.ts @@ -58,8 +58,11 @@ const completionTypes: { [index: string]: CompletionType } = { function getColumnAttributes(column: TableColumn, useSystemName: boolean): string { + const shownName = useSystemName ? column.SYSTEM_COLUMN_NAME : column.COLUMN_NAME; + const alternateName = useSystemName ? column.COLUMN_NAME : column.SYSTEM_COLUMN_NAME; const lines: string[] = [ - `Column: ${useSystemName ? column.SYSTEM_COLUMN_NAME : column.COLUMN_NAME}`, + `Column: ${shownName}`, + `${useSystemName ? `SQL name` : `System name`}: ${alternateName}`, `Type: ${prepareParamType(column)}`, `HAS_DEFAULT: ${column.HAS_DEFAULT}`, `IS_IDENTITY: ${column.IS_IDENTITY}`,