You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the JSON Viewer Panel is active and I switch to a document tab, if nothing in that document is currently selected then the entire document becomes selected.
If I switch to a document tab where a portion of the text is already selected then I get an error dialog box popping up saying "There was an error while parsing JSON. Refer to the current selection for possible problematic area. Error: (3: Invalid value.)" due to it attempting to parse the selected text which is not JSON.
At first I thought these were bugs. Then I thought the "Format JSON to beautify it" button might actually be a toggle switch instead of a button because when I click it a dark border appears around it which stays there when switching between tabs and goes away when I click it again. But regardless of whether or not it has the border around the button, the two above mentioned issues still happen. So now I'm not sure what to think. Can someone shed some light on this?
The text was updated successfully, but these errors were encountered:
@primehalo, I assume that you are on the latest version of JsonViewer plugin (v2.0.7.0).
There was a feature added which will follow the current tab if it is json, then it will try to update Json Viewer Panel dialog as per current tab either full document or the selected piece of text.
If you don't want feature, please disable it from Json Viewer setting by navigating to Plugin->Json Viewer->Settings. Refer below screenshot for details. Hope this will help.
When that option is active I would suggest that the entire document not be auto-selected when formatting it (or if that's not possible then at least de-selected when formatting is done). I'd also suggest that if a portion of the document is already selected and that portion is not valid JSON then don't present the error popup.
When the JSON Viewer Panel is active and I switch to a document tab, if nothing in that document is currently selected then the entire document becomes selected.
If I switch to a document tab where a portion of the text is already selected then I get an error dialog box popping up saying "There was an error while parsing JSON. Refer to the current selection for possible problematic area. Error: (3: Invalid value.)" due to it attempting to parse the selected text which is not JSON.
At first I thought these were bugs. Then I thought the "Format JSON to beautify it" button might actually be a toggle switch instead of a button because when I click it a dark border appears around it which stays there when switching between tabs and goes away when I click it again. But regardless of whether or not it has the border around the button, the two above mentioned issues still happen. So now I'm not sure what to think. Can someone shed some light on this?
The text was updated successfully, but these errors were encountered: