perf: Bugfixes (#38725)

Release Notes:

- N/A
This commit is contained in:
Nia
2025-09-24 16:03:08 +00:00
committed by GitHub
parent 53885c00d3
commit 39370bceb2
7 changed files with 85 additions and 24 deletions
+7 -1
View File
@@ -59,7 +59,13 @@ pub struct NeovimConnection {
}
impl NeovimConnection {
pub async fn new(test_case_id: String) -> Self {
pub async fn new(mut test_case_id: String) -> Self {
// When running under perf, don't create duplicate files.
if cfg!(perf_enabled) {
if test_case_id.ends_with(perf::consts::SUF_NORMAL) {
test_case_id.truncate(test_case_id.len() - perf::consts::SUF_NORMAL.len());
}
}
#[cfg(feature = "neovim")]
let handler = NvimHandler {};
#[cfg(feature = "neovim")]