Skip to content

Folder settings tweaks#71

Open
GreatGreenStar wants to merge 7 commits intomainfrom
folder-settings-tweaks
Open

Folder settings tweaks#71
GreatGreenStar wants to merge 7 commits intomainfrom
folder-settings-tweaks

Conversation

@GreatGreenStar
Copy link
Contributor

No description provided.

@GreatGreenStar
Copy link
Contributor Author

GreatGreenStar commented Feb 26, 2026

These are some basic tweaks, basically what they do is:
Recommend the WPILIB extensions if not installed which should be a good heads-up if someone accidentally opens with normal vs-code.
Integrate a tad better with vscode built-in-formatting, through the redhat java extension used in wpilib vscode then setting its formatting rules to our own based off relative file path.
Required files to have no errors to autosave.
Autosaves after 10 seconds so long as above condition is met.
Slight whitespace handling tweaks for start and end of files
Fetch (not pull) runs against CURRENT branch every 3 minutes.
Main gives an additional warning if attempted to be pushed directly to, however this is a "are you sure" type warning so you can say yes if admin still.
Manual saves format files too.

@GreatGreenStar GreatGreenStar marked this pull request as ready for review February 26, 2026 01:23
@GreatGreenStar GreatGreenStar enabled auto-merge (squash) February 26, 2026 01:23
@GreatGreenStar GreatGreenStar self-assigned this Feb 26, 2026
@GreatGreenStar GreatGreenStar added the enhancement New feature or request label Feb 26, 2026
@github-project-automation github-project-automation bot moved this to Backlog in Rebuilt Feb 26, 2026
@GreatGreenStar GreatGreenStar moved this from Backlog to In review in Rebuilt Feb 26, 2026
@GreatGreenStar
Copy link
Contributor Author

Just to clarify, though settings in vscode does, while code WILL format on save... autosave does not trigger formatting, only saving through other means like ctrl+s or building will. (though build already does)

@GreatGreenStar
Copy link
Contributor Author

After testing, it does in fact use it as formatter path properly.
Thus this setup should effectively guarantee code being formatted, reduce chances of people being out of date with main and ensure that people's code is saved at last error-free version automatically. (Doesn't interfere with manual saving even if there's errors.)
ALSO this will mitigate VSCode asking "do you want to automatically always x".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

1 participant