Schedule rename symbol job after compilation (#11780)

Ensures that the rename job is scheduled after the compilation job.
This commit is contained in:
Dmitry Bushev 2024-12-10 18:55:18 +03:00 committed by GitHub
parent 98605b01b9
commit af4f922bce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,