Skip to content

Commit 9256837

Browse files
committed
passthroguh project
1 parent c33a740 commit 9256837

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ internal class LSPProcessListener : ProcessListener {
7171
}
7272

7373
@Service(Service.Level.PROJECT)
74-
class AmazonQLspService(project: Project, private val cs: CoroutineScope) : Disposable {
74+
class AmazonQLspService(private val project: Project, private val cs: CoroutineScope) : Disposable {
7575
private var instance: AmazonQServerInstance? = null
7676

7777
init {
7878
cs.launch {
7979
// manage lifecycle RAII-like so we can restart at arbitrary time
8080
// and suppress IDE error if server fails to start
8181
try {
82-
instance = AmazonQServerInstance(cs).also {
82+
instance = AmazonQServerInstance(project, cs).also {
8383
Disposer.register(this@AmazonQLspService, it)
8484
}
8585
} catch (e: Exception) {
@@ -97,7 +97,7 @@ class AmazonQLspService(project: Project, private val cs: CoroutineScope) : Disp
9797
}
9898
}
9999

100-
private class AmazonQServerInstance(cs: CoroutineScope) : Disposable {
100+
private class AmazonQServerInstance(private val project: Project, private val cs: CoroutineScope) : Disposable {
101101
private val launcher: Launcher<AmazonQLanguageServer>
102102

103103
private val languageServer: AmazonQLanguageServer

0 commit comments

Comments
 (0)