microsoft / microsoft/vscode-azureresourcegroups

Refresh Workspace view whenever FileChangeEvent fires

Open
#508 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api
Dominant language
TypeScript
Stars
78
Forks
55
Avg merge
16h 49m
Merged PRs (30d)
139

Description

This might be a bit too edge-case, so feel free to close if you feel that's the case. ☺️

If you delete files in the file explorer, the Workspace view doesn't know to refresh itself to reflect any of those changes. This is most obvious when you delete an old functions project, but the local project node is still there.

I don't think this causes any functional problems, but it does make the UI feel a little less snappy.

Alternatively, each extension could register a file system watcher to refresh the specific tree item whenever the relevant files change, but I figured it would make sense for the entire Workspace view to refresh since all resources are local and refreshing should be pretty low cost.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Workspace view implementation and the FileChangeEvent handling in the TypeScript extension, then reproduce the stale local project node after deleting a project in the file explorer. Trace how the view currently refreshes and verify that it reflects file deletions when the event fires.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript
Domain
cloud, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.