Format Bar does not revert to settings when not overridden by .editorconfig
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- desktop-dev, devtools
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi trạng thái độ rộng tab của Format Bar cùng với việc xử lý .editorconfig, sử dụng các tệp XML và .editorconfig trong các bước tái hiện. Kiểm tra thiết lập io.elementary.code.settings.indent-width khi tiêu điểm di chuyển giữa các tệp; hoàn tất khi một tab_width không được chỉ định quay về giá trị mặc định của ứng dụng, trừ khi tệp có tab_width riêng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What Happened?
After editing a document where a tab width of "2" was set in .editorconfig (e.g. an .xml file) when switching to a file with no tab width was specified in .editorconfig, the tab width remained at "2" even though the app default setting was "4" (as determined by the value of io.elementary.code.settings.indent-width.
Steps to Reproduce
- Open a project whose
.editorconfigfile has no global specification fortab_width(e.g. Code itself) - Open an XML file and e.g. the
.editorconfigfile - Focus the XML document - the format button becomes insensitive with a value of "2" as expected
- Focus the other file - the format button becomes sensitive, as expected, but the value remains at "2"
Expected Behavior
Where the editorconfig does not specify a tab width for a file type, then the app default setting should be used if the file is empty or has no tab width set internally; if the file has a tab_width specified in its header or otherwise then that should be used. This should occur regardless of the previously focussed document.
OS Version
7.x (Early Access)
Software Version
Latest release (I have run all updates)
Log Output
No response
Hardware Info
No response
- Ngôn ngữ chính
- Vala
- Star
- 521
- Fork
- 119
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 13
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của elementary/code
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
elementary/code#1818 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Unmounting a mount containing a file being edited by Code does not result in a "busy" warningĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
elementary/code#1813 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Fuzzy Find icon in the sidebarĐang mởNeeds Design Priority: Wishlist
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
elementary/code#1786 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Needs Design Priority: Wishlist
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
elementary/code#1783 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Priority: Wishlist
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
elementary/code#1762 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của elementary/code
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Desktop][Windows] Two Cline entries in Notifications Settings - PowerShell toast uses wrong AppIDĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
cline/cline#14594 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nix-community/plasma-manager#670 ·
Maintainer thường phản hồi trong vòng 7 ngày
-
bug has-stack-trace
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Nextcloud Desktop 34.0.4 fails TestLocalDiscovery::testFileOpenedAsDirectoryCompletesDiscoveryJob()Đang mở0. Needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày