Skip to content
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

Add fallback-scala-version configuration option #494

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,29 @@
"type": "boolean",
"default": true,
"markdownDescription": "When enabled, if you press the return key from the first line of a multiline string containing a pipe, it will automatically add `.stripMargin`."
},
"metals.fallbackScalaVersion": {
"type": "string",
"default": "automatic",
"enum": [
"automatic",
"2.13.4",
"2.13.3",
"2.13.2",
"2.13.1",
"2.13.0",
"2.12.13",
"2.12.12",
"2.12.11",
"2.12.10",
"2.12.9",
"2.12.8",
"2.11.12",
"3.0.0-M3",
"3.0.0-M2",
"3.0.0-M1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add at least in the main Metals repo docs/contributors/releasing.md information that we should update this list.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to the same PR - commit

],
"markdownDescription": "The Scala compiler version that is used as the default or fallback in case a file doesn't belong to any build target or the specified Scala version isn't supported by Metals.\n\nThis applies to standalone Scala files, worksheets, and Ammonite scripts.\n\n The `automatic` value means that the Scala version for these files will be inferred from the highest supported Scala version in your projects build definition"
}
}
},
Expand Down