diff --git a/src/main/kotlin/org/move/ide/annotator/RsExternalLinterPass.kt b/src/main/kotlin/org/move/ide/annotator/RsExternalLinterPass.kt index fe1a1805c..4d716c0e7 100644 --- a/src/main/kotlin/org/move/ide/annotator/RsExternalLinterPass.kt +++ b/src/main/kotlin/org/move/ide/annotator/RsExternalLinterPass.kt @@ -174,7 +174,7 @@ class RsExternalLinterPassFactory( ) override fun createHighlightingPass(file: PsiFile, editor: Editor): TextEditorHighlightingPass? { - FileStatusMap.getDirtyTextRange(editor, passId) ?: return null + FileStatusMap.getDirtyTextRange(editor.document, file, passId) ?: return null return RsExternalLinterPass(this, file, editor) } diff --git a/src/main/kotlin/org/move/lang/core/types/infer/TypeInferenceWalker.kt b/src/main/kotlin/org/move/lang/core/types/infer/TypeInferenceWalker.kt index 9bf25489c..3d6c10038 100644 --- a/src/main/kotlin/org/move/lang/core/types/infer/TypeInferenceWalker.kt +++ b/src/main/kotlin/org/move/lang/core/types/infer/TypeInferenceWalker.kt @@ -392,7 +392,7 @@ class TypeInferenceWalker( } } - fun inferDotFieldTy(receiverTy: Ty, dotField: MvStructDotField, expected: Expectation): Ty { + fun inferDotFieldTy(receiverTy: Ty, dotField: MvStructDotField): Ty { val structTy = receiverTy.derefIfNeeded() as? TyStruct ?: return TyUnknown @@ -563,7 +563,7 @@ class TypeInferenceWalker( val field = dotExpr.structDotField return when { methodCall != null -> inferMethodCallTy(receiverTy, methodCall, expected) - field != null -> inferDotFieldTy(receiverTy, field, expected) + field != null -> inferDotFieldTy(receiverTy, field) // incomplete else -> TyUnknown } diff --git a/src/main/kotlin/org/move/openapiext/utils.kt b/src/main/kotlin/org/move/openapiext/utils.kt index 83fd287ae..b82cb90e4 100644 --- a/src/main/kotlin/org/move/openapiext/utils.kt +++ b/src/main/kotlin/org/move/openapiext/utils.kt @@ -90,7 +90,7 @@ fun saveAllDocuments() = FileDocumentManager.getInstance().saveAllDocuments() * This function saves all documents "as they are" (see [FileDocumentManager.saveDocumentAsIs]), but also fires that * these documents should be stripped later (when [saveAllDocuments] is called). */ -fun saveAllDocumentsAsTheyAre(reformatLater: Boolean = true) { +fun saveAllDocumentsAsTheyAre() { val documentManager = FileDocumentManager.getInstance() // val rustfmtWatcher = RustfmtWatcher.getInstance() // rustfmtWatcher.withoutReformatting {