Skip to content

Commit

Permalink
update enablement settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshedivy committed Nov 5, 2024
1 parent fef79ff commit bc5cb3c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@
"command": "vscode-db2i.jobManager.focusContinue",
"title": "Register Continue Provider",
"category": "Db2 for i",
"icon": "$(star-full)"
"icon": "$(star-full)",
"enablement": "vscode-db2i:continueExtensionActive"
},
{
"command": "vscode-db2i.jobManager.closeJob",
Expand Down Expand Up @@ -686,7 +687,8 @@
"command": "vscode-db2i.self.explainSelf",
"title": "Explain SELF Code with continue",
"category": "Db2 for i",
"icon": "$(debug-alt)"
"icon": "$(debug-alt)",
"enablement": "vscode-db2i:continueExtensionActive"
},
{
"command": "vscode-db2i.self.help",
Expand Down
2 changes: 1 addition & 1 deletion src/aiProviders/continue/continueContextProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export async function registerContinueProvider() {
isContinueActive = true;
const continueAPI = continueEx?.exports;
continueAPI?.registerCustomContextProvider(provider);
vscode.commands.executeCommand('setContext', 'continueExtensionActive', true);
vscode.commands.executeCommand('setContext', 'vscode-db2i:continueExtensionActive', true);
vscode.window.showInformationMessage(`@Db2i context provider enabled in Continue!`);
}
}
6 changes: 4 additions & 2 deletions src/views/jobManager/selfCodes/contributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
"command": "vscode-db2i.self.explainSelf",
"title": "Explain SELF Code with continue",
"category": "Db2 for i",
"icon": "$(debug-alt)"
"icon": "$(debug-alt)",
"enablement": "vscode-db2i:continueExtensionActive"
},
{
"command": "vscode-db2i.self.help",
Expand Down Expand Up @@ -157,7 +158,8 @@
{
"command": "vscode-db2i.self.explainSelf",
"when": "view == vscode-db2i.self.nodes && viewItem == selfCodeNode",
"group": "navigation"
"group": "navigation",
"enablement": "vscode-db2i:continueExtensionActive"
}
]
}
Expand Down

0 comments on commit bc5cb3c

Please sign in to comment.