From af4f922bced8f40a22f73d4ba698b6ff8ef6b854 Mon Sep 17 00:00:00 2001 From: Dmitry Bushev Date: Tue, 10 Dec 2024 18:55:18 +0300 Subject: [PATCH] Schedule rename symbol job after compilation (#11780) Ensures that the rename job is scheduled after the compilation job. --- .../enso/interpreter/instrument/command/RenameSymbolCmd.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/runtime-instrument-common/src/main/scala/org/enso/interpreter/instrument/command/RenameSymbolCmd.scala b/engine/runtime-instrument-common/src/main/scala/org/enso/interpreter/instrument/command/RenameSymbolCmd.scala index e1561f8c51..6519424e3d 100644 --- a/engine/runtime-instrument-common/src/main/scala/org/enso/interpreter/instrument/command/RenameSymbolCmd.scala +++ b/engine/runtime-instrument-common/src/main/scala/org/enso/interpreter/instrument/command/RenameSymbolCmd.scala @@ -32,13 +32,13 @@ class RenameSymbolCmd( .map(module => Seq(new File(module.getPath))) .orElseGet(() => Seq()) - val ensureCompiledJob = ctx.jobProcessor.run( + def ensureCompiledJob = ctx.jobProcessor.run( new EnsureCompiledJob( (ctx.state.pendingEdits.files ++ moduleFile).distinct, isCancellable = false ) ) - val refactoringRenameJob = ctx.jobProcessor.run( + def refactoringRenameJob = ctx.jobProcessor.run( new RefactoringRenameJob( maybeRequestId, request.module,