Functions (and other logic) within Regions should be indented
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- csharp, powershell
研究方向
先找出 PowerShell 語言服務使用的預設自動格式化實作,並將其與 issue 中展開和摺疊的 Region 範例進行比較。檢查目前函式內容的縮排方式,接著判斷應如何表示所要求的 Region 巢狀結構,並透過 formatter 現有的測試或驗證路徑(如果有)驗證其行為。
由索引模型根據 Issue 內容生成。
描述
Summary of the new feature / enhancement
Indentation should incoprorate Regions, if they exist. This logic is akin to why the contents of functions is indented.
Note: I have searched and found no support for this, and Found no better place to request this enhancement. I am using Visual Studio Code with the MS PowerShell Plugin. Language specific Editor settings do not support doing this: https://code.visualstudio.com/docs/getstarted/settings#_language-specific-editor-settings
___ is used instead of spaces because the View of the issue removed spaces
Preferred:
================
Expanded:
Region Main
___Function Main {
______ValidateSettings
Collapsed:
Region Main
___Function Main {
___}
___Function Function1 {
___}
___Function Function2 {
___}
Current:
Expanded:
Region Main
Function Main {
_____ValidateSettings
Collapsed:
Region Main
Function Main {
_____ValidateSettings
}
Function Function1 {
}
Function Function2 {
}
Proposed technical implementation details (optional)
The Default Auto-Formatting should indent Functions when they exist within Regions.
Not preferred, as this is user by user: provide language-specific-editor-settings to enable this
- 主要語言
- C#
- 星號
- 772
- 分支
- 268
- 平均合併
- 3 天 16 小時
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
PowerShell/PowerShellEditorServices 的其他 Issue
-
[Bug] None of the string overloads of `EditorExtensionServiceProvider.GetService()` work on .NET.可能重新可做 @andyleejordan 於 102 天前認領,目前沒有進行中的 PR。 未關閉
PowerShell/PowerShellEditorServices#2331 · 1 個 reaction · 已指派 2 人 ·
-
Area-Language Server Issue-Enhancement
難度 4/5 3-5 天 新手友好度 48/100
PowerShell/PowerShellEditorServices#2315 · 1 則留言 ·
-
Improve Constrained Runspace Debug Experience可能已有人在做 @JustinGrote 於 125 天前認領。 未關閉Area-Debugging Issue-Enhancement
PowerShell/PowerShellEditorServices#2294 · 1 個 reaction · 已指派 2 人 ·
-
Issue-Bug Needs: Triage
難度 4/5 3-5 天 新手友好度 48/100
PowerShell/PowerShellEditorServices#2293 · 1 則留言 ·
-
Document outline drops child variables when a function/filter reuses a variable name declared earlier (scope-blind declaration dedup)可能已有人在做 @JustinGrote 於 153 天前認領。 未關閉
PowerShell/PowerShellEditorServices#2282 · 1 則留言 · 1 個 reaction · 已指派 2 人 ·
查看 PowerShell/PowerShellEditorServices 的全部 Issue
相似的 Issue
-
area-tutorials needs-triage
難度 2/5 1-3 小時 新手友好度 75/100
dotnet/website-feedback#1779 ·
-
conductor good first issue ready
難度 2/5 1-3 小時 新手友好度 78/100
nilvon9wo/agentic-software-workflow#25 · 1 則留言 ·
維護者通常 1 天內回覆
-
S: Untriaged
難度 2/5 1-3 小時 新手友好度 78/100
space-wizards/space-station-14#46357 ·
維護者通常 1 天內回覆
-
Versioning_oM: Remove unneeded depeendecy on Test_oM可能已有人在做 @IsakNaslundBh 今天認領。 未關閉type:bug type:compliance
難度 2/5 1 小時以內 新手友好度 85/100
-
難度 2/5 1-3 小時 新手友好度 78/100