Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] Add a flag that makes the algorithm more likely to interpre…
…t target as a library than a module Merge-request: BAZEL-MR-1039 Merged-by: Xuan Son Trinh <xuanson.trinh@jetbrains.com>
- Loading branch information
1 parent
ac69b36
commit 8d13b46
Showing
8 changed files
with
61 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...src/main/kotlin/org/jetbrains/bsp/bazel/workspacecontext/ExperimentalUseLibOverModSpec.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.jetbrains.bsp.bazel.workspacecontext | ||
|
||
import org.jetbrains.bsp.bazel.executioncontext.api.ExecutionContextEntityExtractor | ||
import org.jetbrains.bsp.bazel.executioncontext.api.ExecutionContextSingletonEntity | ||
import org.jetbrains.bsp.bazel.projectview.model.ProjectView | ||
|
||
data class ExperimentalUseLibOverModSpec( | ||
override val value: Boolean, | ||
) : ExecutionContextSingletonEntity<Boolean>() | ||
|
||
internal object ExperimentalUseLibOverModSpecExtractor : ExecutionContextEntityExtractor<ExperimentalUseLibOverModSpec> { | ||
override fun fromProjectView(projectView: ProjectView): ExperimentalUseLibOverModSpec = | ||
ExperimentalUseLibOverModSpec(projectView.useLibOverModSection?.value ?: false) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters