Skip to content

Preferred platform and Scala version in cross-built projects #13

@olafurpg

Description

@olafurpg

Currently, Metals uses a basic heuristic to select a default built target when multiple targets are associated with a single source file. For example, when a user edits a shared source file for Scala.js and JVM build targets Metals automatically picks the JVM build target and the users can't override/customize that choice.

It would be good if Metals exposed some control over the default heuristic via configuration, for example:

  • Preferred platform: [JVM, JS, Native]
  • Preferred Scala version: [2.12, 2.11, 2.13]

Users could reorder those lists to for example tell Metals to prefer JS on 2.11 over JVM 2.12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions