Skip to content

Commit 9aa147e

Browse files
vrubezhnydatho7561
authored andcommitted
Components tree view not get refreshed #3318
Fixes: #3318 Signed-off-by: Victor Rubezhny <[email protected]>
1 parent 24e4830 commit 9aa147e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/workspace.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ async function updateDevfileContext(_: unknown) {
117117
}),
118118
);
119119
const foldersArray = devfileFolders.map(folder => folder.name);
120-
void commands.executeCommand('setContext', 'ext.folderContainsDevfile', foldersArray);
120+
void commands.executeCommand('setContext', 'ext.folderContainsDevfile', foldersArray)
121+
.then(() => void commands.executeCommand('openshift.componentsView.refresh'));
121122
}
122123

123124
/**

0 commit comments

Comments
 (0)