Add tree elements including the devfile commands in component views #…#3114
Conversation
12f6c54 to
ef82a1c
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3114 +/- ##
==========================================
- Coverage 32.78% 32.44% -0.34%
==========================================
Files 74 74
Lines 4987 5048 +61
Branches 947 954 +7
==========================================
+ Hits 1635 1638 +3
- Misses 3352 3410 +58
☔ View full report in Codecov by Sentry. |
|
Works pretty well! Two things I noticed:
- exec:
commandLine: echo "hello, world!"
component: tools
id: hello-worldThen I refresh the components view, the component isn't updated to have the new command. I have to restart VS Code for it to appear. I think we should reread the content of the file when the user manually refresh. |
Yes, that needs to be fixed.
The commands (and actually as well as the list of components) are cached. And this is still a question for me - do we have an event or something like this that I can listen to in order to invalidate the caches when a component is added/removed/changed? |
ef82a1c to
6f7c44b
Compare
|
@datho7561 Fixed the PR as follows:
|
6f7c44b to
39466e6
Compare
|
Here are some resources for writing the UI tests: We have an existing tests for the DevfileRegistries section, which is a TreeView: The UI testing framework has the following API to add folders to the workspace: https://github.com/redhat-developer/vscode-extension-tester/wiki#opening-files-and-folders. We have some existing components created under For the integration tests, in |
Thanks. I'll take a look at these tests
This is almost exactly what I'm trying to do (I''m just not added it to It looks like pod is really cannot be identified by this location - neither the project nor component names present in component location path - the server just has nothing related to this |
…edhat-developer#2811 Fixes: redhat-developer#2811 Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
39466e6 to
7d55c8c
Compare
datho7561
left a comment
There was a problem hiding this comment.
Looks good and works well. Thanks, Victor!
…2811
Fixes: #2811