Skip to content

Commit b63d836

Browse files
committed
adjust
1 parent c443d4c commit b63d836

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

server/src/server.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,7 @@ async function prepareRename(
689689
let params = msg.params as p.PrepareRenameParams;
690690
let filePath = fileURLToPath(params.textDocument.uri);
691691

692-
// Gate analysis prepareRename behind >= 12.0.0-beta.9
693-
// This needs to be adjusted to the actual version prepareRename is released in
692+
// `prepareRename` was introduced in 12.0.0-beta.10
694693
let projectRootPath = utils.findProjectRootOfFile(filePath);
695694
let rescriptVersion =
696695
(projectRootPath && projectsFiles.get(projectRootPath)?.rescriptVersion) ||
@@ -700,7 +699,7 @@ async function prepareRename(
700699
if (rescriptVersion != null) {
701700
shouldUsePrepareRenameCommand =
702701
semver.valid(rescriptVersion) != null &&
703-
semver.satisfies(rescriptVersion, ">=12.0.0-beta.9", {
702+
semver.satisfies(rescriptVersion, ">=12.0.0-beta.10", {
704703
includePrerelease: true,
705704
});
706705
}

0 commit comments

Comments
 (0)