Skip to content

Commit 152fd79

Browse files
committed
chore: remove duplicate cpuprofile
1 parent 2333b7e commit 152fd79

File tree

1 file changed

+2
-2
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp

1 file changed

+2
-2
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,11 @@ private class AmazonQServerInstance(private val project: Project, private val cs
483483
if (LspSettings.getInstance().isCpuProfilingEnabled()) {
484484
val processId = ProcessHandle.current().pid()
485485
val profileDir = System.getProperty("java.io.tmpdir").trimEnd('/')
486-
val profilePath = "node-profile-$processId.cpuprofile.cpuprofile"
486+
val profilePath = "node-profile-$processId.cpuprofile"
487487
LOG.info { "Node.js CPU profile will be saved to: $profileDir $profilePath" }
488488
add("--cpu-prof")
489489
add("--cpu-prof-dir=$profileDir")
490-
add("--cpu-prof-name=$profilePath.cpuprofile")
490+
add("--cpu-prof-name=$profilePath")
491491
}
492492
add(LspSettings.getInstance().getArtifactPath() ?: artifact.resolve("aws-lsp-codewhisperer.js").toString())
493493
add("--stdio")

0 commit comments

Comments
 (0)