@opensumi/ide-core-browser 2.21.13 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/application-state-service.d.ts +1 -1
- package/lib/application/application-state-service.d.ts.map +1 -1
- package/lib/application/application-state-service.js.map +1 -1
- package/lib/application/application.service.js.map +1 -1
- package/lib/authentication/authentication.contribution.js.map +1 -1
- package/lib/authentication/authentication.service.js.map +1 -1
- package/lib/bootstrap/app.d.ts +2 -35
- package/lib/bootstrap/app.d.ts.map +1 -1
- package/lib/bootstrap/app.interface.d.ts +39 -0
- package/lib/bootstrap/app.interface.d.ts.map +1 -0
- package/lib/bootstrap/app.interface.js +3 -0
- package/lib/bootstrap/app.interface.js.map +1 -0
- package/lib/bootstrap/app.js +8 -8
- package/lib/bootstrap/app.js.map +1 -1
- package/lib/bootstrap/app.view.d.ts +1 -1
- package/lib/bootstrap/app.view.d.ts.map +1 -1
- package/lib/bootstrap/connection.d.ts +1 -1
- package/lib/bootstrap/connection.d.ts.map +1 -1
- package/lib/bootstrap/connection.js +4 -4
- package/lib/bootstrap/connection.js.map +1 -1
- package/lib/bootstrap/index.d.ts +1 -1
- package/lib/bootstrap/index.d.ts.map +1 -1
- package/lib/bootstrap/index.js +1 -1
- package/lib/bootstrap/index.js.map +1 -1
- package/lib/bootstrap/inner-providers.js +1 -1
- package/lib/bootstrap/inner-providers.js.map +1 -1
- package/lib/bootstrap/lifecycle.service.js.map +1 -1
- package/lib/browser-module.js.map +1 -1
- package/lib/common/common.command.d.ts +24 -1
- package/lib/common/common.command.d.ts.map +1 -1
- package/lib/common/common.command.js +42 -6
- package/lib/common/common.command.js.map +1 -1
- package/lib/common/common.contribution.js.map +1 -1
- package/lib/common/common.module.js.map +1 -1
- package/lib/common/common.storage.js.map +1 -1
- package/lib/components/actions/index.d.ts +2 -2
- package/lib/components/actions/index.d.ts.map +1 -1
- package/lib/components/actions/index.js +2 -22
- package/lib/components/actions/index.js.map +1 -1
- package/lib/components/index.d.ts +0 -4
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +0 -4
- package/lib/components/index.js.map +1 -1
- package/lib/components/layout/box-panel.d.ts +1 -1
- package/lib/components/layout/box-panel.d.ts.map +1 -1
- package/lib/components/layout/split-panel.d.ts +17 -1
- package/lib/components/layout/split-panel.d.ts.map +1 -1
- package/lib/components/layout/split-panel.js +16 -16
- package/lib/components/layout/split-panel.js.map +1 -1
- package/lib/components/layout/split-panel.service.js.map +1 -1
- package/lib/components/progressbar/index.d.ts +2 -2
- package/lib/components/progressbar/index.d.ts.map +1 -1
- package/lib/components/progressbar/index.js +2 -10
- package/lib/components/progressbar/index.js.map +1 -1
- package/lib/contextkey/resource.d.ts +1 -1
- package/lib/contextkey/resource.d.ts.map +1 -1
- package/lib/contextkey/search.d.ts +24 -0
- package/lib/contextkey/search.d.ts.map +1 -0
- package/lib/contextkey/search.js +29 -0
- package/lib/contextkey/search.js.map +1 -0
- package/lib/contextkey/testing.d.ts +1 -0
- package/lib/contextkey/testing.d.ts.map +1 -1
- package/lib/contextkey/testing.js +2 -1
- package/lib/contextkey/testing.js.map +1 -1
- package/lib/core-preferences.d.ts +4 -3
- package/lib/core-preferences.d.ts.map +1 -1
- package/lib/core-preferences.js +2 -2
- package/lib/core-preferences.js.map +1 -1
- package/lib/dom/index.d.ts +1 -1
- package/lib/dom/index.d.ts.map +1 -1
- package/lib/encoding-registry.js.map +1 -1
- package/lib/extensions/extensions-point.service.js.map +1 -1
- package/lib/file-decoration.d.ts +10 -0
- package/lib/file-decoration.d.ts.map +1 -0
- package/lib/file-decoration.js +3 -0
- package/lib/file-decoration.js.map +1 -0
- package/lib/hash-calculate/hash-calculate.contribution.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/keybinding/keybinding.js.map +1 -1
- package/lib/keyboard/keyboard-layout-provider.d.ts +2 -2
- package/lib/keyboard/keyboard-layout-provider.d.ts.map +1 -1
- package/lib/keyboard/keyboard-layout-provider.js +13 -13
- package/lib/keyboard/keyboard-layout-provider.js.map +1 -1
- package/lib/keyboard/keyboard-layout-service.js.map +1 -1
- package/lib/keyboard/keys.d.ts +2 -2
- package/lib/keyboard/keys.d.ts.map +1 -1
- package/lib/keyboard/layouts/_.contribution.js +3 -3
- package/lib/keyboard/layouts/_.contribution.js.map +1 -1
- package/lib/layout/accordion/tab-bar-toolbar.js.map +1 -1
- package/lib/layout/accordion/view-context-key.registry.js.map +1 -1
- package/lib/layout/layout-hooks.d.ts +1 -1
- package/lib/layout/layout-hooks.d.ts.map +1 -1
- package/lib/layout/layout-state.js.map +1 -1
- package/lib/layout/layout.interface.d.ts +1 -1
- package/lib/layout/layout.interface.d.ts.map +1 -1
- package/lib/layout/layout.js.map +1 -1
- package/lib/logger/browser-logger.js.map +1 -1
- package/lib/markdown/index.d.ts +1 -1
- package/lib/markdown/index.d.ts.map +1 -1
- package/lib/markdown/index.js +4 -31
- package/lib/markdown/index.js.map +1 -1
- package/lib/menu/next/base.d.ts +4 -4
- package/lib/menu/next/base.d.ts.map +1 -1
- package/lib/menu/next/base.js.map +1 -1
- package/lib/menu/next/ctxmenu-service.js +10 -10
- package/lib/menu/next/ctxmenu-service.js.map +1 -1
- package/lib/menu/next/menu-service.js +6 -6
- package/lib/menu/next/menu-service.js.map +1 -1
- package/lib/menu/next/menu.contrib.interface.d.ts +16 -15
- package/lib/menu/next/menu.contrib.interface.d.ts.map +1 -1
- package/lib/menu/next/menu.contrib.interface.js.map +1 -1
- package/lib/menu/next/menu.interface.d.ts +2 -2
- package/lib/menu/next/menu.interface.d.ts.map +1 -1
- package/lib/menu/next/menu.interface.js.map +1 -1
- package/lib/menu/next/menubar-service.js +10 -10
- package/lib/menu/next/menubar-service.js.map +1 -1
- package/lib/menu/next/renderer/ctxmenu/browser.js.map +1 -1
- package/lib/menu/next/renderer/ctxmenu/electron.js.map +1 -1
- package/lib/menu/next/toolbar-action.service.d.ts +1 -1
- package/lib/menu/next/toolbar-action.service.d.ts.map +1 -1
- package/lib/menu/next/toolbar-action.service.js.map +1 -1
- package/lib/monaco/index.d.ts +7 -3
- package/lib/monaco/index.d.ts.map +1 -1
- package/lib/monaco/index.js.map +1 -1
- package/lib/monaco/merge-editor-widget.d.ts +53 -0
- package/lib/monaco/merge-editor-widget.d.ts.map +1 -0
- package/lib/monaco/merge-editor-widget.js +107 -0
- package/lib/monaco/merge-editor-widget.js.map +1 -0
- package/lib/opener/command-opener.js.map +1 -1
- package/lib/opener/default-opener.js.map +1 -1
- package/lib/opener/http-opener.js.map +1 -1
- package/lib/opener/opener.contribution.js.map +1 -1
- package/lib/opener/opener.service.js.map +1 -1
- package/lib/preferences/early-preferences.js +4 -4
- package/lib/preferences/early-preferences.js.map +1 -1
- package/lib/preferences/preference-configurations.js +1 -1
- package/lib/preferences/preference-configurations.js.map +1 -1
- package/lib/preferences/preference-contribution.d.ts +1 -2
- package/lib/preferences/preference-contribution.d.ts.map +1 -1
- package/lib/preferences/preference-contribution.js +26 -22
- package/lib/preferences/preference-contribution.js.map +1 -1
- package/lib/preferences/preference-provider.js.map +1 -1
- package/lib/preferences/preference-proxy.d.ts +2 -3
- package/lib/preferences/preference-proxy.d.ts.map +1 -1
- package/lib/preferences/preference-proxy.js.map +1 -1
- package/lib/preferences/preference-service.d.ts +1 -0
- package/lib/preferences/preference-service.d.ts.map +1 -1
- package/lib/preferences/preference-service.js +48 -3
- package/lib/preferences/preference-service.js.map +1 -1
- package/lib/preferences/settings.d.ts +44 -5
- package/lib/preferences/settings.d.ts.map +1 -1
- package/lib/preferences/settings.js.map +1 -1
- package/lib/preferences/types.d.ts +8 -1
- package/lib/preferences/types.d.ts.map +1 -1
- package/lib/preferences/types.js.map +1 -1
- package/lib/progress/progress-bar.d.ts +4 -1
- package/lib/progress/progress-bar.d.ts.map +1 -1
- package/lib/progress/progress-bar.js +11 -4
- package/lib/progress/progress-bar.js.map +1 -1
- package/lib/progress/progress-indicator.js.map +1 -1
- package/lib/progress/progress.service.js +6 -6
- package/lib/progress/progress.service.js.map +1 -1
- package/lib/quick-open/index.d.ts +1 -1
- package/lib/quick-open/index.d.ts.map +1 -1
- package/lib/quick-open/index.js.map +1 -1
- package/lib/quick-open/recent-files.js.map +1 -1
- package/lib/raw-context-key.d.ts +1 -1
- package/lib/raw-context-key.d.ts.map +1 -1
- package/lib/raw-context-key.js +4 -4
- package/lib/raw-context-key.js.map +1 -1
- package/lib/react-hooks/useThrottleFn/index.d.ts +13 -0
- package/lib/react-hooks/useThrottleFn/index.d.ts.map +1 -0
- package/lib/react-hooks/useThrottleFn/index.js +20 -0
- package/lib/react-hooks/useThrottleFn/index.js.map +1 -0
- package/lib/react-providers/config-provider.d.ts +6 -0
- package/lib/react-providers/config-provider.d.ts.map +1 -1
- package/lib/react-providers/config-provider.js.map +1 -1
- package/lib/react-providers/slot.d.ts +2 -2
- package/lib/react-providers/slot.d.ts.map +1 -1
- package/lib/services/clipboard.service.d.ts +1 -0
- package/lib/services/clipboard.service.d.ts.map +1 -1
- package/lib/services/clipboard.service.js +17 -30
- package/lib/services/clipboard.service.js.map +1 -1
- package/lib/services/credentials-service.js.map +1 -1
- package/lib/services/crypto-service.js.map +1 -1
- package/lib/services/external-uri.service.js.map +1 -1
- package/lib/services/label-service.js.map +1 -1
- package/lib/services/storage-service.d.ts +1 -0
- package/lib/services/storage-service.d.ts.map +1 -1
- package/lib/services/storage-service.js +13 -2
- package/lib/services/storage-service.js.map +1 -1
- package/lib/style/icon/icon.d.ts +3 -2
- package/lib/style/icon/icon.d.ts.map +1 -1
- package/lib/style/icon/icon.js +5 -1
- package/lib/style/icon/icon.js.map +1 -1
- package/lib/style/icon/ide-iconfont.d.ts +1 -1
- package/lib/style/icon/ide-iconfont.d.ts.map +1 -1
- package/lib/style/icon/ide-iconfont.js +1 -1
- package/lib/style/icon/ide-iconfont.js.map +1 -1
- package/lib/style/icon/index.less +13 -0
- package/lib/toolbar/components/button.js +12 -12
- package/lib/toolbar/components/button.js.map +1 -1
- package/lib/toolbar/toolbar.popover.registry.js.map +1 -1
- package/lib/toolbar/toolbar.registry.d.ts +1 -1
- package/lib/toolbar/toolbar.registry.d.ts.map +1 -1
- package/lib/toolbar/toolbar.registry.js.map +1 -1
- package/lib/toolbar/types.d.ts +1 -1
- package/lib/toolbar/types.d.ts.map +1 -1
- package/lib/utils/json.d.ts +5 -5
- package/lib/utils/json.d.ts.map +1 -1
- package/lib/utils/label.d.ts.map +1 -1
- package/lib/utils/label.js +16 -9
- package/lib/utils/label.js.map +1 -1
- package/lib/utils/parse.d.ts +2 -1
- package/lib/utils/parse.d.ts.map +1 -1
- package/lib/utils/parse.js +10 -1
- package/lib/utils/parse.js.map +1 -1
- package/lib/variable/variable.d.ts +1 -1
- package/lib/variable/variable.d.ts.map +1 -1
- package/lib/variable/variable.js.map +1 -1
- package/lib/window/window.service.js.map +1 -1
- package/package.json +9 -11
- package/src/application/application-state-service.ts +54 -0
- package/src/application/application.service.ts +51 -0
- package/src/application/index.ts +2 -0
- package/src/authentication/authentication.contribution.ts +35 -0
- package/src/authentication/authentication.service.ts +517 -0
- package/src/bootstrap/app.interface.ts +46 -0
- package/src/bootstrap/app.ts +710 -0
- package/src/bootstrap/app.view.tsx +88 -0
- package/src/bootstrap/connection.ts +116 -0
- package/src/bootstrap/index.ts +3 -0
- package/src/bootstrap/inner-providers.ts +297 -0
- package/src/bootstrap/lifecycle.service.ts +19 -0
- package/src/browser-module.ts +24 -0
- package/src/common/common.command.ts +1018 -0
- package/src/common/common.contribution.ts +343 -0
- package/src/common/common.define.ts +55 -0
- package/src/common/common.module.ts +33 -0
- package/src/common/common.storage.ts +22 -0
- package/src/common/container-id.ts +12 -0
- package/src/common/index.ts +4 -0
- package/src/components/actions/index.tsx +486 -0
- package/src/components/actions/placements.ts +47 -0
- package/src/components/actions/styles.module.less +144 -0
- package/src/components/badge/index.tsx +1 -0
- package/src/components/index.ts +22 -0
- package/src/components/layout/box-panel.tsx +88 -0
- package/src/components/layout/default-layout.tsx +61 -0
- package/src/components/layout/index.ts +4 -0
- package/src/components/layout/layout.ts +80 -0
- package/src/components/layout/split-panel.service.ts +56 -0
- package/src/components/layout/split-panel.tsx +315 -0
- package/src/components/layout/styles.module.less +21 -0
- package/src/components/loading/index.ts +1 -0
- package/src/components/loading/loading.less +14 -0
- package/src/components/loading/loading.view.tsx +7 -0
- package/src/components/loading/media/loading-dark.svg +52 -0
- package/src/components/loading/media/loading-hc.svg +52 -0
- package/src/components/loading/media/loading.svg +52 -0
- package/src/components/popover/styles.module.less +81 -0
- package/src/components/portal/index.tsx +13 -0
- package/src/components/progressbar/index.tsx +3 -0
- package/src/components/resize/resize.module.less +78 -0
- package/src/components/resize/resize.tsx +663 -0
- package/src/components/select/index.tsx +12 -0
- package/src/components/select/styles.less +6 -0
- package/src/context-key.ts +48 -0
- package/src/contextkey/dialog.ts +3 -0
- package/src/contextkey/explorer.ts +26 -0
- package/src/contextkey/index.ts +6 -0
- package/src/contextkey/outline.ts +4 -0
- package/src/contextkey/resource.ts +61 -0
- package/src/contextkey/search.ts +30 -0
- package/src/contextkey/terminal.ts +7 -0
- package/src/contextkey/testing.ts +9 -0
- package/src/contextkey/workspace.ts +7 -0
- package/src/core-preferences.ts +318 -0
- package/src/dom/index.ts +176 -0
- package/src/encoding-registry.ts +83 -0
- package/src/extensions/extensions-point.service.ts +78 -0
- package/src/extensions/index.ts +3 -0
- package/src/extensions/schema/browserViews.ts +96 -0
- package/src/extensions/schema/menu.ts +245 -0
- package/src/extensions/schema/opensumiExtensionPackageSchema.ts +12 -0
- package/src/extensions/schema/toolbar.ts +338 -0
- package/src/extensions/schema/vscodeExtensionPackageSchema.ts +330 -0
- package/src/file-decoration.ts +10 -0
- package/src/fs/index.ts +12 -0
- package/src/hash-calculate/hash-calculate.contribution.ts +19 -0
- package/src/index.ts +42 -0
- package/src/keybinding/index.ts +1 -0
- package/src/keybinding/keybinding.ts +908 -0
- package/src/keyboard/index.ts +3 -0
- package/src/keyboard/keyboard-layout-provider.ts +412 -0
- package/src/keyboard/keyboard-layout-service.ts +449 -0
- package/src/keyboard/keys.ts +748 -0
- package/src/keyboard/layouts/_.contribution.ts +24 -0
- package/src/keyboard/layouts/cz.win.ts +168 -0
- package/src/keyboard/layouts/de-swiss.win.ts +168 -0
- package/src/keyboard/layouts/de.darwin.ts +131 -0
- package/src/keyboard/layouts/de.linux.ts +186 -0
- package/src/keyboard/layouts/de.win.ts +168 -0
- package/src/keyboard/layouts/dk.win.ts +168 -0
- package/src/keyboard/layouts/dvorak.darwin.ts +131 -0
- package/src/keyboard/layouts/en-belgian.win.ts +168 -0
- package/src/keyboard/layouts/en-ext.darwin.ts +131 -0
- package/src/keyboard/layouts/en-in.win.ts +168 -0
- package/src/keyboard/layouts/en-intl.darwin.ts +131 -0
- package/src/keyboard/layouts/en-intl.win.ts +168 -0
- package/src/keyboard/layouts/en-uk.darwin.ts +131 -0
- package/src/keyboard/layouts/en-uk.win.ts +168 -0
- package/src/keyboard/layouts/en.darwin.ts +139 -0
- package/src/keyboard/layouts/en.linux.ts +186 -0
- package/src/keyboard/layouts/en.win.ts +173 -0
- package/src/keyboard/layouts/es-latin.win.ts +168 -0
- package/src/keyboard/layouts/es.darwin.ts +131 -0
- package/src/keyboard/layouts/es.linux.ts +186 -0
- package/src/keyboard/layouts/es.win.ts +168 -0
- package/src/keyboard/layouts/fr.darwin.ts +131 -0
- package/src/keyboard/layouts/fr.linux.ts +186 -0
- package/src/keyboard/layouts/fr.win.ts +168 -0
- package/src/keyboard/layouts/hu.win.ts +168 -0
- package/src/keyboard/layouts/it.darwin.ts +131 -0
- package/src/keyboard/layouts/it.win.ts +168 -0
- package/src/keyboard/layouts/jp-roman.darwin.ts +131 -0
- package/src/keyboard/layouts/jp.darwin.ts +131 -0
- package/src/keyboard/layouts/ko.darwin.ts +131 -0
- package/src/keyboard/layouts/layout.contribution.darwin.ts +23 -0
- package/src/keyboard/layouts/layout.contribution.linux.ts +12 -0
- package/src/keyboard/layouts/layout.contribution.ts +9 -0
- package/src/keyboard/layouts/layout.contribution.win.ts +29 -0
- package/src/keyboard/layouts/no.win.ts +168 -0
- package/src/keyboard/layouts/pl.darwin.ts +131 -0
- package/src/keyboard/layouts/pl.win.ts +168 -0
- package/src/keyboard/layouts/pt-br.win.ts +169 -0
- package/src/keyboard/layouts/pt.darwin.ts +131 -0
- package/src/keyboard/layouts/pt.win.ts +168 -0
- package/src/keyboard/layouts/ru.darwin.ts +131 -0
- package/src/keyboard/layouts/ru.linux.ts +186 -0
- package/src/keyboard/layouts/ru.win.ts +168 -0
- package/src/keyboard/layouts/sv.darwin.ts +131 -0
- package/src/keyboard/layouts/sv.win.ts +168 -0
- package/src/keyboard/layouts/thai.win.ts +168 -0
- package/src/keyboard/layouts/tr.win.ts +168 -0
- package/src/keyboard/layouts/zh-hans.darwin.ts +131 -0
- package/src/layout/accordion/tab-bar-toolbar.tsx +59 -0
- package/src/layout/accordion/view-context-key.registry.ts +34 -0
- package/src/layout/constants.ts +7 -0
- package/src/layout/index.ts +5 -0
- package/src/layout/layout-hooks.ts +70 -0
- package/src/layout/layout-state.ts +107 -0
- package/src/layout/layout.interface.ts +101 -0
- package/src/layout/layout.ts +80 -0
- package/src/layout/view-id.ts +18 -0
- package/src/logger/browser-logger.ts +51 -0
- package/src/logger/index.ts +1 -0
- package/src/markdown/index.tsx +30 -0
- package/src/menu/next/base.ts +513 -0
- package/src/menu/next/ctxmenu-service.ts +188 -0
- package/src/menu/next/index.ts +10 -0
- package/src/menu/next/menu-id.ts +86 -0
- package/src/menu/next/menu-service.ts +252 -0
- package/src/menu/next/menu-util.ts +77 -0
- package/src/menu/next/menu.contrib.interface.ts +79 -0
- package/src/menu/next/menu.interface.ts +253 -0
- package/src/menu/next/menubar-service.ts +211 -0
- package/src/menu/next/renderer/ctxmenu/base.ts +18 -0
- package/src/menu/next/renderer/ctxmenu/browser.ts +45 -0
- package/src/menu/next/renderer/ctxmenu/electron.ts +207 -0
- package/src/menu/next/toolbar-action.service.ts +132 -0
- package/src/monaco/index.ts +136 -0
- package/src/monaco/merge-editor-widget.ts +159 -0
- package/src/opener/command-opener.ts +42 -0
- package/src/opener/default-opener.ts +31 -0
- package/src/opener/http-opener.ts +25 -0
- package/src/opener/index.ts +19 -0
- package/src/opener/opener.contribution.ts +57 -0
- package/src/opener/opener.service.ts +66 -0
- package/src/preferences/early-preferences.ts +117 -0
- package/src/preferences/index.ts +9 -0
- package/src/preferences/preference-configurations.ts +77 -0
- package/src/preferences/preference-contribution.ts +397 -0
- package/src/preferences/preference-provider.ts +414 -0
- package/src/preferences/preference-proxy.ts +291 -0
- package/src/preferences/preference-scope.ts +3 -0
- package/src/preferences/preference-service.ts +621 -0
- package/src/preferences/settings.ts +90 -0
- package/src/preferences/types.ts +119 -0
- package/src/progress/index.ts +58 -0
- package/src/progress/progress-bar.tsx +34 -0
- package/src/progress/progress-indicator.ts +90 -0
- package/src/progress/progress.module.less +46 -0
- package/src/progress/progress.service.tsx +429 -0
- package/src/quick-open/index.ts +655 -0
- package/src/quick-open/recent-files.ts +68 -0
- package/src/raw-context-key.ts +116 -0
- package/src/react-hooks/event.tsx +80 -0
- package/src/react-hooks/hot-key.tsx +58 -0
- package/src/react-hooks/index.ts +3 -0
- package/src/react-hooks/injectable-hooks.tsx +35 -0
- package/src/react-hooks/portal-hooks.tsx +38 -0
- package/src/react-hooks/useThrottleFn/index.ts +34 -0
- package/src/react-providers/config-provider.tsx +269 -0
- package/src/react-providers/index.tsx +2 -0
- package/src/react-providers/slot.module.less +19 -0
- package/src/react-providers/slot.tsx +242 -0
- package/src/services/clipboard.service.ts +92 -0
- package/src/services/credentials-service.ts +91 -0
- package/src/services/crypto-service.ts +23 -0
- package/src/services/external-uri.service.ts +68 -0
- package/src/services/index.ts +7 -0
- package/src/services/label-service.ts +386 -0
- package/src/services/status-bar-service.ts +108 -0
- package/src/services/storage-service.ts +201 -0
- package/src/style/codicons/README.md +22 -0
- package/src/style/codicons/codicon-animations.css +15 -0
- package/src/style/codicons/generator.js +15 -0
- package/src/style/entry.less +25 -0
- package/src/style/icon/fileicons/file-default.svg +1 -0
- package/src/style/icon/fileicons/folder-default.svg +1 -0
- package/src/style/icon/fileicons.less +20 -0
- package/src/style/icon/icon.ts +547 -0
- package/src/style/icon/ide-iconfont.ts +13 -0
- package/src/style/icon/index.less +67 -0
- package/src/style/icon/seti.woff +0 -0
- package/src/style/icon/symbol-icons/boolean-dark.svg +3 -0
- package/src/style/icon/symbol-icons/boolean-light.svg +3 -0
- package/src/style/icon/symbol-icons/class-dark.svg +3 -0
- package/src/style/icon/symbol-icons/class-light.svg +3 -0
- package/src/style/icon/symbol-icons/constant-dark.svg +4 -0
- package/src/style/icon/symbol-icons/constant-light.svg +4 -0
- package/src/style/icon/symbol-icons/enumerator-dark.svg +3 -0
- package/src/style/icon/symbol-icons/enumerator-item-dark.svg +3 -0
- package/src/style/icon/symbol-icons/enumerator-item-light.svg +3 -0
- package/src/style/icon/symbol-icons/enumerator-light.svg +3 -0
- package/src/style/icon/symbol-icons/event-dark.svg +3 -0
- package/src/style/icon/symbol-icons/event-light.svg +3 -0
- package/src/style/icon/symbol-icons/field-dark.svg +3 -0
- package/src/style/icon/symbol-icons/field-light.svg +3 -0
- package/src/style/icon/symbol-icons/file-dark.svg +3 -0
- package/src/style/icon/symbol-icons/file-light.svg +3 -0
- package/src/style/icon/symbol-icons/indexer-dark.svg +3 -0
- package/src/style/icon/symbol-icons/indexer-light.svg +3 -0
- package/src/style/icon/symbol-icons/interface-dark.svg +3 -0
- package/src/style/icon/symbol-icons/interface-light.svg +3 -0
- package/src/style/icon/symbol-icons/keyword-dark.svg +3 -0
- package/src/style/icon/symbol-icons/keyword-light.svg +3 -0
- package/src/style/icon/symbol-icons/method-dark.svg +3 -0
- package/src/style/icon/symbol-icons/method-light.svg +3 -0
- package/src/style/icon/symbol-icons/namespace-dark.svg +3 -0
- package/src/style/icon/symbol-icons/namespace-light.svg +3 -0
- package/src/style/icon/symbol-icons/numeric-dark.svg +3 -0
- package/src/style/icon/symbol-icons/numeric-light.svg +3 -0
- package/src/style/icon/symbol-icons/operator-dark.svg +3 -0
- package/src/style/icon/symbol-icons/operator-light.svg +3 -0
- package/src/style/icon/symbol-icons/property-dark.svg +3 -0
- package/src/style/icon/symbol-icons/property-light.svg +3 -0
- package/src/style/icon/symbol-icons/snippet-dark.svg +3 -0
- package/src/style/icon/symbol-icons/snippet-light.svg +3 -0
- package/src/style/icon/symbol-icons/string-dark.svg +3 -0
- package/src/style/icon/symbol-icons/string-light.svg +3 -0
- package/src/style/icon/symbol-icons/structure-dark.svg +3 -0
- package/src/style/icon/symbol-icons/structure-light.svg +3 -0
- package/src/style/icon/symbol-icons/symbol-icons.css +284 -0
- package/src/style/icon/symbol-icons/template-dark.svg +3 -0
- package/src/style/icon/symbol-icons/template-light.svg +3 -0
- package/src/style/icon/symbol-icons/variable-dark.svg +3 -0
- package/src/style/icon/symbol-icons/variable-light.svg +3 -0
- package/src/style/icon.less +8 -0
- package/src/style/index.less +14 -0
- package/src/style/monaco-override.less +116 -0
- package/src/style/normalize.less +92 -0
- package/src/style/octicons/octicons-cdn.css +720 -0
- package/src/style/octicons/octicons.css +714 -0
- package/src/style/octicons/octicons.html +1882 -0
- package/src/style/octicons/octicons.svg +582 -0
- package/src/style/octicons/octicons.ttf +0 -0
- package/src/style/override.less +97 -0
- package/src/style/toolbar.less +199 -0
- package/src/style/utilities.less +8 -0
- package/src/style/variable.less +8 -0
- package/src/terminal/index.ts +7 -0
- package/src/toolbar/components/auto-complete.tsx +0 -0
- package/src/toolbar/components/button.tsx +440 -0
- package/src/toolbar/components/index.ts +2 -0
- package/src/toolbar/components/select.tsx +189 -0
- package/src/toolbar/index.ts +3 -0
- package/src/toolbar/toolbar.popover.registry.ts +32 -0
- package/src/toolbar/toolbar.registry.ts +352 -0
- package/src/toolbar/toolbar.tsx +710 -0
- package/src/toolbar/types.ts +383 -0
- package/src/utils/create-overlay.tsx +53 -0
- package/src/utils/electron.ts +92 -0
- package/src/utils/env.ts +26 -0
- package/src/utils/icon.ts +13 -0
- package/src/utils/index.ts +7 -0
- package/src/utils/json.ts +251 -0
- package/src/utils/label.tsx +36 -0
- package/src/utils/parse.ts +82 -0
- package/src/utils/react-hooks.ts +118 -0
- package/src/variable/index.ts +1 -0
- package/src/variable/variable.ts +84 -0
- package/src/window/index.ts +34 -0
- package/src/window/window.service.ts +100 -0
- package/lib/components/progressbar/styles.module.less +0 -31
- package/lib/components/recycle-tree/index.d.ts +0 -2
- package/lib/components/recycle-tree/index.d.ts.map +0 -1
- package/lib/components/recycle-tree/index.js +0 -5
- package/lib/components/recycle-tree/index.js.map +0 -1
- package/lib/components/recycle-tree/recycle-tree.view.d.ts +0 -82
- package/lib/components/recycle-tree/recycle-tree.view.d.ts.map +0 -1
- package/lib/components/recycle-tree/recycle-tree.view.js +0 -188
- package/lib/components/recycle-tree/recycle-tree.view.js.map +0 -1
- package/lib/components/scroll/index.d.ts +0 -68
- package/lib/components/scroll/index.d.ts.map +0 -1
- package/lib/components/scroll/index.js +0 -279
- package/lib/components/scroll/index.js.map +0 -1
- package/lib/components/scroll/scroll.module.less +0 -108
- package/lib/components/scrollbar/index.d.ts +0 -2
- package/lib/components/scrollbar/index.d.ts.map +0 -1
- package/lib/components/scrollbar/index.js +0 -5
- package/lib/components/scrollbar/index.js.map +0 -1
- package/lib/components/scrollbar/scrollbar.less +0 -36
- package/lib/components/scrollbar/scrollbar.view.d.ts +0 -7
- package/lib/components/scrollbar/scrollbar.view.d.ts.map +0 -1
- package/lib/components/scrollbar/scrollbar.view.js +0 -11
- package/lib/components/scrollbar/scrollbar.view.js.map +0 -1
- package/lib/components/tree/index.d.ts +0 -4
- package/lib/components/tree/index.d.ts.map +0 -1
- package/lib/components/tree/index.js +0 -7
- package/lib/components/tree/index.js.map +0 -1
- package/lib/components/tree/tree-node.view.d.ts +0 -26
- package/lib/components/tree/tree-node.view.d.ts.map +0 -1
- package/lib/components/tree/tree-node.view.js +0 -350
- package/lib/components/tree/tree-node.view.js.map +0 -1
- package/lib/components/tree/tree.module.less +0 -296
- package/lib/components/tree/tree.view.d.ts +0 -132
- package/lib/components/tree/tree.view.d.ts.map +0 -1
- package/lib/components/tree/tree.view.js +0 -238
- package/lib/components/tree/tree.view.js.map +0 -1
- package/lib/tree/index.d.ts +0 -4
- package/lib/tree/index.d.ts.map +0 -1
- package/lib/tree/index.js +0 -7
- package/lib/tree/index.js.map +0 -1
- package/lib/tree/tree-expansion.d.ts +0 -16
- package/lib/tree/tree-expansion.d.ts.map +0 -1
- package/lib/tree/tree-expansion.js +0 -20
- package/lib/tree/tree-expansion.js.map +0 -1
- package/lib/tree/tree-selection.d.ts +0 -48
- package/lib/tree/tree-selection.d.ts.map +0 -1
- package/lib/tree/tree-selection.js +0 -64
- package/lib/tree/tree-selection.js.map +0 -1
- package/lib/tree/tree.d.ts +0 -195
- package/lib/tree/tree.d.ts.map +0 -1
- package/lib/tree/tree.js +0 -108
- package/lib/tree/tree.js.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from https://github.com/microsoft/vscode-codicons current version 0.0.12,为了 package.json 版本和 cdn 版本一致,package.json 需锁版本,手动更新版本图标预览 https://microsoft.github.io/vscode-codicons/dist/codicon.html
|
|
2
|
+
|
|
3
|
+
目前 vscode 已经移除 octicons,opensumi 中还暂时保留,并且优先取 codicons,没有再去 octicon 长期看 codicons 是趋势,以支持 [product-icon-theme](https://code.visualstudio.com/api/extension-guides/product-icon-theme)
|
|
4
|
+
|
|
5
|
+
所有的 icon id 的列表如下,用 Run Code 插件运行 js 代码自动提取 <codicon> ['add', 'plus', 'gist-new', 'repo-create', 'lightbulb', 'light-bulb', 'repo', 'repo-delete', 'gist-fork', 'repo-forked', 'git-pull-request', 'git-pull-request-abandoned', 'record-keys', 'keyboard', 'tag', 'tag-add', 'tag-remove', 'person', 'person-follow', 'person-outline', 'person-filled', 'git-branch', 'git-branch-create', 'git-branch-delete', 'source-control', 'mirror', 'mirror-public', 'star', 'star-add', 'star-delete', 'star-empty', 'comment', 'comment-add', 'alert', 'warning', 'search', 'search-save', 'log-out', 'sign-out', 'log-in', 'sign-in', 'eye', 'eye-unwatch', 'eye-watch', 'circle-filled', 'primitive-dot', 'close-dirty', 'debug-breakpoint', 'debug-breakpoint-disabled', 'debug-hint', 'primitive-square', 'edit', 'pencil', 'info', 'issue-opened', 'gist-private', 'git-fork-private', 'lock', 'mirror-private', 'close', 'remove-close', 'x', 'repo-sync', 'sync', 'clone', 'desktop-download', 'beaker', 'microscope', 'vm', 'device-desktop', 'file', 'file-text', 'more', 'ellipsis', 'kebab-horizontal', 'mail-reply', 'reply', 'organization', 'organization-filled', 'organization-outline', 'new-file', 'file-add', 'new-folder', 'file-directory-create', 'trash', 'trashcan', 'history', 'clock', 'folder', 'file-directory', 'symbol-folder', 'logo-github', 'mark-github', 'github', 'terminal', 'console', 'repl', 'zap', 'symbol-event', 'error', 'stop', 'variable', 'symbol-variable', 'array', 'symbol-array', 'symbol-module', 'symbol-package', 'symbol-namespace', 'symbol-object', 'symbol-method', 'symbol-function', 'symbol-constructor', 'symbol-boolean', 'symbol-null', 'symbol-numeric', 'symbol-number', 'symbol-structure', 'symbol-struct', 'symbol-parameter', 'symbol-type-parameter', 'symbol-key', 'symbol-text', 'symbol-reference', 'go-to-file', 'symbol-enum', 'symbol-value', 'symbol-ruler', 'symbol-unit', 'activate-breakpoints', 'archive', 'arrow-both', 'arrow-down', 'arrow-left', 'arrow-right', 'arrow-small-down', 'arrow-small-left', 'arrow-small-right', 'arrow-small-up', 'arrow-up', 'bell', 'bold', 'book', 'bookmark', 'debug-breakpoint-conditional-unverified', 'debug-breakpoint-conditional', 'debug-breakpoint-conditional-disabled', 'debug-breakpoint-data-unverified', 'debug-breakpoint-data', 'debug-breakpoint-data-disabled', 'debug-breakpoint-log-unverified', 'debug-breakpoint-log', 'debug-breakpoint-log-disabled', 'briefcase', 'broadcast', 'browser', 'bug', 'calendar', 'case-sensitive', 'check', 'checklist', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'chrome-close', 'chrome-maximize', 'chrome-minimize', 'chrome-restore', 'circle-outline', 'debug-breakpoint-unverified', 'circle-slash', 'circuit-board', 'clear-all', 'clippy', 'close-all', 'cloud-download', 'cloud-upload', 'code', 'collapse-all', 'color-mode', 'comment-discussion', 'credit-card', 'dash', 'dashboard', 'database', 'debug-continue', 'debug-disconnect', 'debug-pause', 'debug-restart', 'debug-start', 'debug-step-into', 'debug-step-out', 'debug-step-over', 'debug-stop', 'debug', 'device-camera-video', 'device-camera', 'device-mobile', 'diff-added', 'diff-ignored', 'diff-modified', 'diff-removed', 'diff-renamed', 'diff', 'discard', 'editor-layout', 'empty-window', 'exclude', 'extensions', 'eye-closed', 'file-binary', 'file-code', 'file-media', 'file-pdf', 'file-submodule', 'file-symlink-directory', 'file-symlink-file', 'file-zip', 'files', 'filter', 'flame', 'fold-down', 'fold-up', 'fold', 'folder-active', 'folder-opened', 'gear', 'gift', 'gist-secret', 'gist', 'git-commit', 'git-compare', 'compare-changes', 'git-merge', 'github-action', 'github-alt', 'globe', 'grabber', 'graph', 'gripper', 'heart', 'home', 'horizontal-rule', 'hubot', 'inbox', 'issue-reopened', 'issues', 'italic', 'jersey', 'json', 'kebab-vertical', 'key', 'law', 'lightbulb-autofix', 'link-external', 'link', 'list-ordered', 'list-unordered', 'live-share', 'loading', 'location', 'mail-read', 'mail', 'markdown', 'megaphone', 'mention', 'milestone', 'mortar-board', 'move', 'multiple-windows', 'mute', 'no-newline', 'note', 'octoface', 'open-preview', 'package', 'paintcan', 'pin', 'play', 'run', 'plug', 'preserve-case', 'preview', 'project', 'pulse', 'question', 'quote', 'radio-tower', 'reactions', 'references', 'refresh', 'regex', 'remote-explorer', 'remote', 'remove', 'replace-all', 'replace', 'repo-clone', 'repo-force-push', 'repo-pull', 'repo-push', 'report', 'request-changes', 'rocket', 'root-folder-opened', 'root-folder', 'rss', 'ruby', 'save-all', 'save-as', 'save', 'screen-full', 'screen-normal', 'search-stop', 'server', 'settings-gear', 'settings', 'shield', 'smiley', 'sort-precedence', 'split-horizontal', 'split-vertical', 'squirrel', 'star-full', 'star-half', 'symbol-class', 'symbol-color', 'symbol-constant', 'symbol-enum-member', 'symbol-field', 'symbol-file', 'symbol-interface', 'symbol-keyword', 'symbol-misc', 'symbol-operator', 'symbol-property', 'wrench', 'wrench-subaction', 'symbol-snippet', 'tasklist', 'telescope', 'text-size', 'three-bars', 'thumbsdown', 'thumbsup', 'tools', 'triangle-down', 'triangle-left', 'triangle-right', 'triangle-up', 'twitter', 'unfold', 'unlock', 'unmute', 'unverified', 'verified', 'versions', 'vm-active', 'vm-outline', 'vm-running', 'watch', 'whitespace', 'whole-word', 'window', 'word-wrap', 'zoom-in', 'zoom-out', 'list-filter', 'list-flat', 'list-selection', 'selection', 'list-tree', 'debug-breakpoint-function-unverified', 'debug-breakpoint-function', 'debug-breakpoint-function-disabled', 'debug-stackframe-active', 'debug-stackframe-dot', 'debug-stackframe', 'debug-stackframe-focused', 'debug-breakpoint-unsupported', 'symbol-string', 'debug-reverse-continue', 'debug-step-back', 'debug-restart-frame', 'debug-alt', 'call-incoming', 'call-outgoing', 'menu', 'expand-all', 'feedback', 'group-by-ref-type', 'ungroup-by-ref-type', 'account', 'bell-dot', 'debug-console', 'library', 'output', 'run-all', 'sync-ignored', 'pinned', 'github-inverted', 'server-process', 'server-environment', 'pass', 'issue-closed', 'stop-circle', 'play-circle', 'record', 'debug-alt-small', 'vm-connect', 'cloud', 'merge', 'export', 'graph-left', 'magnet', 'notebook', 'redo', 'check-all', 'pinned-dirty', 'pass-filled', 'circle-large-filled', 'circle-large-outline', 'combine', 'gather', 'table', 'variable-group', 'type-hierarchy', 'type-hierarchy-sub', 'type-hierarchy-super', 'git-pull-request-create', 'run-above', 'run-below', 'notebook-template', 'debug-rerun', 'workspace-trusted', 'workspace-untrusted', 'workspace-unknown', 'terminal-cmd', 'terminal-debian', 'terminal-linux', 'terminal-powershell', 'terminal-tmux', 'terminal-ubuntu', 'terminal-bash', 'arrow-swap', 'copy', 'person-add', 'filter-filled', 'wand', 'debug-line-by-line', 'inspect', 'layers', 'layers-dot', 'layers-active', 'compass', 'compass-dot', 'compass-active', 'azure', 'issue-draft', 'git-pull-request-closed', 'git-pull-request-draft', 'debug-all', 'debug-coverage', 'run-errors', 'folder-library', 'debug-continue-small', 'beaker-stop', 'graph-line', 'graph-scatter', 'pie-chart', 'bracket', 'bracket-dot', 'bracket-error', 'lock-small', 'azure-devops', 'verified-filled', 'newline', 'layout'] </codicon>
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
const fs = require('fs');
|
|
9
|
+
const path = require('path');
|
|
10
|
+
const pkg = require.resolve('vscode-codicons/package.json');
|
|
11
|
+
const cssFile = path.join(pkg, '../dist/codicon.css');
|
|
12
|
+
const cssContent = fs.readFileSync(cssFile, 'utf8');
|
|
13
|
+
const nameIt = cssContent.matchAll(/\.codicon-(?<name>[\w-]+)+:before\s*{.+}/g);
|
|
14
|
+
const formattedName = JSON.stringify([...nameIt].map((item) => item.groups.name))
|
|
15
|
+
.replace(/"/g, "'")
|
|
16
|
+
.replace(/,/g, '$& ');
|
|
17
|
+
console.log(formattedName);
|
|
18
|
+
const curFile = path.join(__dirname, 'README.md');
|
|
19
|
+
let curFileContent = fs.readFileSync(curFile, 'utf8');
|
|
20
|
+
curFileContent = curFileContent.replace(/(<codicon>)([\s\S]+)(<\/codicon>)/, `$1\n${formattedName}\n$3`);
|
|
21
|
+
fs.writeFileSync(path.join(__dirname, 'README.md'), curFileContent);
|
|
22
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
@keyframes codicon-spin {
|
|
7
|
+
100% {
|
|
8
|
+
transform: rotate(360deg);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.codicon-animation-spin {
|
|
13
|
+
/* Use steps to throttle FPS to reduce CPU usage */
|
|
14
|
+
animation: codicon-spin 1.5s steps(30) infinite;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const pkg = require.resolve('@vscode/codicons/package.json');
|
|
4
|
+
const cssFile = path.join(pkg, '../dist/codicon.css');
|
|
5
|
+
const cssContent = fs.readFileSync(cssFile, 'utf8');
|
|
6
|
+
const nameIt = cssContent.matchAll(/\.codicon-(?<name>[\w-]+)+:before\s*{.+}/g);
|
|
7
|
+
const formattedName = JSON.stringify([...nameIt].map((item) => item.groups.name))
|
|
8
|
+
.replace(/"/g, "'")
|
|
9
|
+
.replace(/,/g, '$& ');
|
|
10
|
+
// eslint-disable-next-line no-console
|
|
11
|
+
console.log(formattedName);
|
|
12
|
+
const curFile = path.join(__dirname, 'README.md');
|
|
13
|
+
let curFileContent = fs.readFileSync(curFile, 'utf8');
|
|
14
|
+
curFileContent = curFileContent.replace(/(<codicon>)([\s\S]+)(<\/codicon>)/, `$1\n${formattedName}\n$3`);
|
|
15
|
+
fs.writeFileSync(path.join(__dirname, 'README.md'), curFileContent);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 样式入口,重要事情说三遍
|
|
3
|
+
* 请不要在这个文件直接添加样式内容
|
|
4
|
+
* 请不要在这个文件直接添加样式内容
|
|
5
|
+
* 请不要在这个文件直接添加样式内容
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@import '~@opensumi/ide-components/lib/style/base.less';
|
|
9
|
+
@import './variable.less';
|
|
10
|
+
|
|
11
|
+
@import './icon/index.less';
|
|
12
|
+
|
|
13
|
+
@import './override.less';
|
|
14
|
+
@import './monaco-override.less';
|
|
15
|
+
|
|
16
|
+
@import './utilities.less';
|
|
17
|
+
|
|
18
|
+
@import './toolbar.less';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 样式入口,重要事情说三遍
|
|
22
|
+
* 请不要在这个文件直接添加样式内容
|
|
23
|
+
* 请不要在这个文件直接添加样式内容
|
|
24
|
+
* 请不要在这个文件直接添加样式内容
|
|
25
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1577347211912" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8639" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M550 192a8 8 0 0 1 8 8v232.325l201.2-116.162a8 8 0 0 1 10.928 2.928l38 65.818a8 8 0 0 1-2.928 10.928L604 512l201.2 116.163a8 8 0 0 1 3.056 10.697l-0.128 0.231-38 65.818a8 8 0 0 1-10.928 2.928L558 591.674V824a8 8 0 0 1-8 8h-76a8 8 0 0 1-8-8V591.674L264.8 707.837a8 8 0 0 1-10.928-2.928l-38-65.818a8 8 0 0 1 2.928-10.928L420 511.999 218.8 395.837a8 8 0 0 1-3.056-10.697l0.128-0.231 38-65.818a8 8 0 0 1 10.928-2.928L466 432.325V200a8 8 0 0 1 8-8h76z" p-id="8640"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1577347219862" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8759" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M350.938 158c2.003 0 4.005 0.802 5.507 2.205l117.456 112.452h408.477c17.724 0 32.043 14.333 32.043 32.072L914.42 384h-72.095v-39.18H444.963L325.204 230.161h-188.75v529.676L448 759.837V832H96.4c-17.546 0-31.755-14.047-32.038-31.54l-0.004-0.532V190.072C64.358 172.332 78.677 158 96.4 158z" p-id="8760"></path><path d="M771.991 416a8 8 0 0 1 8 8v161.646l139.99-80.823a8 8 0 0 1 10.928 2.928l28 48.498a8 8 0 0 1-2.928 10.928l-139.992 80.822 139.992 80.824a8 8 0 0 1 3.056 10.697l-0.128 0.231-28 48.498a8 8 0 0 1-10.697 3.056l-0.231-0.128-139.99-80.824V872a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8V710.353l-139.99 80.824a8 8 0 0 1-10.928-2.928l-28-48.498a8 8 0 0 1 2.928-10.928L671.991 648l-139.99-80.822a8 8 0 0 1-3.056-10.697l0.128-0.231 28-48.498a8 8 0 0 1 10.698-3.056l0.23 0.128 139.99 80.823V424a8 8 0 0 1 8-8h56z" p-id="8761"></path></svg>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.default-file-icons.show-file-icons {
|
|
2
|
+
.folder-icon::before,
|
|
3
|
+
.rootfolder-icon::before {
|
|
4
|
+
content: ' ';
|
|
5
|
+
mask: data-uri('./fileicons/folder-default.svg') no-repeat 0 0;
|
|
6
|
+
mask-size: 14px;
|
|
7
|
+
background-color: var(--foreground);
|
|
8
|
+
}
|
|
9
|
+
.file-icon::before {
|
|
10
|
+
content: ' ';
|
|
11
|
+
mask: data-uri('./fileicons/file-default.svg') no-repeat 0 0;
|
|
12
|
+
mask-size: 14px;
|
|
13
|
+
background-color: var(--foreground);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.file-icon,
|
|
17
|
+
.folder-icon,
|
|
18
|
+
.symbol-icon {
|
|
19
|
+
display: flex;
|
|
20
|
+
}
|
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
import { SymbolKind as SymbolKindEnum } from '@opensumi/monaco-editor-core/esm/vs/editor/common/languages';
|
|
2
|
+
|
|
3
|
+
import { IDE_ICONFONT_CN_CSS, IDE_OCTICONS_CN_CSS, IDE_CODICONS_CN_CSS } from './ide-iconfont';
|
|
4
|
+
|
|
5
|
+
export { updateIconMap, getIcon } from '@opensumi/ide-components/lib/icon/util';
|
|
6
|
+
|
|
7
|
+
export const DEFAULT_CDN_ICON = IDE_ICONFONT_CN_CSS;
|
|
8
|
+
export { IDE_OCTICONS_CN_CSS, IDE_CODICONS_CN_CSS };
|
|
9
|
+
|
|
10
|
+
export function getOctIcon(iconKey: string) {
|
|
11
|
+
return `octicon octicon-${iconKey}`;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const CODICON_OWNER = 'codicon';
|
|
15
|
+
export const KTICON_OWNER = 'kticon';
|
|
16
|
+
|
|
17
|
+
const codIconId = [
|
|
18
|
+
'add',
|
|
19
|
+
'plus',
|
|
20
|
+
'gist-new',
|
|
21
|
+
'repo-create',
|
|
22
|
+
'lightbulb',
|
|
23
|
+
'light-bulb',
|
|
24
|
+
'repo',
|
|
25
|
+
'repo-delete',
|
|
26
|
+
'gist-fork',
|
|
27
|
+
'repo-forked',
|
|
28
|
+
'git-pull-request',
|
|
29
|
+
'git-pull-request-abandoned',
|
|
30
|
+
'record-keys',
|
|
31
|
+
'keyboard',
|
|
32
|
+
'tag',
|
|
33
|
+
'tag-add',
|
|
34
|
+
'tag-remove',
|
|
35
|
+
'person',
|
|
36
|
+
'person-follow',
|
|
37
|
+
'person-outline',
|
|
38
|
+
'person-filled',
|
|
39
|
+
'git-branch',
|
|
40
|
+
'git-branch-create',
|
|
41
|
+
'git-branch-delete',
|
|
42
|
+
'source-control',
|
|
43
|
+
'mirror',
|
|
44
|
+
'mirror-public',
|
|
45
|
+
'star',
|
|
46
|
+
'star-add',
|
|
47
|
+
'star-delete',
|
|
48
|
+
'star-empty',
|
|
49
|
+
'comment',
|
|
50
|
+
'comment-add',
|
|
51
|
+
'alert',
|
|
52
|
+
'warning',
|
|
53
|
+
'search',
|
|
54
|
+
'search-save',
|
|
55
|
+
'log-out',
|
|
56
|
+
'sign-out',
|
|
57
|
+
'log-in',
|
|
58
|
+
'sign-in',
|
|
59
|
+
'eye',
|
|
60
|
+
'eye-unwatch',
|
|
61
|
+
'eye-watch',
|
|
62
|
+
'circle-filled',
|
|
63
|
+
'primitive-dot',
|
|
64
|
+
'close-dirty',
|
|
65
|
+
'debug-breakpoint',
|
|
66
|
+
'debug-breakpoint-disabled',
|
|
67
|
+
'debug-hint',
|
|
68
|
+
'primitive-square',
|
|
69
|
+
'edit',
|
|
70
|
+
'pencil',
|
|
71
|
+
'info',
|
|
72
|
+
'issue-opened',
|
|
73
|
+
'gist-private',
|
|
74
|
+
'git-fork-private',
|
|
75
|
+
'lock',
|
|
76
|
+
'mirror-private',
|
|
77
|
+
'close',
|
|
78
|
+
'remove-close',
|
|
79
|
+
'x',
|
|
80
|
+
'repo-sync',
|
|
81
|
+
'sync',
|
|
82
|
+
'clone',
|
|
83
|
+
'desktop-download',
|
|
84
|
+
'beaker',
|
|
85
|
+
'microscope',
|
|
86
|
+
'vm',
|
|
87
|
+
'device-desktop',
|
|
88
|
+
'file',
|
|
89
|
+
'file-text',
|
|
90
|
+
'more',
|
|
91
|
+
'ellipsis',
|
|
92
|
+
'kebab-horizontal',
|
|
93
|
+
'mail-reply',
|
|
94
|
+
'reply',
|
|
95
|
+
'organization',
|
|
96
|
+
'organization-filled',
|
|
97
|
+
'organization-outline',
|
|
98
|
+
'new-file',
|
|
99
|
+
'file-add',
|
|
100
|
+
'new-folder',
|
|
101
|
+
'file-directory-create',
|
|
102
|
+
'trash',
|
|
103
|
+
'trashcan',
|
|
104
|
+
'history',
|
|
105
|
+
'clock',
|
|
106
|
+
'folder',
|
|
107
|
+
'file-directory',
|
|
108
|
+
'symbol-folder',
|
|
109
|
+
'logo-github',
|
|
110
|
+
'mark-github',
|
|
111
|
+
'github',
|
|
112
|
+
'terminal',
|
|
113
|
+
'console',
|
|
114
|
+
'repl',
|
|
115
|
+
'zap',
|
|
116
|
+
'symbol-event',
|
|
117
|
+
'error',
|
|
118
|
+
'stop',
|
|
119
|
+
'variable',
|
|
120
|
+
'symbol-variable',
|
|
121
|
+
'array',
|
|
122
|
+
'symbol-array',
|
|
123
|
+
'symbol-module',
|
|
124
|
+
'symbol-package',
|
|
125
|
+
'symbol-namespace',
|
|
126
|
+
'symbol-object',
|
|
127
|
+
'symbol-method',
|
|
128
|
+
'symbol-function',
|
|
129
|
+
'symbol-constructor',
|
|
130
|
+
'symbol-boolean',
|
|
131
|
+
'symbol-null',
|
|
132
|
+
'symbol-numeric',
|
|
133
|
+
'symbol-number',
|
|
134
|
+
'symbol-structure',
|
|
135
|
+
'symbol-struct',
|
|
136
|
+
'symbol-parameter',
|
|
137
|
+
'symbol-type-parameter',
|
|
138
|
+
'symbol-key',
|
|
139
|
+
'symbol-text',
|
|
140
|
+
'symbol-reference',
|
|
141
|
+
'go-to-file',
|
|
142
|
+
'symbol-enum',
|
|
143
|
+
'symbol-value',
|
|
144
|
+
'symbol-ruler',
|
|
145
|
+
'symbol-unit',
|
|
146
|
+
'activate-breakpoints',
|
|
147
|
+
'archive',
|
|
148
|
+
'arrow-both',
|
|
149
|
+
'arrow-down',
|
|
150
|
+
'arrow-left',
|
|
151
|
+
'arrow-right',
|
|
152
|
+
'arrow-small-down',
|
|
153
|
+
'arrow-small-left',
|
|
154
|
+
'arrow-small-right',
|
|
155
|
+
'arrow-small-up',
|
|
156
|
+
'arrow-up',
|
|
157
|
+
'bell',
|
|
158
|
+
'bold',
|
|
159
|
+
'book',
|
|
160
|
+
'bookmark',
|
|
161
|
+
'debug-breakpoint-conditional-unverified',
|
|
162
|
+
'debug-breakpoint-conditional',
|
|
163
|
+
'debug-breakpoint-conditional-disabled',
|
|
164
|
+
'debug-breakpoint-data-unverified',
|
|
165
|
+
'debug-breakpoint-data',
|
|
166
|
+
'debug-breakpoint-data-disabled',
|
|
167
|
+
'debug-breakpoint-log-unverified',
|
|
168
|
+
'debug-breakpoint-log',
|
|
169
|
+
'debug-breakpoint-log-disabled',
|
|
170
|
+
'briefcase',
|
|
171
|
+
'broadcast',
|
|
172
|
+
'browser',
|
|
173
|
+
'bug',
|
|
174
|
+
'calendar',
|
|
175
|
+
'case-sensitive',
|
|
176
|
+
'check',
|
|
177
|
+
'checklist',
|
|
178
|
+
'chevron-down',
|
|
179
|
+
'chevron-left',
|
|
180
|
+
'chevron-right',
|
|
181
|
+
'chevron-up',
|
|
182
|
+
'chrome-close',
|
|
183
|
+
'chrome-maximize',
|
|
184
|
+
'chrome-minimize',
|
|
185
|
+
'chrome-restore',
|
|
186
|
+
'circle-outline',
|
|
187
|
+
'debug-breakpoint-unverified',
|
|
188
|
+
'circle-slash',
|
|
189
|
+
'circuit-board',
|
|
190
|
+
'clear-all',
|
|
191
|
+
'clippy',
|
|
192
|
+
'close-all',
|
|
193
|
+
'cloud-download',
|
|
194
|
+
'cloud-upload',
|
|
195
|
+
'code',
|
|
196
|
+
'collapse-all',
|
|
197
|
+
'color-mode',
|
|
198
|
+
'comment-discussion',
|
|
199
|
+
'credit-card',
|
|
200
|
+
'dash',
|
|
201
|
+
'dashboard',
|
|
202
|
+
'database',
|
|
203
|
+
'debug-continue',
|
|
204
|
+
'debug-disconnect',
|
|
205
|
+
'debug-pause',
|
|
206
|
+
'debug-restart',
|
|
207
|
+
'debug-start',
|
|
208
|
+
'debug-step-into',
|
|
209
|
+
'debug-step-out',
|
|
210
|
+
'debug-step-over',
|
|
211
|
+
'debug-stop',
|
|
212
|
+
'debug',
|
|
213
|
+
'device-camera-video',
|
|
214
|
+
'device-camera',
|
|
215
|
+
'device-mobile',
|
|
216
|
+
'diff-added',
|
|
217
|
+
'diff-ignored',
|
|
218
|
+
'diff-modified',
|
|
219
|
+
'diff-removed',
|
|
220
|
+
'diff-renamed',
|
|
221
|
+
'diff',
|
|
222
|
+
'discard',
|
|
223
|
+
'editor-layout',
|
|
224
|
+
'empty-window',
|
|
225
|
+
'exclude',
|
|
226
|
+
'extensions',
|
|
227
|
+
'eye-closed',
|
|
228
|
+
'file-binary',
|
|
229
|
+
'file-code',
|
|
230
|
+
'file-media',
|
|
231
|
+
'file-pdf',
|
|
232
|
+
'file-submodule',
|
|
233
|
+
'file-symlink-directory',
|
|
234
|
+
'file-symlink-file',
|
|
235
|
+
'file-zip',
|
|
236
|
+
'files',
|
|
237
|
+
'filter',
|
|
238
|
+
'flame',
|
|
239
|
+
'fold-down',
|
|
240
|
+
'fold-up',
|
|
241
|
+
'fold',
|
|
242
|
+
'folder-active',
|
|
243
|
+
'folder-opened',
|
|
244
|
+
'gear',
|
|
245
|
+
'gift',
|
|
246
|
+
'gist-secret',
|
|
247
|
+
'gist',
|
|
248
|
+
'git-commit',
|
|
249
|
+
'git-compare',
|
|
250
|
+
'compare-changes',
|
|
251
|
+
'git-merge',
|
|
252
|
+
'github-action',
|
|
253
|
+
'github-alt',
|
|
254
|
+
'globe',
|
|
255
|
+
'grabber',
|
|
256
|
+
'graph',
|
|
257
|
+
'gripper',
|
|
258
|
+
'heart',
|
|
259
|
+
'home',
|
|
260
|
+
'horizontal-rule',
|
|
261
|
+
'hubot',
|
|
262
|
+
'inbox',
|
|
263
|
+
'issue-reopened',
|
|
264
|
+
'issues',
|
|
265
|
+
'italic',
|
|
266
|
+
'jersey',
|
|
267
|
+
'json',
|
|
268
|
+
'kebab-vertical',
|
|
269
|
+
'key',
|
|
270
|
+
'law',
|
|
271
|
+
'lightbulb-autofix',
|
|
272
|
+
'link-external',
|
|
273
|
+
'link',
|
|
274
|
+
'list-ordered',
|
|
275
|
+
'list-unordered',
|
|
276
|
+
'live-share',
|
|
277
|
+
'loading',
|
|
278
|
+
'location',
|
|
279
|
+
'mail-read',
|
|
280
|
+
'mail',
|
|
281
|
+
'markdown',
|
|
282
|
+
'megaphone',
|
|
283
|
+
'mention',
|
|
284
|
+
'milestone',
|
|
285
|
+
'mortar-board',
|
|
286
|
+
'move',
|
|
287
|
+
'multiple-windows',
|
|
288
|
+
'mute',
|
|
289
|
+
'no-newline',
|
|
290
|
+
'note',
|
|
291
|
+
'octoface',
|
|
292
|
+
'open-preview',
|
|
293
|
+
'package',
|
|
294
|
+
'paintcan',
|
|
295
|
+
'pin',
|
|
296
|
+
'play',
|
|
297
|
+
'run',
|
|
298
|
+
'plug',
|
|
299
|
+
'preserve-case',
|
|
300
|
+
'preview',
|
|
301
|
+
'project',
|
|
302
|
+
'pulse',
|
|
303
|
+
'question',
|
|
304
|
+
'quote',
|
|
305
|
+
'radio-tower',
|
|
306
|
+
'reactions',
|
|
307
|
+
'references',
|
|
308
|
+
'refresh',
|
|
309
|
+
'regex',
|
|
310
|
+
'remote-explorer',
|
|
311
|
+
'remote',
|
|
312
|
+
'remove',
|
|
313
|
+
'replace-all',
|
|
314
|
+
'replace',
|
|
315
|
+
'repo-clone',
|
|
316
|
+
'repo-force-push',
|
|
317
|
+
'repo-pull',
|
|
318
|
+
'repo-push',
|
|
319
|
+
'report',
|
|
320
|
+
'request-changes',
|
|
321
|
+
'rocket',
|
|
322
|
+
'root-folder-opened',
|
|
323
|
+
'root-folder',
|
|
324
|
+
'rss',
|
|
325
|
+
'ruby',
|
|
326
|
+
'save-all',
|
|
327
|
+
'save-as',
|
|
328
|
+
'save',
|
|
329
|
+
'screen-full',
|
|
330
|
+
'screen-normal',
|
|
331
|
+
'search-stop',
|
|
332
|
+
'server',
|
|
333
|
+
'settings-gear',
|
|
334
|
+
'settings',
|
|
335
|
+
'shield',
|
|
336
|
+
'smiley',
|
|
337
|
+
'sort-precedence',
|
|
338
|
+
'split-horizontal',
|
|
339
|
+
'split-vertical',
|
|
340
|
+
'squirrel',
|
|
341
|
+
'star-full',
|
|
342
|
+
'star-half',
|
|
343
|
+
'symbol-class',
|
|
344
|
+
'symbol-color',
|
|
345
|
+
'symbol-constant',
|
|
346
|
+
'symbol-enum-member',
|
|
347
|
+
'symbol-field',
|
|
348
|
+
'symbol-file',
|
|
349
|
+
'symbol-interface',
|
|
350
|
+
'symbol-keyword',
|
|
351
|
+
'symbol-misc',
|
|
352
|
+
'symbol-operator',
|
|
353
|
+
'symbol-property',
|
|
354
|
+
'wrench',
|
|
355
|
+
'wrench-subaction',
|
|
356
|
+
'symbol-snippet',
|
|
357
|
+
'tasklist',
|
|
358
|
+
'telescope',
|
|
359
|
+
'text-size',
|
|
360
|
+
'three-bars',
|
|
361
|
+
'thumbsdown',
|
|
362
|
+
'thumbsup',
|
|
363
|
+
'tools',
|
|
364
|
+
'triangle-down',
|
|
365
|
+
'triangle-left',
|
|
366
|
+
'triangle-right',
|
|
367
|
+
'triangle-up',
|
|
368
|
+
'twitter',
|
|
369
|
+
'unfold',
|
|
370
|
+
'unlock',
|
|
371
|
+
'unmute',
|
|
372
|
+
'unverified',
|
|
373
|
+
'verified',
|
|
374
|
+
'versions',
|
|
375
|
+
'vm-active',
|
|
376
|
+
'vm-outline',
|
|
377
|
+
'vm-running',
|
|
378
|
+
'watch',
|
|
379
|
+
'whitespace',
|
|
380
|
+
'whole-word',
|
|
381
|
+
'window',
|
|
382
|
+
'word-wrap',
|
|
383
|
+
'zoom-in',
|
|
384
|
+
'zoom-out',
|
|
385
|
+
'list-filter',
|
|
386
|
+
'list-flat',
|
|
387
|
+
'list-selection',
|
|
388
|
+
'selection',
|
|
389
|
+
'list-tree',
|
|
390
|
+
'debug-breakpoint-function-unverified',
|
|
391
|
+
'debug-breakpoint-function',
|
|
392
|
+
'debug-breakpoint-function-disabled',
|
|
393
|
+
'debug-stackframe-active',
|
|
394
|
+
'debug-stackframe-dot',
|
|
395
|
+
'debug-stackframe',
|
|
396
|
+
'debug-stackframe-focused',
|
|
397
|
+
'debug-breakpoint-unsupported',
|
|
398
|
+
'symbol-string',
|
|
399
|
+
'debug-reverse-continue',
|
|
400
|
+
'debug-step-back',
|
|
401
|
+
'debug-restart-frame',
|
|
402
|
+
'debug-alt',
|
|
403
|
+
'call-incoming',
|
|
404
|
+
'call-outgoing',
|
|
405
|
+
'menu',
|
|
406
|
+
'expand-all',
|
|
407
|
+
'feedback',
|
|
408
|
+
'group-by-ref-type',
|
|
409
|
+
'ungroup-by-ref-type',
|
|
410
|
+
'account',
|
|
411
|
+
'bell-dot',
|
|
412
|
+
'debug-console',
|
|
413
|
+
'library',
|
|
414
|
+
'output',
|
|
415
|
+
'run-all',
|
|
416
|
+
'sync-ignored',
|
|
417
|
+
'pinned',
|
|
418
|
+
'github-inverted',
|
|
419
|
+
'server-process',
|
|
420
|
+
'server-environment',
|
|
421
|
+
'pass',
|
|
422
|
+
'issue-closed',
|
|
423
|
+
'stop-circle',
|
|
424
|
+
'play-circle',
|
|
425
|
+
'record',
|
|
426
|
+
'debug-alt-small',
|
|
427
|
+
'vm-connect',
|
|
428
|
+
'cloud',
|
|
429
|
+
'merge',
|
|
430
|
+
'export',
|
|
431
|
+
'graph-left',
|
|
432
|
+
'magnet',
|
|
433
|
+
'notebook',
|
|
434
|
+
'redo',
|
|
435
|
+
'check-all',
|
|
436
|
+
'pinned-dirty',
|
|
437
|
+
'pass-filled',
|
|
438
|
+
'circle-large-filled',
|
|
439
|
+
'circle-large-outline',
|
|
440
|
+
'combine',
|
|
441
|
+
'gather',
|
|
442
|
+
'table',
|
|
443
|
+
'variable-group',
|
|
444
|
+
'type-hierarchy',
|
|
445
|
+
'type-hierarchy-sub',
|
|
446
|
+
'type-hierarchy-super',
|
|
447
|
+
'git-pull-request-create',
|
|
448
|
+
'run-above',
|
|
449
|
+
'run-below',
|
|
450
|
+
'notebook-template',
|
|
451
|
+
'debug-rerun',
|
|
452
|
+
'workspace-trusted',
|
|
453
|
+
'workspace-untrusted',
|
|
454
|
+
'workspace-unknown',
|
|
455
|
+
'terminal-cmd',
|
|
456
|
+
'terminal-debian',
|
|
457
|
+
'terminal-linux',
|
|
458
|
+
'terminal-powershell',
|
|
459
|
+
'terminal-tmux',
|
|
460
|
+
'terminal-ubuntu',
|
|
461
|
+
'terminal-bash',
|
|
462
|
+
'arrow-swap',
|
|
463
|
+
'copy',
|
|
464
|
+
'person-add',
|
|
465
|
+
'filter-filled',
|
|
466
|
+
'wand',
|
|
467
|
+
'debug-line-by-line',
|
|
468
|
+
'inspect',
|
|
469
|
+
'layers',
|
|
470
|
+
'layers-dot',
|
|
471
|
+
'layers-active',
|
|
472
|
+
'compass',
|
|
473
|
+
'compass-dot',
|
|
474
|
+
'compass-active',
|
|
475
|
+
'azure',
|
|
476
|
+
'issue-draft',
|
|
477
|
+
'git-pull-request-closed',
|
|
478
|
+
'git-pull-request-draft',
|
|
479
|
+
'debug-all',
|
|
480
|
+
'debug-coverage',
|
|
481
|
+
'run-errors',
|
|
482
|
+
'folder-library',
|
|
483
|
+
'debug-continue-small',
|
|
484
|
+
'beaker-stop',
|
|
485
|
+
'graph-line',
|
|
486
|
+
'graph-scatter',
|
|
487
|
+
'pie-chart',
|
|
488
|
+
'bracket',
|
|
489
|
+
'bracket-dot',
|
|
490
|
+
'bracket-error',
|
|
491
|
+
'lock-small',
|
|
492
|
+
'azure-devops',
|
|
493
|
+
'verified-filled',
|
|
494
|
+
'newline',
|
|
495
|
+
'layout',
|
|
496
|
+
];
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* @param iconKey icon id
|
|
500
|
+
* @param fallback codicon 找不到 icon 时是否回退到 octicon
|
|
501
|
+
*/
|
|
502
|
+
export function getExternalIcon(iconKey: string, iconOwner = CODICON_OWNER, fallback = iconOwner === CODICON_OWNER) {
|
|
503
|
+
if (fallback && iconOwner === CODICON_OWNER && !codIconId.includes(iconKey)) {
|
|
504
|
+
return getOctIcon(iconKey);
|
|
505
|
+
}
|
|
506
|
+
if (iconOwner === KTICON_OWNER) {
|
|
507
|
+
return `kaitian-icon ${iconOwner}-${iconKey}`;
|
|
508
|
+
}
|
|
509
|
+
return `${iconOwner} ${iconOwner}-${iconKey}`;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* @internal
|
|
514
|
+
*/
|
|
515
|
+
export const getSymbolIcon = (() => {
|
|
516
|
+
const _fromMapping: { [n: number]: string } = Object.create(null);
|
|
517
|
+
_fromMapping[SymbolKindEnum.File] = 'file';
|
|
518
|
+
_fromMapping[SymbolKindEnum.Module] = 'module';
|
|
519
|
+
_fromMapping[SymbolKindEnum.Namespace] = 'namespace';
|
|
520
|
+
_fromMapping[SymbolKindEnum.Package] = 'package';
|
|
521
|
+
_fromMapping[SymbolKindEnum.Class] = 'class';
|
|
522
|
+
_fromMapping[SymbolKindEnum.Method] = 'method';
|
|
523
|
+
_fromMapping[SymbolKindEnum.Property] = 'property';
|
|
524
|
+
_fromMapping[SymbolKindEnum.Field] = 'field';
|
|
525
|
+
_fromMapping[SymbolKindEnum.Constructor] = 'constructor';
|
|
526
|
+
_fromMapping[SymbolKindEnum.Enum] = 'enum';
|
|
527
|
+
_fromMapping[SymbolKindEnum.Interface] = 'interface';
|
|
528
|
+
_fromMapping[SymbolKindEnum.Function] = 'function';
|
|
529
|
+
_fromMapping[SymbolKindEnum.Variable] = 'variable';
|
|
530
|
+
_fromMapping[SymbolKindEnum.Constant] = 'constant';
|
|
531
|
+
_fromMapping[SymbolKindEnum.String] = 'string';
|
|
532
|
+
_fromMapping[SymbolKindEnum.Number] = 'number';
|
|
533
|
+
_fromMapping[SymbolKindEnum.Boolean] = 'boolean';
|
|
534
|
+
_fromMapping[SymbolKindEnum.Array] = 'array';
|
|
535
|
+
_fromMapping[SymbolKindEnum.Object] = 'object';
|
|
536
|
+
_fromMapping[SymbolKindEnum.Key] = 'key';
|
|
537
|
+
_fromMapping[SymbolKindEnum.Null] = 'null';
|
|
538
|
+
_fromMapping[SymbolKindEnum.EnumMember] = 'enum-member';
|
|
539
|
+
_fromMapping[SymbolKindEnum.Struct] = 'struct';
|
|
540
|
+
_fromMapping[SymbolKindEnum.Event] = 'event';
|
|
541
|
+
_fromMapping[SymbolKindEnum.Operator] = 'operator';
|
|
542
|
+
_fromMapping[SymbolKindEnum.TypeParameter] = 'type-parameter';
|
|
543
|
+
|
|
544
|
+
return function toCssClassName(kind: SymbolKindEnum, inline?: boolean): string {
|
|
545
|
+
return getExternalIcon(`symbol-${_fromMapping[kind] || 'property'}`);
|
|
546
|
+
};
|
|
547
|
+
})();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const IDE_ICONFONT_CN_CSS = '//at.alicdn.com/t/a/font_1432262_l1vi771pgn.css';
|
|
2
|
+
|
|
3
|
+
export const IDE_ICONFONT_CN_JS = IDE_ICONFONT_CN_CSS.replace(/\.css$/, '.js');
|
|
4
|
+
|
|
5
|
+
export const IDE_OCTICONS_CN_CSS =
|
|
6
|
+
'//gw.alipayobjects.com/os/Kaitian/c7ae5acb-da70-4f05-b83d-93b345dc5c53/octicons-cdn.css';
|
|
7
|
+
|
|
8
|
+
const codiconsPkg = '@vscode/codicons';
|
|
9
|
+
// alipayobjects icon 不带@
|
|
10
|
+
const codiconsCDNPkg = 'vscode/codicons';
|
|
11
|
+
const codiconsPkgVersion = require('../../../package.json').dependencies[codiconsPkg];
|
|
12
|
+
|
|
13
|
+
export const IDE_CODICONS_CN_CSS = `//gw.alipayobjects.com/os/lib/${codiconsCDNPkg}/${codiconsPkgVersion}/dist/codicon.css`;
|