-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the json outline does not update when the .json file changes #1066
Comments
I see this working correctly. The json outline view changes when the active editor changes.
This is not a feature that the json outline sample provides, so it is expected that the tree doesn't update when the selection changes in the editor.
I tried the setting, and it works. When auto refresh is turned on then the tree changes in response to file changes. I've added a description for the setting: #1068 |
As I said in stackoverflow, I write an AST Explorer vscode extension and like it to behave like https://astexplorer.net/. Also I asked an ancillary question about the behavior of the debugger I don't Thx for your help. |
The problem with the watch view is a known one. As for updating the treeview, there is an example of |
The code beyond that should probably used as a model |
Extension sample
tree-view-sample
VS Code version
1.92-insider
What went wrong?
the json outline does not update when the .json file changes or when the
the selection change in said file. In the later case it should select the correct item in the tree view.
I ran to the same problem and described it in :
https://stackoverflow.com/questions/78814016/can-someone-provide-a-simple-example-of-updating-on-a-treeview-on-a-change-selec
To make things more confusing, an undocumented configuration option named
autorefresh
is set to false inpackage.json
. But setting it totrue
does not change anything despite it being tested.The text was updated successfully, but these errors were encountered: