Format JSON silently fails when content is not valid JSON
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- desktop
调研方向
首先在 JSON preview 中复现该问题,并跟踪 Format JSON action。当无效 JSON 产生可见的验证反馈,而不是静默地什么也不做,同时有效 JSON 仍能正常格式化时,此更改就完成了。
由索引模型根据 Issue 内容生成。
描述
Storage Explorer Version
1.46.0
Regression From
Not a regression
Architecture
x64
Storage Explorer Build Number
20260821.10
Platform
All
OS Version
Windows 11 arm64/Windows 11 x64/MacOS Tahoe 26.6.2 /Linux Ubuntu 22.04
Bug Description
When previewing a JSON file in Storage Explorer, modifying the file content so that it is no longer valid JSON and then clicking Format JSON does not produce any visible response. The content is not formatted, and no error message, warning, or validation feedback is displayed.
Resource Types
Blobs, ADLS Gen2 blobs, File shares
Authentication Method
None
Connection Type
None
Steps to Reproduce
- Launch Storage Explorer.
- Expand one storage account -> Blob Containers.
- Create a blob container -> Upload one Json file.
- Modify the content so that it is no longer valid Json.
- Preview the JSON file -> Click Format JSON.
- Check the result.
Actual Experience
Clicking Format JSON has no visible effect.
Here is the gif:
Expected Experience
It is better to validate the content before formatting.
Additional Context
No response
- 主要语言
- 没有语言数据
- 星标
- 456
- 派生
- 92
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/AzureStorageExplorer 的其他 Issue
-
难度 2/5 1-2 天 新手友好度 76/100
microsoft/AzureStorageExplorer#9186 ·
-
:globe_with_meridians: hard-coded string :globe_with_meridians: localization :test_tube: testing
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/AzureStorageExplorer#9152 ·
-
难度 3/5 1-2 天 新手友好度 40/100
microsoft/AzureStorageExplorer#9214 ·
-
难度 4/5 3-5 天 新手友好度 15/100
microsoft/AzureStorageExplorer#9213 ·
-
:gear: azcopy
难度 4/5 3-5 天 新手友好度 28/100
microsoft/AzureStorageExplorer#9212 ·
查看 microsoft/AzureStorageExplorer 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
jhomlala/betterplayer#1609 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
NousResearch/hermes-agent#140957 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
-
enhancement source/qq
难度 2/5 1-3 小时 新手友好度 72/100
metasequoiaime/msime-windows#1054 ·
维护者通常 1 天内回复