Skip to content

feat(mps-sync-plugin): API for getting the binding of an SModule#2397

Merged
slisson merged 1 commit intomainfrom
feature/module-owned-by-readonly-binding
Feb 18, 2026
Merged

feat(mps-sync-plugin): API for getting the binding of an SModule#2397
slisson merged 1 commit intomainfrom
feature/module-owned-by-readonly-binding

Conversation

@slisson
Copy link
Member

@slisson slisson commented Feb 18, 2026

No description provided.

Can be used to check if a module is read only.
@slisson slisson force-pushed the feature/module-owned-by-readonly-binding branch from 6add345 to fc8c84e Compare February 18, 2026 16:24
@slisson slisson enabled auto-merge (rebase) February 18, 2026 16:25
@github-actions
Copy link
Contributor

Test Results

  245 files  ±0    245 suites  ±0   54m 35s ⏱️ + 1m 8s
1 412 tests +1  1 401 ✅ +1  11 💤 ±0  0 ❌ ±0 
1 422 runs  +1  1 411 ✅ +1  11 💤 ±0  0 ❌ ±0 

Results for commit fc8c84e. ± Comparison against base commit 676d7ef.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

JVM coverage report

Overall Project 59.05% -0.01%
Files changed 91.45% 🍏

File Coverage
ModuleToBindingMapping.kt 100% 🍏
BindingWorker.kt 85.8% 🍏
ModelSyncService.kt 74.2% -0.36% 🍏
SyncTargetModel.kt 62.41% -0.12% 🍏
IModelSyncService.kt 58.72% -2.75%

@slisson slisson merged commit 14c6e1f into main Feb 18, 2026
17 checks passed
@slisson slisson deleted the feature/module-owned-by-readonly-binding branch February 18, 2026 16:48

fun getStatus(): List<IBinding.Status> = status

fun getBinding(module: MPSModuleReference): BindingId? = moduleOwners.getBinding(module)

Check warning

Code scanning / detekt

The function getBinding is missing documentation. Warning

The function getBinding is missing documentation.
fun isReadonly(binding: IBinding): Boolean
fun switchBranch(oldBranchRef: BranchReference, newBranchRef: BranchReference, dropLocalChanges: Boolean = false)

fun getBinding(moduleId: MPSModuleReference): IBinding?

Check warning

Code scanning / detekt

The function getBinding is missing documentation. Warning

The function getBinding is missing documentation.
fun switchBranch(oldBranchRef: BranchReference, newBranchRef: BranchReference, dropLocalChanges: Boolean = false)

fun getBinding(moduleId: MPSModuleReference): IBinding?
fun getBinding(moduleId: SModuleId): IBinding? = getBinding(moduleId.toModelix())

Check warning

Code scanning / detekt

The function getBinding is missing documentation. Warning

The function getBinding is missing documentation.

fun getBinding(moduleId: MPSModuleReference): IBinding?
fun getBinding(moduleId: SModuleId): IBinding? = getBinding(moduleId.toModelix())
fun getBinding(module: SModule): IBinding? = getBinding(module.moduleId)

Check warning

Code scanning / detekt

The function getBinding is missing documentation. Warning

The function getBinding is missing documentation.

fun getSyncProgress(): String?
fun getStatus(): Status
fun isReadonly(): Boolean

Check warning

Code scanning / detekt

The function isReadonly is missing documentation. Warning

The function isReadonly is missing documentation.
}

@Synchronized
fun getBinding(module: MPSModuleReference): BindingId? {

Check warning

Code scanning / detekt

The function getBinding is missing documentation. Warning

The function getBinding is missing documentation.
* @see BindingState.projectId
*/
val projectId: MPSProjectReference,
val bindingId: BindingId,

Check warning

Code scanning / detekt

The property bindingId is missing documentation. Warning

The property bindingId is missing documentation.
class SyncTargetModel(
val project: MPSProjectAsNode,
val targetConfigs: List<SyncTargetConfig>,
val moduleOwners: ModuleToBindingMapping,

Check warning

Code scanning / detekt

The property moduleOwners is missing documentation. Warning

The property moduleOwners is missing documentation.
}

fun getMPSModules(): List<IWritableNode> {
fun getMPSModules(): List<ModuleWrapper> {

Check warning

Code scanning / detekt

The function getMPSModules is missing documentation. Warning

The function getMPSModules is missing documentation.
}

fun getMPSProjects(): List<IWritableNode> {
fun getMPSProjects(): List<ProjectWrapper> {

Check warning

Code scanning / detekt

The function getMPSProjects is missing documentation. Warning

The function getMPSProjects is missing documentation.
@slisson
Copy link
Member Author

slisson commented Feb 19, 2026

🎉 This PR is included in version 18.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments