Skip to content

Commit

Permalink
namespace featuresList; fix refresh button bug showing up everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
tinahollygb committed Nov 10, 2022
1 parent 7794419 commit 2afca44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"Other"
],
"activationEvents": [
"onView:featuresList",
"onView:growthbook.featuresList",
"onCommand:growthbook.refreshFeatures"
],
"main": "./out/extension.js",
Expand All @@ -23,7 +23,7 @@
"view/title": [
{
"command": "growthbook.refreshFeatures",
"when": "true",
"when": "view == growthbook.featuresList",
"group": "navigation"
}
],
Expand All @@ -42,14 +42,14 @@
},
"viewsWelcome": [
{
"view": "featuresList",
"view": "growthbook.featuresList",
"contents": "Add a .growthbook.json file or some features to get started. [Learn more](https://docs.growthbook.io/app/features)\n[Add Configuration](command:growthbook.createConfig)"
}
],
"views": {
"explorer": [
{
"id": "featuresList",
"id": "growthbook.featuresList",
"name": "Features"
}
]
Expand Down
4 changes: 2 additions & 2 deletions src/services/ExtensionInitialization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ export class ExtensionManagement implements IExtensionManagement {
*/
private initializeTreeView(): void {
vscode.window.registerTreeDataProvider(
"featuresList",
"growthbook.featuresList",
new FeatureListTreeDataProvider(this.context, this.features)
);

this.treeView = vscode.window.createTreeView("featuresList", {
this.treeView = vscode.window.createTreeView("growthbook.featuresList", {
treeDataProvider: new FeatureListTreeDataProvider(
this.context,
this.features
Expand Down

0 comments on commit 2afca44

Please sign in to comment.