Skip to content

Commit aadc0e4

Browse files
committed
Improve contextValue assignment logic for better readability
1 parent 306a496 commit aadc0e4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/view/treeNodes/categoryNode.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ export class CategoryTreeNode extends TreeNode implements vscode.TreeItem {
182182
}
183183

184184
if (this._categoryQuery) {
185-
this.contextValue = 'query';
186-
if (this.isCopilot) {
187-
this.contextValue = 'copilot-query';
188-
}
185+
this.contextValue = this.isCopilot ? 'copilot-query' : 'query';
189186
}
190187

191188
if (this.isCopilot) {

0 commit comments

Comments
 (0)