refactor(win32): remove dead_code warnings and sync EditorState field access migration - #121
Merged
Merged
Conversation
…n, free function split
… access migration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
1. dead_code 警告清理(aether-win32)
mod.rs:移除language_to_ts_str与needs_bg_highlight(互为唯一引用的死代码链)dialogs.rs:移除无引用的kill_caret_timer包装方法(同名自由函数仍被使用,保留)cursor.rs:移除模块级LARGE_FILE_LINE_THRESHOLD/LARGE_FILE_BYTE_THRESHOLD重复常量(impl EditorState关联常量仍被 events.rs 使用)files.rs:移除 8 个无引用的 impl 包装方法(can_reuse_current_tab、reset_editor_state、load_image_file、show_unsupported_file、atomic_write_stream、try_open_readme、save_current_workspace_ai_session、load_workspace_ai_session),同名自由函数保留remote.rs:移除find_remote_node_at_y、ssh_dialog_active_field_mut包装方法2. EditorState 字段访问迁移同步
events.rs/tabs.rs/lsp.rs/render/mod.rs/mod.rs:字段访问路径同步为拆分后的子状态结构(self.ui.*/self.win.*/self.editor.content/self.input.*等)验证
注:本分支同时包含本地 dev 上未推送的 WIP 提交
71357a0。