-
Notifications
You must be signed in to change notification settings - Fork 36.7k
Description
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version:
- OS Version:
I save the data of the tree view in workspaceState, then I monitor the file changes, find the tree node (node) that should be updated in workspaceState, and then fire (node) to update the node. But if I fire () the entire tree, that is, the data in workspaceState will be modified. Then modify the file, find the tree node (node) that should be updated in workspaceState, and then fire (node), nothing will happen
If I store the data in an internal variable instead of workspaceState, everything will go smoothly
But my purpose is to cache the data of the tree view so that it is convenient to directly retrieve the cache next time. Can't I do this?
It seems that as long as I update the value in workspaceState and then use the value inside to update a tree node, nothing happens
I experimented for several days and found this phenomenon. I really want to know why this is the case
I don't know if I can ask questions about plugins here, I really want to know the answer to my question.
If there are other ways to help solve my problem, please let me know
Thank