Skip to content

Commit

Permalink
sagemathgh-39008: Add Meson-specific settings to vscode settings
Browse files Browse the repository at this point in the history
    
By default, the Meson VS Code extension changes the paths in
`settings.json` so that C++ intellisense is working. Here we set it up
correctly and prevent further overwrites.

<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->



### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [ ] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#39008
Reported by: Tobias Diez
Reviewer(s): Dima Pasechnik
  • Loading branch information
Release Manager committed Jan 8, 2025
2 parents 2facbda + 6c9fe61 commit 62b9886
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,11 @@
"zmin"
],
"editor.formatOnType": true,
"esbonio.sphinx.confDir": ""
"esbonio.sphinx.confDir": "",
// Don't update the settings.json file with values inferred from Meson (we provide them manually)
"mesonbuild.modifySettings": false,
// Use the Meson build system for C/C++ files
"C_Cpp.default.configurationProvider": "mesonbuild.mesonbuild",
// Use the compile_commands.json file generated by Meson for IntelliSense
"C_Cpp.default.compileCommands": "${workspaceFolder}/builddir/compile_commands.json"
}

0 comments on commit 62b9886

Please sign in to comment.