microsoft / microsoft/TypeScript-Sublime-Plugin
TypeScriptFormat removes all indentation
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.7k
- 派生
- 236
- 平均合并
- 21 天 13 小时
- 30 天内合并 PR
- 1
描述
I am using the plugin v0.1.4 on Mac OS X with sublime build 3083 and all of a sudden the "typescript_format_document" command stopped working.
What it does now is remove the entire indentation (removing all leading spaces).
The rest of the plugin seems to work (syntax check and completion).
I have not installed any other plugin in the meantime, and I am quite positive I did not change my settings.
The weird thing is that while it does not affect all .ts document in my project, it start to affect them randomly. For example, I have document A open, I can format it OK, I close it reopen it, and now the plugin don't format it. It is not systematic, some documents still work, even after opening, modifying and closing them.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用报告的 plugin v0.1.4 和 Mac OS X 上的 Sublime build 3083,在受影响的 .ts 文档上重现 typescript_format_document 命令。跟踪格式化路径,以确定为什么前导空格会被不一致地移除;完成的标准是格式化能够在重新打开的文档中可靠地保留缩进。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100