You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ArtifactHelper.kt
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -81,10 +81,10 @@ class ArtifactHelper(private val lspArtifactsPath: Path = DEFAULT_ARTIFACT_PATH,
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ArtifactManager.kt
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -71,13 +71,15 @@ class ArtifactManager @NonInjectable internal constructor(private val manifestFe
71
71
throwLspException("Language server versions not found in manifest.", LspException.ErrorCode.NO_COMPATIBLE_LSP_VERSION)
72
72
}
73
73
74
+
val targetVersion = lspVersions.inRangeVersions.first()
75
+
74
76
// If there is an LSP Manifest with the same version
75
-
val target = getTargetFromLspManifest(lspVersions.inRangeVersions)
77
+
val target = getTargetFromLspManifest(targetVersion)
76
78
// Get Local LSP files and check if we can re-use existing LSP Artifacts
77
-
val artifactPath:Path=if (artifactHelper.getExistingLspArtifacts(lspVersions.inRangeVersions, target)) {
79
+
val artifactPath:Path=if (artifactHelper.getExistingLspArtifacts(targetVersion, target)) {
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ManifestFetcher.kt
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ArtifactHelperTest.kt
0 commit comments