Skip to content

Commit 73f9c6c

Browse files
authored
Merge pull request #673 from fortran-lang/gnikit/issue654
feat: add fpm.toml schema validation
2 parents 0ae300a + 41257e2 commit 73f9c6c

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Added
1111

12+
- Added support for schema validation of `fpm.toml` files.
1213
- Added local path resolution for `fortls`, `findent` and `fprettify` executables
1314
([#667](https://github.com/fortran-lang/vscode-fortran-support/issues/667))
1415
- Added support for variable resolution in `fortls`

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,15 @@ If the formatter is not present in the `PATH` its location can be input with
256256
| 📝️ Note | `findent` can also be used to generate dependency files for a project. |
257257
| -------- | ---------------------------------------------------------------------- |
258258

259+
## Fortran Package Manager
260+
261+
### Validation of `fpm.toml`
262+
263+
Autocompletion and options validation for `fpm.toml` files are provided by the
264+
**installing the [Even Better TOML](https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml) Visual Studio Code extension**.
265+
266+
![fpm-validation](assets/gif/fpm-toml-validation.gif)
267+
259268
## Snippets
260269

261270
Snippets are included by both `fortls` Language Server and the Modern Fortran VS Code extension.

assets/gif/fpm-toml-validation.gif

164 KB
Loading

assets/videos/fpm-toml-validation.mp4

208 KB
Binary file not shown.

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@
110110
}
111111
}
112112
],
113+
"tomlValidation": [
114+
{
115+
"fileMatch": "fpm.toml",
116+
"url": "https://github.com/fortran-lang/fpm-metadata/releases/download/v0.2.1/fpm-metadata-0.2.1.json"
117+
}
118+
],
113119
"grammars": [
114120
{
115121
"language": "FortranFreeForm",

0 commit comments

Comments
 (0)