feat(gpt-runner-vscode): hide file editor in vscode

This commit is contained in:
JinmingYang
2023-07-08 00:01:45 +08:00
parent 7d0b3dffd5
commit 723ffd32cc
2 changed files with 3 additions and 3 deletions

View File

@@ -119,4 +119,4 @@
"uuid": "^9.0.0",
"wait-port": "^1.0.4"
}
}
}

View File

@@ -196,7 +196,7 @@ const Chat: FC = memo(() => {
},
]
if (IS_SAFE) {
if (IS_SAFE && !getGlobalConfig().editFileInIde) {
mobileTabItems.push(
{
id: MobileTabId.FileEditor,
@@ -236,7 +236,7 @@ const Chat: FC = memo(() => {
{renderSidebar()}
</DragResizeView>
{IS_SAFE
{IS_SAFE && !getGlobalConfig().editFileInIde
? <PanelTab
items={pcTabItems}
activeId={pcTabActiveId}