Skip to content

Commit b28ad10

Browse files
committed
fix(autodev-core): disable secondary tool window status
The AutoDev tool window is now opened as primary, addressing the issue where it was not fully visible when opened as a secondary window. This change ensures that the tool window is always fully accessible and usable, improving the user experience.
1 parent ce66d0a commit b28ad10

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

src/222/main/resources/META-INF/autodev-core.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
<toolWindow id="AutoDev"
4646
doNotActivateOnStart="true"
4747
anchor="right"
48-
secondary="true"
49-
canCloseContents="true"
48+
secondary="false"
5049
icon="cc.unitmesh.devti.AutoDevIcons.AI_COPILOT"
5150
factoryClass="cc.unitmesh.devti.gui.AutoDevToolWindowFactory"/>
5251

src/233/main/resources/META-INF/autodev-core.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
<toolWindow id="AutoDev"
4646
doNotActivateOnStart="true"
4747
anchor="right"
48-
secondary="true"
49-
canCloseContents="true"
48+
secondary="false"
5049
icon="cc.unitmesh.devti.AutoDevIcons.AI_COPILOT"
5150
factoryClass="cc.unitmesh.devti.gui.AutoDevToolWindowFactory"/>
5251

src/main/kotlin/cc/unitmesh/devti/gui/AutoDevToolWindowFactory.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ class AutoDevToolWindowFactory : ToolWindowFactory, DumbAware {
1919
}
2020

2121
override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) {
22-
val disposable = toolWindow.disposable
2322
val chatCodingService = ChatCodingService(ChatActionType.CHAT, project)
24-
val contentPanel = ChatCodingPanel(chatCodingService, disposable)
23+
val contentPanel = ChatCodingPanel(chatCodingService, toolWindow.disposable)
2524
val content =
2625
ContentFactory.getInstance()
2726
.createContent(contentPanel, AutoDevBundle.message("autodev.chat"), false)

src/main/kotlin/cc/unitmesh/devti/gui/toolbar/NewChatAction.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class NewChatAction : DumbAwareAction(), CustomComponentAction {
2525
init {
2626
putClientProperty("ActionToolbar.smallVariant", true)
2727
putClientProperty("customButtonInsets", JBInsets(1, 1, 1, 1).asUIResource())
28+
2829
setOpaque(false)
2930
addActionListener {
3031
val dataContext: DataContext = ActionToolbar.getDataContextFor(this)

0 commit comments

Comments
 (0)