@opensumi/ide-core-browser 2.21.8-rc-1670567192.0 → 2.21.8

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.
Files changed (317) hide show
  1. package/lib/components/actions/index.d.ts.map +1 -1
  2. package/lib/components/actions/index.js +22 -2
  3. package/lib/components/actions/index.js.map +1 -1
  4. package/lib/components/tree/tree.module.less +0 -1
  5. package/lib/contextkey/testing.d.ts +0 -1
  6. package/lib/contextkey/testing.d.ts.map +1 -1
  7. package/lib/contextkey/testing.js +1 -2
  8. package/lib/contextkey/testing.js.map +1 -1
  9. package/lib/menu/next/menu.contrib.interface.d.ts +2 -3
  10. package/lib/menu/next/menu.contrib.interface.d.ts.map +1 -1
  11. package/lib/menu/next/menu.contrib.interface.js.map +1 -1
  12. package/lib/preferences/preference-configurations.js +1 -1
  13. package/lib/preferences/preference-configurations.js.map +1 -1
  14. package/lib/react-providers/config-provider.d.ts +0 -4
  15. package/lib/react-providers/config-provider.d.ts.map +1 -1
  16. package/lib/react-providers/config-provider.js.map +1 -1
  17. package/lib/services/storage-service.d.ts.map +1 -1
  18. package/lib/services/storage-service.js +1 -7
  19. package/lib/services/storage-service.js.map +1 -1
  20. package/lib/utils/label.d.ts.map +1 -1
  21. package/lib/utils/label.js +9 -16
  22. package/lib/utils/label.js.map +1 -1
  23. package/package.json +6 -7
  24. package/src/application/application-state-service.ts +0 -54
  25. package/src/application/application.service.ts +0 -51
  26. package/src/application/index.ts +0 -2
  27. package/src/authentication/authentication.contribution.ts +0 -35
  28. package/src/authentication/authentication.service.ts +0 -517
  29. package/src/bootstrap/app.ts +0 -745
  30. package/src/bootstrap/app.view.tsx +0 -88
  31. package/src/bootstrap/connection.ts +0 -116
  32. package/src/bootstrap/index.ts +0 -3
  33. package/src/bootstrap/inner-providers.ts +0 -297
  34. package/src/bootstrap/lifecycle.service.ts +0 -19
  35. package/src/browser-module.ts +0 -24
  36. package/src/common/common.command.ts +0 -977
  37. package/src/common/common.contribution.ts +0 -343
  38. package/src/common/common.define.ts +0 -55
  39. package/src/common/common.module.ts +0 -33
  40. package/src/common/common.storage.ts +0 -22
  41. package/src/common/container-id.ts +0 -12
  42. package/src/common/index.ts +0 -4
  43. package/src/components/actions/index.tsx +0 -486
  44. package/src/components/actions/placements.ts +0 -47
  45. package/src/components/actions/styles.module.less +0 -144
  46. package/src/components/badge/index.tsx +0 -1
  47. package/src/components/index.ts +0 -26
  48. package/src/components/layout/box-panel.tsx +0 -88
  49. package/src/components/layout/default-layout.tsx +0 -61
  50. package/src/components/layout/index.ts +0 -4
  51. package/src/components/layout/layout.ts +0 -80
  52. package/src/components/layout/split-panel.service.ts +0 -56
  53. package/src/components/layout/split-panel.tsx +0 -296
  54. package/src/components/layout/styles.module.less +0 -21
  55. package/src/components/loading/index.ts +0 -1
  56. package/src/components/loading/loading.less +0 -14
  57. package/src/components/loading/loading.view.tsx +0 -7
  58. package/src/components/loading/media/loading-dark.svg +0 -52
  59. package/src/components/loading/media/loading-hc.svg +0 -52
  60. package/src/components/loading/media/loading.svg +0 -52
  61. package/src/components/popover/styles.module.less +0 -81
  62. package/src/components/portal/index.tsx +0 -13
  63. package/src/components/progressbar/index.tsx +0 -16
  64. package/src/components/progressbar/styles.module.less +0 -31
  65. package/src/components/recycle-tree/index.ts +0 -1
  66. package/src/components/recycle-tree/recycle-tree.view.tsx +0 -368
  67. package/src/components/resize/resize.module.less +0 -78
  68. package/src/components/resize/resize.tsx +0 -663
  69. package/src/components/scroll/index.tsx +0 -386
  70. package/src/components/scroll/scroll.module.less +0 -108
  71. package/src/components/scrollbar/index.ts +0 -1
  72. package/src/components/scrollbar/scrollbar.less +0 -36
  73. package/src/components/scrollbar/scrollbar.view.ts +0 -8
  74. package/src/components/select/index.tsx +0 -12
  75. package/src/components/select/styles.less +0 -6
  76. package/src/components/tree/index.ts +0 -3
  77. package/src/components/tree/tree-node.view.tsx +0 -546
  78. package/src/components/tree/tree.module.less +0 -297
  79. package/src/components/tree/tree.view.tsx +0 -486
  80. package/src/context-key.ts +0 -48
  81. package/src/contextkey/dialog.ts +0 -3
  82. package/src/contextkey/explorer.ts +0 -26
  83. package/src/contextkey/index.ts +0 -6
  84. package/src/contextkey/outline.ts +0 -4
  85. package/src/contextkey/resource.ts +0 -61
  86. package/src/contextkey/terminal.ts +0 -7
  87. package/src/contextkey/testing.ts +0 -9
  88. package/src/contextkey/workspace.ts +0 -7
  89. package/src/core-preferences.ts +0 -318
  90. package/src/dom/index.ts +0 -176
  91. package/src/encoding-registry.ts +0 -83
  92. package/src/extensions/extensions-point.service.ts +0 -78
  93. package/src/extensions/index.ts +0 -3
  94. package/src/extensions/schema/browserViews.ts +0 -96
  95. package/src/extensions/schema/menu.ts +0 -245
  96. package/src/extensions/schema/opensumiExtensionPackageSchema.ts +0 -12
  97. package/src/extensions/schema/toolbar.ts +0 -338
  98. package/src/extensions/schema/vscodeExtensionPackageSchema.ts +0 -330
  99. package/src/fs/index.ts +0 -12
  100. package/src/hash-calculate/hash-calculate.contribution.ts +0 -19
  101. package/src/index.ts +0 -42
  102. package/src/keybinding/index.ts +0 -1
  103. package/src/keybinding/keybinding.ts +0 -908
  104. package/src/keyboard/index.ts +0 -3
  105. package/src/keyboard/keyboard-layout-provider.ts +0 -412
  106. package/src/keyboard/keyboard-layout-service.ts +0 -449
  107. package/src/keyboard/keys.ts +0 -748
  108. package/src/keyboard/layouts/_.contribution.ts +0 -24
  109. package/src/keyboard/layouts/cz.win.ts +0 -168
  110. package/src/keyboard/layouts/de-swiss.win.ts +0 -168
  111. package/src/keyboard/layouts/de.darwin.ts +0 -131
  112. package/src/keyboard/layouts/de.linux.ts +0 -186
  113. package/src/keyboard/layouts/de.win.ts +0 -168
  114. package/src/keyboard/layouts/dk.win.ts +0 -168
  115. package/src/keyboard/layouts/dvorak.darwin.ts +0 -131
  116. package/src/keyboard/layouts/en-belgian.win.ts +0 -168
  117. package/src/keyboard/layouts/en-ext.darwin.ts +0 -131
  118. package/src/keyboard/layouts/en-in.win.ts +0 -168
  119. package/src/keyboard/layouts/en-intl.darwin.ts +0 -131
  120. package/src/keyboard/layouts/en-intl.win.ts +0 -168
  121. package/src/keyboard/layouts/en-uk.darwin.ts +0 -131
  122. package/src/keyboard/layouts/en-uk.win.ts +0 -168
  123. package/src/keyboard/layouts/en.darwin.ts +0 -139
  124. package/src/keyboard/layouts/en.linux.ts +0 -186
  125. package/src/keyboard/layouts/en.win.ts +0 -173
  126. package/src/keyboard/layouts/es-latin.win.ts +0 -168
  127. package/src/keyboard/layouts/es.darwin.ts +0 -131
  128. package/src/keyboard/layouts/es.linux.ts +0 -186
  129. package/src/keyboard/layouts/es.win.ts +0 -168
  130. package/src/keyboard/layouts/fr.darwin.ts +0 -131
  131. package/src/keyboard/layouts/fr.linux.ts +0 -186
  132. package/src/keyboard/layouts/fr.win.ts +0 -168
  133. package/src/keyboard/layouts/hu.win.ts +0 -168
  134. package/src/keyboard/layouts/it.darwin.ts +0 -131
  135. package/src/keyboard/layouts/it.win.ts +0 -168
  136. package/src/keyboard/layouts/jp-roman.darwin.ts +0 -131
  137. package/src/keyboard/layouts/jp.darwin.ts +0 -131
  138. package/src/keyboard/layouts/ko.darwin.ts +0 -131
  139. package/src/keyboard/layouts/layout.contribution.darwin.ts +0 -23
  140. package/src/keyboard/layouts/layout.contribution.linux.ts +0 -12
  141. package/src/keyboard/layouts/layout.contribution.ts +0 -9
  142. package/src/keyboard/layouts/layout.contribution.win.ts +0 -29
  143. package/src/keyboard/layouts/no.win.ts +0 -168
  144. package/src/keyboard/layouts/pl.darwin.ts +0 -131
  145. package/src/keyboard/layouts/pl.win.ts +0 -168
  146. package/src/keyboard/layouts/pt-br.win.ts +0 -169
  147. package/src/keyboard/layouts/pt.darwin.ts +0 -131
  148. package/src/keyboard/layouts/pt.win.ts +0 -168
  149. package/src/keyboard/layouts/ru.darwin.ts +0 -131
  150. package/src/keyboard/layouts/ru.linux.ts +0 -186
  151. package/src/keyboard/layouts/ru.win.ts +0 -168
  152. package/src/keyboard/layouts/sv.darwin.ts +0 -131
  153. package/src/keyboard/layouts/sv.win.ts +0 -168
  154. package/src/keyboard/layouts/thai.win.ts +0 -168
  155. package/src/keyboard/layouts/tr.win.ts +0 -168
  156. package/src/keyboard/layouts/zh-hans.darwin.ts +0 -131
  157. package/src/layout/accordion/tab-bar-toolbar.tsx +0 -59
  158. package/src/layout/accordion/view-context-key.registry.ts +0 -34
  159. package/src/layout/constants.ts +0 -7
  160. package/src/layout/index.ts +0 -5
  161. package/src/layout/layout-hooks.ts +0 -68
  162. package/src/layout/layout-state.ts +0 -107
  163. package/src/layout/layout.interface.ts +0 -101
  164. package/src/layout/layout.ts +0 -80
  165. package/src/layout/view-id.ts +0 -18
  166. package/src/logger/browser-logger.ts +0 -51
  167. package/src/logger/index.ts +0 -1
  168. package/src/markdown/index.tsx +0 -62
  169. package/src/menu/next/base.ts +0 -513
  170. package/src/menu/next/ctxmenu-service.ts +0 -188
  171. package/src/menu/next/index.ts +0 -10
  172. package/src/menu/next/menu-id.ts +0 -86
  173. package/src/menu/next/menu-service.ts +0 -252
  174. package/src/menu/next/menu-util.ts +0 -77
  175. package/src/menu/next/menu.contrib.interface.ts +0 -79
  176. package/src/menu/next/menu.interface.ts +0 -253
  177. package/src/menu/next/menubar-service.ts +0 -211
  178. package/src/menu/next/renderer/ctxmenu/base.ts +0 -18
  179. package/src/menu/next/renderer/ctxmenu/browser.ts +0 -45
  180. package/src/menu/next/renderer/ctxmenu/electron.ts +0 -207
  181. package/src/menu/next/toolbar-action.service.ts +0 -132
  182. package/src/monaco/index.ts +0 -128
  183. package/src/opener/command-opener.ts +0 -42
  184. package/src/opener/default-opener.ts +0 -31
  185. package/src/opener/http-opener.ts +0 -25
  186. package/src/opener/index.ts +0 -19
  187. package/src/opener/opener.contribution.ts +0 -57
  188. package/src/opener/opener.service.ts +0 -66
  189. package/src/preferences/early-preferences.ts +0 -117
  190. package/src/preferences/index.ts +0 -9
  191. package/src/preferences/preference-configurations.ts +0 -77
  192. package/src/preferences/preference-contribution.ts +0 -401
  193. package/src/preferences/preference-provider.ts +0 -414
  194. package/src/preferences/preference-proxy.ts +0 -292
  195. package/src/preferences/preference-scope.ts +0 -3
  196. package/src/preferences/preference-service.ts +0 -571
  197. package/src/preferences/settings.ts +0 -53
  198. package/src/preferences/types.ts +0 -111
  199. package/src/progress/index.ts +0 -58
  200. package/src/progress/progress-bar.tsx +0 -22
  201. package/src/progress/progress-indicator.ts +0 -90
  202. package/src/progress/progress.module.less +0 -46
  203. package/src/progress/progress.service.tsx +0 -429
  204. package/src/quick-open/index.ts +0 -655
  205. package/src/quick-open/recent-files.ts +0 -68
  206. package/src/raw-context-key.ts +0 -116
  207. package/src/react-hooks/event.tsx +0 -80
  208. package/src/react-hooks/hot-key.tsx +0 -58
  209. package/src/react-hooks/index.ts +0 -3
  210. package/src/react-hooks/injectable-hooks.tsx +0 -35
  211. package/src/react-hooks/portal-hooks.tsx +0 -38
  212. package/src/react-providers/config-provider.tsx +0 -263
  213. package/src/react-providers/index.tsx +0 -2
  214. package/src/react-providers/slot.module.less +0 -19
  215. package/src/react-providers/slot.tsx +0 -242
  216. package/src/services/clipboard.service.ts +0 -97
  217. package/src/services/credentials-service.ts +0 -91
  218. package/src/services/crypto-service.ts +0 -23
  219. package/src/services/external-uri.service.ts +0 -68
  220. package/src/services/index.ts +0 -7
  221. package/src/services/label-service.ts +0 -386
  222. package/src/services/status-bar-service.ts +0 -108
  223. package/src/services/storage-service.ts +0 -197
  224. package/src/style/codicons/README.md +0 -22
  225. package/src/style/codicons/codicon-animations.css +0 -15
  226. package/src/style/codicons/generator.js +0 -15
  227. package/src/style/entry.less +0 -25
  228. package/src/style/icon/fileicons/file-default.svg +0 -1
  229. package/src/style/icon/fileicons/folder-default.svg +0 -1
  230. package/src/style/icon/fileicons.less +0 -20
  231. package/src/style/icon/icon.ts +0 -543
  232. package/src/style/icon/ide-iconfont.ts +0 -13
  233. package/src/style/icon/index.less +0 -54
  234. package/src/style/icon/seti.woff +0 -0
  235. package/src/style/icon/symbol-icons/boolean-dark.svg +0 -3
  236. package/src/style/icon/symbol-icons/boolean-light.svg +0 -3
  237. package/src/style/icon/symbol-icons/class-dark.svg +0 -3
  238. package/src/style/icon/symbol-icons/class-light.svg +0 -3
  239. package/src/style/icon/symbol-icons/constant-dark.svg +0 -4
  240. package/src/style/icon/symbol-icons/constant-light.svg +0 -4
  241. package/src/style/icon/symbol-icons/enumerator-dark.svg +0 -3
  242. package/src/style/icon/symbol-icons/enumerator-item-dark.svg +0 -3
  243. package/src/style/icon/symbol-icons/enumerator-item-light.svg +0 -3
  244. package/src/style/icon/symbol-icons/enumerator-light.svg +0 -3
  245. package/src/style/icon/symbol-icons/event-dark.svg +0 -3
  246. package/src/style/icon/symbol-icons/event-light.svg +0 -3
  247. package/src/style/icon/symbol-icons/field-dark.svg +0 -3
  248. package/src/style/icon/symbol-icons/field-light.svg +0 -3
  249. package/src/style/icon/symbol-icons/file-dark.svg +0 -3
  250. package/src/style/icon/symbol-icons/file-light.svg +0 -3
  251. package/src/style/icon/symbol-icons/indexer-dark.svg +0 -3
  252. package/src/style/icon/symbol-icons/indexer-light.svg +0 -3
  253. package/src/style/icon/symbol-icons/interface-dark.svg +0 -3
  254. package/src/style/icon/symbol-icons/interface-light.svg +0 -3
  255. package/src/style/icon/symbol-icons/keyword-dark.svg +0 -3
  256. package/src/style/icon/symbol-icons/keyword-light.svg +0 -3
  257. package/src/style/icon/symbol-icons/method-dark.svg +0 -3
  258. package/src/style/icon/symbol-icons/method-light.svg +0 -3
  259. package/src/style/icon/symbol-icons/namespace-dark.svg +0 -3
  260. package/src/style/icon/symbol-icons/namespace-light.svg +0 -3
  261. package/src/style/icon/symbol-icons/numeric-dark.svg +0 -3
  262. package/src/style/icon/symbol-icons/numeric-light.svg +0 -3
  263. package/src/style/icon/symbol-icons/operator-dark.svg +0 -3
  264. package/src/style/icon/symbol-icons/operator-light.svg +0 -3
  265. package/src/style/icon/symbol-icons/property-dark.svg +0 -3
  266. package/src/style/icon/symbol-icons/property-light.svg +0 -3
  267. package/src/style/icon/symbol-icons/snippet-dark.svg +0 -3
  268. package/src/style/icon/symbol-icons/snippet-light.svg +0 -3
  269. package/src/style/icon/symbol-icons/string-dark.svg +0 -3
  270. package/src/style/icon/symbol-icons/string-light.svg +0 -3
  271. package/src/style/icon/symbol-icons/structure-dark.svg +0 -3
  272. package/src/style/icon/symbol-icons/structure-light.svg +0 -3
  273. package/src/style/icon/symbol-icons/symbol-icons.css +0 -284
  274. package/src/style/icon/symbol-icons/template-dark.svg +0 -3
  275. package/src/style/icon/symbol-icons/template-light.svg +0 -3
  276. package/src/style/icon/symbol-icons/variable-dark.svg +0 -3
  277. package/src/style/icon/symbol-icons/variable-light.svg +0 -3
  278. package/src/style/icon.less +0 -8
  279. package/src/style/index.less +0 -14
  280. package/src/style/monaco-override.less +0 -116
  281. package/src/style/normalize.less +0 -92
  282. package/src/style/octicons/octicons-cdn.css +0 -720
  283. package/src/style/octicons/octicons.css +0 -714
  284. package/src/style/octicons/octicons.html +0 -1882
  285. package/src/style/octicons/octicons.svg +0 -582
  286. package/src/style/octicons/octicons.ttf +0 -0
  287. package/src/style/override.less +0 -97
  288. package/src/style/toolbar.less +0 -199
  289. package/src/style/utilities.less +0 -8
  290. package/src/style/variable.less +0 -8
  291. package/src/terminal/index.ts +0 -7
  292. package/src/toolbar/components/auto-complete.tsx +0 -0
  293. package/src/toolbar/components/button.tsx +0 -440
  294. package/src/toolbar/components/index.ts +0 -2
  295. package/src/toolbar/components/select.tsx +0 -189
  296. package/src/toolbar/index.ts +0 -3
  297. package/src/toolbar/toolbar.popover.registry.ts +0 -32
  298. package/src/toolbar/toolbar.registry.ts +0 -352
  299. package/src/toolbar/toolbar.tsx +0 -710
  300. package/src/toolbar/types.ts +0 -383
  301. package/src/tree/index.ts +0 -3
  302. package/src/tree/tree-expansion.ts +0 -25
  303. package/src/tree/tree-selection.ts +0 -89
  304. package/src/tree/tree.ts +0 -294
  305. package/src/utils/create-overlay.tsx +0 -53
  306. package/src/utils/electron.ts +0 -92
  307. package/src/utils/env.ts +0 -26
  308. package/src/utils/icon.ts +0 -13
  309. package/src/utils/index.ts +0 -7
  310. package/src/utils/json.ts +0 -251
  311. package/src/utils/label.tsx +0 -36
  312. package/src/utils/parse.ts +0 -72
  313. package/src/utils/react-hooks.ts +0 -118
  314. package/src/variable/index.ts +0 -1
  315. package/src/variable/variable.ts +0 -84
  316. package/src/window/index.ts +0 -34
  317. package/src/window/window.service.ts +0 -100
@@ -1,22 +0,0 @@
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
- ```
@@ -1,15 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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);
@@ -1,25 +0,0 @@
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
- */
@@ -1 +0,0 @@
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>
@@ -1 +0,0 @@
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>
@@ -1,20 +0,0 @@
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
- }
@@ -1,543 +0,0 @@
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
-
16
- const codIconId = [
17
- 'add',
18
- 'plus',
19
- 'gist-new',
20
- 'repo-create',
21
- 'lightbulb',
22
- 'light-bulb',
23
- 'repo',
24
- 'repo-delete',
25
- 'gist-fork',
26
- 'repo-forked',
27
- 'git-pull-request',
28
- 'git-pull-request-abandoned',
29
- 'record-keys',
30
- 'keyboard',
31
- 'tag',
32
- 'tag-add',
33
- 'tag-remove',
34
- 'person',
35
- 'person-follow',
36
- 'person-outline',
37
- 'person-filled',
38
- 'git-branch',
39
- 'git-branch-create',
40
- 'git-branch-delete',
41
- 'source-control',
42
- 'mirror',
43
- 'mirror-public',
44
- 'star',
45
- 'star-add',
46
- 'star-delete',
47
- 'star-empty',
48
- 'comment',
49
- 'comment-add',
50
- 'alert',
51
- 'warning',
52
- 'search',
53
- 'search-save',
54
- 'log-out',
55
- 'sign-out',
56
- 'log-in',
57
- 'sign-in',
58
- 'eye',
59
- 'eye-unwatch',
60
- 'eye-watch',
61
- 'circle-filled',
62
- 'primitive-dot',
63
- 'close-dirty',
64
- 'debug-breakpoint',
65
- 'debug-breakpoint-disabled',
66
- 'debug-hint',
67
- 'primitive-square',
68
- 'edit',
69
- 'pencil',
70
- 'info',
71
- 'issue-opened',
72
- 'gist-private',
73
- 'git-fork-private',
74
- 'lock',
75
- 'mirror-private',
76
- 'close',
77
- 'remove-close',
78
- 'x',
79
- 'repo-sync',
80
- 'sync',
81
- 'clone',
82
- 'desktop-download',
83
- 'beaker',
84
- 'microscope',
85
- 'vm',
86
- 'device-desktop',
87
- 'file',
88
- 'file-text',
89
- 'more',
90
- 'ellipsis',
91
- 'kebab-horizontal',
92
- 'mail-reply',
93
- 'reply',
94
- 'organization',
95
- 'organization-filled',
96
- 'organization-outline',
97
- 'new-file',
98
- 'file-add',
99
- 'new-folder',
100
- 'file-directory-create',
101
- 'trash',
102
- 'trashcan',
103
- 'history',
104
- 'clock',
105
- 'folder',
106
- 'file-directory',
107
- 'symbol-folder',
108
- 'logo-github',
109
- 'mark-github',
110
- 'github',
111
- 'terminal',
112
- 'console',
113
- 'repl',
114
- 'zap',
115
- 'symbol-event',
116
- 'error',
117
- 'stop',
118
- 'variable',
119
- 'symbol-variable',
120
- 'array',
121
- 'symbol-array',
122
- 'symbol-module',
123
- 'symbol-package',
124
- 'symbol-namespace',
125
- 'symbol-object',
126
- 'symbol-method',
127
- 'symbol-function',
128
- 'symbol-constructor',
129
- 'symbol-boolean',
130
- 'symbol-null',
131
- 'symbol-numeric',
132
- 'symbol-number',
133
- 'symbol-structure',
134
- 'symbol-struct',
135
- 'symbol-parameter',
136
- 'symbol-type-parameter',
137
- 'symbol-key',
138
- 'symbol-text',
139
- 'symbol-reference',
140
- 'go-to-file',
141
- 'symbol-enum',
142
- 'symbol-value',
143
- 'symbol-ruler',
144
- 'symbol-unit',
145
- 'activate-breakpoints',
146
- 'archive',
147
- 'arrow-both',
148
- 'arrow-down',
149
- 'arrow-left',
150
- 'arrow-right',
151
- 'arrow-small-down',
152
- 'arrow-small-left',
153
- 'arrow-small-right',
154
- 'arrow-small-up',
155
- 'arrow-up',
156
- 'bell',
157
- 'bold',
158
- 'book',
159
- 'bookmark',
160
- 'debug-breakpoint-conditional-unverified',
161
- 'debug-breakpoint-conditional',
162
- 'debug-breakpoint-conditional-disabled',
163
- 'debug-breakpoint-data-unverified',
164
- 'debug-breakpoint-data',
165
- 'debug-breakpoint-data-disabled',
166
- 'debug-breakpoint-log-unverified',
167
- 'debug-breakpoint-log',
168
- 'debug-breakpoint-log-disabled',
169
- 'briefcase',
170
- 'broadcast',
171
- 'browser',
172
- 'bug',
173
- 'calendar',
174
- 'case-sensitive',
175
- 'check',
176
- 'checklist',
177
- 'chevron-down',
178
- 'chevron-left',
179
- 'chevron-right',
180
- 'chevron-up',
181
- 'chrome-close',
182
- 'chrome-maximize',
183
- 'chrome-minimize',
184
- 'chrome-restore',
185
- 'circle-outline',
186
- 'debug-breakpoint-unverified',
187
- 'circle-slash',
188
- 'circuit-board',
189
- 'clear-all',
190
- 'clippy',
191
- 'close-all',
192
- 'cloud-download',
193
- 'cloud-upload',
194
- 'code',
195
- 'collapse-all',
196
- 'color-mode',
197
- 'comment-discussion',
198
- 'credit-card',
199
- 'dash',
200
- 'dashboard',
201
- 'database',
202
- 'debug-continue',
203
- 'debug-disconnect',
204
- 'debug-pause',
205
- 'debug-restart',
206
- 'debug-start',
207
- 'debug-step-into',
208
- 'debug-step-out',
209
- 'debug-step-over',
210
- 'debug-stop',
211
- 'debug',
212
- 'device-camera-video',
213
- 'device-camera',
214
- 'device-mobile',
215
- 'diff-added',
216
- 'diff-ignored',
217
- 'diff-modified',
218
- 'diff-removed',
219
- 'diff-renamed',
220
- 'diff',
221
- 'discard',
222
- 'editor-layout',
223
- 'empty-window',
224
- 'exclude',
225
- 'extensions',
226
- 'eye-closed',
227
- 'file-binary',
228
- 'file-code',
229
- 'file-media',
230
- 'file-pdf',
231
- 'file-submodule',
232
- 'file-symlink-directory',
233
- 'file-symlink-file',
234
- 'file-zip',
235
- 'files',
236
- 'filter',
237
- 'flame',
238
- 'fold-down',
239
- 'fold-up',
240
- 'fold',
241
- 'folder-active',
242
- 'folder-opened',
243
- 'gear',
244
- 'gift',
245
- 'gist-secret',
246
- 'gist',
247
- 'git-commit',
248
- 'git-compare',
249
- 'compare-changes',
250
- 'git-merge',
251
- 'github-action',
252
- 'github-alt',
253
- 'globe',
254
- 'grabber',
255
- 'graph',
256
- 'gripper',
257
- 'heart',
258
- 'home',
259
- 'horizontal-rule',
260
- 'hubot',
261
- 'inbox',
262
- 'issue-reopened',
263
- 'issues',
264
- 'italic',
265
- 'jersey',
266
- 'json',
267
- 'kebab-vertical',
268
- 'key',
269
- 'law',
270
- 'lightbulb-autofix',
271
- 'link-external',
272
- 'link',
273
- 'list-ordered',
274
- 'list-unordered',
275
- 'live-share',
276
- 'loading',
277
- 'location',
278
- 'mail-read',
279
- 'mail',
280
- 'markdown',
281
- 'megaphone',
282
- 'mention',
283
- 'milestone',
284
- 'mortar-board',
285
- 'move',
286
- 'multiple-windows',
287
- 'mute',
288
- 'no-newline',
289
- 'note',
290
- 'octoface',
291
- 'open-preview',
292
- 'package',
293
- 'paintcan',
294
- 'pin',
295
- 'play',
296
- 'run',
297
- 'plug',
298
- 'preserve-case',
299
- 'preview',
300
- 'project',
301
- 'pulse',
302
- 'question',
303
- 'quote',
304
- 'radio-tower',
305
- 'reactions',
306
- 'references',
307
- 'refresh',
308
- 'regex',
309
- 'remote-explorer',
310
- 'remote',
311
- 'remove',
312
- 'replace-all',
313
- 'replace',
314
- 'repo-clone',
315
- 'repo-force-push',
316
- 'repo-pull',
317
- 'repo-push',
318
- 'report',
319
- 'request-changes',
320
- 'rocket',
321
- 'root-folder-opened',
322
- 'root-folder',
323
- 'rss',
324
- 'ruby',
325
- 'save-all',
326
- 'save-as',
327
- 'save',
328
- 'screen-full',
329
- 'screen-normal',
330
- 'search-stop',
331
- 'server',
332
- 'settings-gear',
333
- 'settings',
334
- 'shield',
335
- 'smiley',
336
- 'sort-precedence',
337
- 'split-horizontal',
338
- 'split-vertical',
339
- 'squirrel',
340
- 'star-full',
341
- 'star-half',
342
- 'symbol-class',
343
- 'symbol-color',
344
- 'symbol-constant',
345
- 'symbol-enum-member',
346
- 'symbol-field',
347
- 'symbol-file',
348
- 'symbol-interface',
349
- 'symbol-keyword',
350
- 'symbol-misc',
351
- 'symbol-operator',
352
- 'symbol-property',
353
- 'wrench',
354
- 'wrench-subaction',
355
- 'symbol-snippet',
356
- 'tasklist',
357
- 'telescope',
358
- 'text-size',
359
- 'three-bars',
360
- 'thumbsdown',
361
- 'thumbsup',
362
- 'tools',
363
- 'triangle-down',
364
- 'triangle-left',
365
- 'triangle-right',
366
- 'triangle-up',
367
- 'twitter',
368
- 'unfold',
369
- 'unlock',
370
- 'unmute',
371
- 'unverified',
372
- 'verified',
373
- 'versions',
374
- 'vm-active',
375
- 'vm-outline',
376
- 'vm-running',
377
- 'watch',
378
- 'whitespace',
379
- 'whole-word',
380
- 'window',
381
- 'word-wrap',
382
- 'zoom-in',
383
- 'zoom-out',
384
- 'list-filter',
385
- 'list-flat',
386
- 'list-selection',
387
- 'selection',
388
- 'list-tree',
389
- 'debug-breakpoint-function-unverified',
390
- 'debug-breakpoint-function',
391
- 'debug-breakpoint-function-disabled',
392
- 'debug-stackframe-active',
393
- 'debug-stackframe-dot',
394
- 'debug-stackframe',
395
- 'debug-stackframe-focused',
396
- 'debug-breakpoint-unsupported',
397
- 'symbol-string',
398
- 'debug-reverse-continue',
399
- 'debug-step-back',
400
- 'debug-restart-frame',
401
- 'debug-alt',
402
- 'call-incoming',
403
- 'call-outgoing',
404
- 'menu',
405
- 'expand-all',
406
- 'feedback',
407
- 'group-by-ref-type',
408
- 'ungroup-by-ref-type',
409
- 'account',
410
- 'bell-dot',
411
- 'debug-console',
412
- 'library',
413
- 'output',
414
- 'run-all',
415
- 'sync-ignored',
416
- 'pinned',
417
- 'github-inverted',
418
- 'server-process',
419
- 'server-environment',
420
- 'pass',
421
- 'issue-closed',
422
- 'stop-circle',
423
- 'play-circle',
424
- 'record',
425
- 'debug-alt-small',
426
- 'vm-connect',
427
- 'cloud',
428
- 'merge',
429
- 'export',
430
- 'graph-left',
431
- 'magnet',
432
- 'notebook',
433
- 'redo',
434
- 'check-all',
435
- 'pinned-dirty',
436
- 'pass-filled',
437
- 'circle-large-filled',
438
- 'circle-large-outline',
439
- 'combine',
440
- 'gather',
441
- 'table',
442
- 'variable-group',
443
- 'type-hierarchy',
444
- 'type-hierarchy-sub',
445
- 'type-hierarchy-super',
446
- 'git-pull-request-create',
447
- 'run-above',
448
- 'run-below',
449
- 'notebook-template',
450
- 'debug-rerun',
451
- 'workspace-trusted',
452
- 'workspace-untrusted',
453
- 'workspace-unknown',
454
- 'terminal-cmd',
455
- 'terminal-debian',
456
- 'terminal-linux',
457
- 'terminal-powershell',
458
- 'terminal-tmux',
459
- 'terminal-ubuntu',
460
- 'terminal-bash',
461
- 'arrow-swap',
462
- 'copy',
463
- 'person-add',
464
- 'filter-filled',
465
- 'wand',
466
- 'debug-line-by-line',
467
- 'inspect',
468
- 'layers',
469
- 'layers-dot',
470
- 'layers-active',
471
- 'compass',
472
- 'compass-dot',
473
- 'compass-active',
474
- 'azure',
475
- 'issue-draft',
476
- 'git-pull-request-closed',
477
- 'git-pull-request-draft',
478
- 'debug-all',
479
- 'debug-coverage',
480
- 'run-errors',
481
- 'folder-library',
482
- 'debug-continue-small',
483
- 'beaker-stop',
484
- 'graph-line',
485
- 'graph-scatter',
486
- 'pie-chart',
487
- 'bracket',
488
- 'bracket-dot',
489
- 'bracket-error',
490
- 'lock-small',
491
- 'azure-devops',
492
- 'verified-filled',
493
- 'newline',
494
- 'layout',
495
- ];
496
-
497
- /**
498
- * @param iconKey icon id
499
- * @param fallback codicon 找不到 icon 时是否回退到 octicon
500
- */
501
- export function getExternalIcon(iconKey: string, iconOwner = CODICON_OWNER, fallback = iconOwner === CODICON_OWNER) {
502
- if (fallback && iconOwner === CODICON_OWNER && !codIconId.includes(iconKey)) {
503
- return getOctIcon(iconKey);
504
- }
505
- return `${iconOwner} ${iconOwner}-${iconKey}`;
506
- }
507
-
508
- /**
509
- * @internal
510
- */
511
- export const getSymbolIcon = (() => {
512
- const _fromMapping: { [n: number]: string } = Object.create(null);
513
- _fromMapping[SymbolKindEnum.File] = 'file';
514
- _fromMapping[SymbolKindEnum.Module] = 'module';
515
- _fromMapping[SymbolKindEnum.Namespace] = 'namespace';
516
- _fromMapping[SymbolKindEnum.Package] = 'package';
517
- _fromMapping[SymbolKindEnum.Class] = 'class';
518
- _fromMapping[SymbolKindEnum.Method] = 'method';
519
- _fromMapping[SymbolKindEnum.Property] = 'property';
520
- _fromMapping[SymbolKindEnum.Field] = 'field';
521
- _fromMapping[SymbolKindEnum.Constructor] = 'constructor';
522
- _fromMapping[SymbolKindEnum.Enum] = 'enum';
523
- _fromMapping[SymbolKindEnum.Interface] = 'interface';
524
- _fromMapping[SymbolKindEnum.Function] = 'function';
525
- _fromMapping[SymbolKindEnum.Variable] = 'variable';
526
- _fromMapping[SymbolKindEnum.Constant] = 'constant';
527
- _fromMapping[SymbolKindEnum.String] = 'string';
528
- _fromMapping[SymbolKindEnum.Number] = 'number';
529
- _fromMapping[SymbolKindEnum.Boolean] = 'boolean';
530
- _fromMapping[SymbolKindEnum.Array] = 'array';
531
- _fromMapping[SymbolKindEnum.Object] = 'object';
532
- _fromMapping[SymbolKindEnum.Key] = 'key';
533
- _fromMapping[SymbolKindEnum.Null] = 'null';
534
- _fromMapping[SymbolKindEnum.EnumMember] = 'enum-member';
535
- _fromMapping[SymbolKindEnum.Struct] = 'struct';
536
- _fromMapping[SymbolKindEnum.Event] = 'event';
537
- _fromMapping[SymbolKindEnum.Operator] = 'operator';
538
- _fromMapping[SymbolKindEnum.TypeParameter] = 'type-parameter';
539
-
540
- return function toCssClassName(kind: SymbolKindEnum, inline?: boolean): string {
541
- return getExternalIcon(`symbol-${_fromMapping[kind] || 'property'}`);
542
- };
543
- })();
@@ -1,13 +0,0 @@
1
- export const IDE_ICONFONT_CN_CSS = '//at.alicdn.com/t/a/font_1432262_0gpk8o1jvjfn.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`;