[Request] Auto-Import Priority
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- java, typescript, vscode
研究方向
首先檢視現有的 java.completion.filteredTypes 行為,以及 VS Code Java extension 中的 completion 與 organize-import 進入點。定義有序型別篩選器應如何影響建議與 import 組織,同時不隱藏相符的型別,然後為要求的優先順序行為新增覆蓋測試。
由索引模型根據 Issue 內容生成。
描述
I've been using VSCode for Java development for the past 5 years, and I keep having the friction when working with an API - there's no (obvious) way to prioritise one package over another.
I'd like an option to provide a list of type filter-strings which organise the imports based upon those filters - like how java.completion.filteredTypes operates:
All types whose fully qualified name matches the selected filter strings will be ignored in content assist or quick fix proposals and when organizing imports. For example 'java.awt.*' will hide all types from the awt packages.
Simply put, if I put org.bukkit at the top of the entry, then suggestions from org.bukkit.* should be at the top of the import list, so you can just hit [Enter], rather than having to select the correct option.
I.e. I only use, and will probably only use the second option, yet there's no way to prioritise that package:
As I've mentioned, I'm aware of filteredTypes, but I don't want these types filtered in-case I want to use them later-on. Being able to prioritise types, such as an importPriority option, would allow this problem to be fixed in-general, for any project, rather than having to set filteredTypes for every project individually.
- 主要語言
- TypeScript
- 星號
- 2.3k
- 分支
- 547
- 平均合併
- 5 小時 36 分鐘
- 30 天內合併 PR
- 10
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
redhat-developer/vscode-java 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
redhat-developer/vscode-java#4511 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
redhat-developer/vscode-java#4426 ·
維護者通常 1 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 45/100
redhat-developer/vscode-java#4506 · 7 則留言 · 4 個 reaction ·
維護者通常 1 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 45/100
redhat-developer/vscode-java#4505 · 5 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 52/100
redhat-developer/vscode-java#4504 · 3 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
查看 redhat-developer/vscode-java 的全部 Issue
相似的 Issue
-
難度 1/5 1-3 小時 新手友好度 88/100
supabase/agent-skills#611 ·
-
難度 1/5 1 小時以內 新手友好度 68/100
polka-codes/test#345 ·
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 92/100
GoogleChromeLabs/project-sesame#217 ·
維護者通常 12 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
solana-foundation/solana-com#2202 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100