-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source Control Settings #1926
Source Control Settings #1926
Conversation
…we disable file events on the .git folder. Enabling git settings by default.
…n Settings by clearing the current branch stored in the source control manager.
…isabled automatic fetching is disabled.
…e the users global git config instead of CodeEdit settings. Introduced Limiter.debounce and Limiter.throttle.
…abled, if disabled no merge commits are displayed.
CodeEdit/Features/Settings/Pages/SourceControlSettings/SourceControlGitView.swift
Show resolved
Hide resolved
CodeEdit/Features/Settings/Pages/SourceControlSettings/SourceControlGitView.swift
Outdated
Show resolved
Hide resolved
CodeEdit/Features/Settings/Pages/SourceControlSettings/SourceControlGitView.swift
Show resolved
Hide resolved
CodeEdit/Features/Settings/Pages/SourceControlSettings/SourceControlGeneralView.swift
Outdated
Show resolved
Hide resolved
…h excluded files list and ignored files list to use new shared glob list view.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some improvements are needed before merging.
CodeEdit/Features/Settings/Pages/SourceControlSettings/Models/IgnorePatternModel.swift
Outdated
Show resolved
Hide resolved
CodeEdit/Features/Settings/Pages/SourceControlSettings/Models/SourceControlSettings.swift
Outdated
Show resolved
Hide resolved
CodeEdit/Features/Settings/Pages/SourceControlSettings/SourceControlGeneralView.swift
Outdated
Show resolved
Hide resolved
CodeEdit/Features/Settings/Pages/SourceControlSettings/SourceControlGitView.swift
Outdated
Show resolved
Hide resolved
…mentation and TODO.
…e in the users .gitignore_global file. Users can now reorder ignored files. Buttons were added in settings to open .gitconfig and .gitignore_global in an editor.
CodeEdit/Features/Settings/Pages/SearchSettings/Models/SearchSettingsModel.swift
Show resolved
Hide resolved
CodeEdit/Features/Settings/Pages/SourceControlSettings/SourceControlGitView.swift
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm partially through my review but I remember we talked about gitignore saving but it seems like it's wiping all whitespace and comments when I save.
Disregard, I somehow managed to not pull changes from the most recent version of this branch 🤦.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fetch server status automatically seems to be ignored, I can't quite figure out why but when I have the setting off my git status is still pulled. Maybe I'm minsunderstanding the setting?
Screen.Recording.2024-12-04.at.10.23.22.PM.mov
CodeEdit/Features/Settings/Pages/SourceControlSettings/Models/IgnorePatternModel.swift
Outdated
Show resolved
Hide resolved
CodeEdit/Features/Settings/Pages/SourceControlSettings/Models/IgnorePatternModel.swift
Outdated
Show resolved
Hide resolved
CodeEdit/Features/Settings/Pages/SourceControlSettings/SourceControlGitView.swift
Show resolved
Hide resolved
…ored Limiter to use Timer API and removed unused throttle method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one thing answering your comment
Also looks like the issue I mentioned before was a misunderstanding. The ahead/behind status is available locally after it's been fetched so it was working correctly 👍. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One final note: To ensure our code is as readable as possible, we should aim to name functions and variables clearly enough that comments become unnecessary
Resolved PR issues and got two other approvals.
Description
Our source control settings currently do not work. This PR enables many of these settings. Some of these settings use the users git config so we are introducing functionality to get and set based on config keys. As the user types, we want to debounce the set function, so we are also introducing
Limiter
which hasdebounce
andthrottle
methods.Related Issues
Checklist
Screenshots
Screen.Recording.2024-10-28.at.10.30.31.PM.mov
Screen.Recording.2024-10-28.at.10.50.04.PM.mov
Screen.Recording.2024-10-28.at.10.58.13.PM.mov