Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Format JSON silently fails when content is not valid JSON

已关闭
#9,162 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
领域
desktop

调研方向

首先在 JSON preview 中复现该问题,并跟踪 Format JSON action。当无效 JSON 产生可见的验证反馈,而不是静默地什么也不做,同时有效 JSON 仍能正常格式化时,此更改就完成了。

由索引模型根据 Issue 内容生成。

描述

:gear: adls gen2 :gear: blobs :gear: files :test_tube: testing
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
  1. Launch Storage Explorer.
  2. Expand one storage account -> Blob Containers.
  3. Create a blob container -> Upload one Json file.
  4. Modify the content so that it is no longer valid Json.
  5. Preview the JSON file -> Click Format JSON.
  6. Check the result.
Actual Experience

Clicking Format JSON has no visible effect.
Here is the gif:

Image
Expected Experience

It is better to validate the content before formatting.

Additional Context

No response

主要语言
没有语言数据
星标
456
派生
92
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/AzureStorageExplorer 的其他 Issue

查看 microsoft/AzureStorageExplorer 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。