-
Notifications
You must be signed in to change notification settings - Fork 110
Make vscode a bit nicer [fewer spurious warnings or errors] #940
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
Conversation
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.
Pull Request Overview
This PR refines the VS Code workspace and FortLS configuration to suppress spurious warnings and errors, streamline editor settings, and enforce the FortLS language server.
- Update editor indentation, rulers, and file exclusion patterns
- Disable built-in Fortran linting features and enable only FortLS
- Add two FortLS configuration files with project-specific paths and suppression lists
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
.vscode/settings.json | Adjusted tab size, file excludes, Fortran linter and language-server settings |
.vscode/extensions.json | Cleared recommendations and added unwanted extension |
.fortlsrc | New FortLS config with source, include, mod, and exclusion paths |
.fortls.json | New FortLS JSON config mirroring .fortlsrc settings |
Comments suppressed due to low confidence (3)
.vscode/settings.json:31
- The setting
fortran.disabled
may not exist in the extension's schema. Verify and use the correct keys from the Fortran extension documentation to disable built-in features.
"fortran.disabled": false,
.vscode/settings.json:68
- Ensure the language identifier matches VS Code's actual Fortran free-form ID (often
fortran-freeform
) so these editor settings are applied correctly.
"[FortranFreeForm]": {
.fortls.json:1
- You have both
.fortlsrc
and.fortls.json
with overlapping settings. Consolidate to a single config file to avoid confusion and potential conflicts.
{
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
Modifications to the vscode setup to make the linter somewhat useful (and surpress the bazillion warnings and errorrs that were spurious)
PR Type
Enhancement
Description
Configure fortls language server for Fortran development
Disable built-in VSCode Fortran linter warnings
Add comprehensive error suppression configuration
Update workspace settings for better development experience
Changes diagram
Changes walkthrough 📝
.fortls.json
Add fortls language server configuration
.fortls.json
paths
.fortlsrc
Add alternative fortls configuration file
.fortlsrc
extensions.json
Disable unwanted Fortran extension recommendations
.vscode/extensions.json
settings.json
Configure VSCode workspace for fortls integration
.vscode/settings.json
tests
disabled
associations