Skip to content

Commit 342f2ab

Browse files
alexander-doroshkovan800
authored andcommitted
[LSP API] IJPL-157188: display LSP server error output (STDERR) if it has terminated unexpectedly
GitOrigin-RevId: e4654bb05530f918618851fdea425fd585f7148d
1 parent 7ef4280 commit 342f2ab

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

rider/src/main/kotlin/com/jetbrains/rider/plugins/godot/lang/service/GodotLspServerWidgetItem.kt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,15 @@ class GodotLspServerWidgetItem(lspServer: LspServer,
3232
LspServerState.ShutdownUnexpectedly -> GodotPluginBundle.message("language.services.widget.item.shutdown.unexpectedly", serverLabel)
3333
}
3434

35-
override fun createWidgetInlineActions(): List<AnAction> {
36-
val actions = super.createWidgetInlineActions().toMutableList()
37-
38-
if (widgetActionLocation == LanguageServicePopupSection.ForCurrentFile
39-
&& lspServer.state in arrayOf(LspServerState.ShutdownNormally, LspServerState.ShutdownUnexpectedly)) {
35+
override fun createAdditionalInlineActions(): List<AnAction> {
36+
if (widgetActionLocation == LanguageServicePopupSection.ForCurrentFile &&
37+
lspServer.state in arrayOf(LspServerState.ShutdownNormally, LspServerState.ShutdownUnexpectedly)
38+
) {
4039
val discoverer = GodotProjectDiscoverer.getInstance(lspServer.project)
4140
if (discoverer.lspConnectionMode.value == LanguageServerConnectionMode.ConnectRunningEditor)
42-
actions.add(0, StartGodotEditorActionInWidget(lspServer))
41+
return listOf(StartGodotEditorActionInWidget(lspServer))
4342
}
44-
45-
return actions
43+
return super.createAdditionalInlineActions()
4644
}
4745

4846
private class StartGodotEditorActionInWidget(

0 commit comments

Comments
 (0)