Skip to content

Commit c664353

Browse files
authored
fix: fix removeFolder exec error and delete modal style (#81)
fix removeFolder exec error and delete modal style
1 parent 9d08b87 commit c664353

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/controller/editor.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class EditorController extends Controller implements IEditorController {
4343
public updateCurrentValue = () => {
4444
const { current } = editorService.getState();
4545
const newValue = current?.tab?.data?.value;
46-
if (newValue) current?.editorInstance.setValue(newValue);
46+
if (newValue) current?.editorInstance?.setValue(newValue);
4747
};
4848
public onCloseTab = (tabKey?: string, groupId?: number) => {
4949
if (tabKey && groupId) {

src/model/workbench/explorer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const baseContextMenu = [
9090

9191
export const rootFolderContextMenu = [
9292
{
93-
id: RENAME_COMMAND_ID,
93+
id: REMOVE_COMMAND_ID,
9494
name: 'Remove Folder',
9595
},
9696
];

src/style/theme/notification.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#{$modal} {
44
background-color: var(--notification-background);
55
border-color: var(--notification-border);
6-
color: var(--notification-foreground);
6+
color: var(--button-foreground);
77

88
&-mask {
99
background-color: var(--widgetShadow);
@@ -26,7 +26,7 @@
2626

2727
&-content,
2828
&-close {
29-
color: var(--notification-foreground);
29+
color: var(--button-foreground);
3030
}
3131
}
3232

0 commit comments

Comments
 (0)