Skip to content

Commit af18d22

Browse files
committed
style: improve editor context menu style
1 parent adc2a68 commit af18d22

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core-browser/src/common/common.command.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,6 @@ export namespace EDITOR_COMMANDS {
437437
id: 'editor.splitToRight',
438438
category: CATEGORY,
439439
label: '%editor.splitToRight%',
440-
iconClass: getIcon('embed'),
441440
};
442441

443442
export const SPLIT_TO_TOP: Command = {

packages/editor/src/browser/editor.contribution.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
ServiceNames,
3636
URI,
3737
formatLocalize,
38+
getIcon,
3839
getLanguageIdFromMonaco,
3940
localize,
4041
} from '@opensumi/ide-core-browser';
@@ -61,7 +62,6 @@ import {
6162
IDocPersistentCacheProvider,
6263
IEditor,
6364
ILanguageService,
64-
IResource,
6565
IResourceOpenOptions,
6666
ResourceService,
6767
SaveReason,
@@ -1321,6 +1321,7 @@ export class EditorContribution
13211321

13221322
menus.registerMenuItem(MenuId.EditorTitle, {
13231323
command: EDITOR_COMMANDS.SPLIT_TO_RIGHT.id,
1324+
iconClass: getIcon('embed'),
13241325
group: 'navigation',
13251326
when: 'resource',
13261327
order: 5,

0 commit comments

Comments
 (0)