@theia/core 1.18.0-next.de7b81be → 1.20.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.
Files changed (291) hide show
  1. package/LICENSE +642 -0
  2. package/README.md +3 -2
  3. package/lib/browser/about-dialog.d.ts.map +1 -1
  4. package/lib/browser/about-dialog.js +1 -1
  5. package/lib/browser/about-dialog.js.map +1 -1
  6. package/lib/browser/authentication-service.d.ts.map +1 -1
  7. package/lib/browser/authentication-service.js +1 -1
  8. package/lib/browser/authentication-service.js.map +1 -1
  9. package/lib/browser/color-registry.d.ts +3 -69
  10. package/lib/browser/color-registry.d.ts.map +1 -1
  11. package/lib/browser/color-registry.js +13 -27
  12. package/lib/browser/color-registry.js.map +1 -1
  13. package/lib/browser/common-frontend-contribution.d.ts +7 -0
  14. package/lib/browser/common-frontend-contribution.d.ts.map +1 -1
  15. package/lib/browser/common-frontend-contribution.js +138 -121
  16. package/lib/browser/common-frontend-contribution.js.map +1 -1
  17. package/lib/browser/core-preferences.d.ts +2 -0
  18. package/lib/browser/core-preferences.d.ts.map +1 -1
  19. package/lib/browser/core-preferences.js +33 -18
  20. package/lib/browser/core-preferences.js.map +1 -1
  21. package/lib/browser/dialogs.d.ts +6 -0
  22. package/lib/browser/dialogs.d.ts.map +1 -1
  23. package/lib/browser/dialogs.js +10 -3
  24. package/lib/browser/dialogs.js.map +1 -1
  25. package/lib/browser/frontend-application-module.d.ts.map +1 -1
  26. package/lib/browser/frontend-application-module.js +3 -0
  27. package/lib/browser/frontend-application-module.js.map +1 -1
  28. package/lib/browser/frontend-application.d.ts +6 -0
  29. package/lib/browser/frontend-application.d.ts.map +1 -1
  30. package/lib/browser/frontend-application.js +13 -0
  31. package/lib/browser/frontend-application.js.map +1 -1
  32. package/lib/browser/index.d.ts +1 -0
  33. package/lib/browser/index.d.ts.map +1 -1
  34. package/lib/browser/index.js +1 -0
  35. package/lib/browser/index.js.map +1 -1
  36. package/lib/browser/keybinding.spec.js +5 -0
  37. package/lib/browser/keybinding.spec.js.map +1 -1
  38. package/lib/browser/keyboard/browser-keyboard-frontend-contribution.d.ts.map +1 -1
  39. package/lib/browser/keyboard/browser-keyboard-frontend-contribution.js +16 -11
  40. package/lib/browser/keyboard/browser-keyboard-frontend-contribution.js.map +1 -1
  41. package/lib/browser/keyboard/browser-keyboard-layout-provider.d.ts +1 -1
  42. package/lib/browser/keyboard/browser-keyboard-layout-provider.d.ts.map +1 -1
  43. package/lib/browser/keyboard/browser-keyboard-layout-provider.spec.js +6 -4
  44. package/lib/browser/keyboard/browser-keyboard-layout-provider.spec.js.map +1 -1
  45. package/lib/browser/keyboard/keys.d.ts +2 -251
  46. package/lib/browser/keyboard/keys.d.ts.map +1 -1
  47. package/lib/browser/keyboard/keys.js +12 -614
  48. package/lib/browser/keyboard/keys.js.map +1 -1
  49. package/lib/browser/menu/browser-context-menu-renderer.d.ts +1 -1
  50. package/lib/browser/menu/browser-context-menu-renderer.d.ts.map +1 -1
  51. package/lib/browser/menu/browser-menu-plugin.d.ts +3 -0
  52. package/lib/browser/menu/browser-menu-plugin.d.ts.map +1 -1
  53. package/lib/browser/menu/browser-menu-plugin.js +24 -4
  54. package/lib/browser/menu/browser-menu-plugin.js.map +1 -1
  55. package/lib/browser/messaging/ws-connection-provider.d.ts +3 -3
  56. package/lib/browser/messaging/ws-connection-provider.d.ts.map +1 -1
  57. package/lib/browser/messaging/ws-connection-provider.js +14 -4
  58. package/lib/browser/messaging/ws-connection-provider.js.map +1 -1
  59. package/lib/browser/{nls.d.ts → nls-loader.d.ts} +1 -6
  60. package/lib/browser/nls-loader.d.ts.map +1 -0
  61. package/lib/browser/nls-loader.js +29 -0
  62. package/lib/browser/nls-loader.js.map +1 -0
  63. package/lib/browser/progress-status-bar-item.d.ts +1 -2
  64. package/lib/browser/progress-status-bar-item.d.ts.map +1 -1
  65. package/lib/browser/progress-status-bar-item.js.map +1 -1
  66. package/lib/browser/quick-input/quick-command-frontend-contribution.d.ts.map +1 -1
  67. package/lib/browser/quick-input/quick-command-frontend-contribution.js +2 -1
  68. package/lib/browser/quick-input/quick-command-frontend-contribution.js.map +1 -1
  69. package/lib/browser/quick-input/quick-command-service.d.ts.map +1 -1
  70. package/lib/browser/quick-input/quick-command-service.js +2 -2
  71. package/lib/browser/quick-input/quick-command-service.js.map +1 -1
  72. package/lib/browser/quick-input/quick-input-service.d.ts +1 -201
  73. package/lib/browser/quick-input/quick-input-service.d.ts.map +1 -1
  74. package/lib/browser/quick-input/quick-input-service.js +11 -93
  75. package/lib/browser/quick-input/quick-input-service.js.map +1 -1
  76. package/lib/browser/quick-input/quick-view-service.d.ts +1 -2
  77. package/lib/browser/quick-input/quick-view-service.d.ts.map +1 -1
  78. package/lib/browser/quick-input/quick-view-service.js.map +1 -1
  79. package/lib/browser/shell/application-shell.d.ts +3 -1
  80. package/lib/browser/shell/application-shell.d.ts.map +1 -1
  81. package/lib/browser/shell/application-shell.js +1 -2
  82. package/lib/browser/shell/application-shell.js.map +1 -1
  83. package/lib/browser/shell/shell-layout-restorer.d.ts.map +1 -1
  84. package/lib/browser/shell/shell-layout-restorer.js +5 -3
  85. package/lib/browser/shell/shell-layout-restorer.js.map +1 -1
  86. package/lib/browser/shell/tab-bar-decorator.d.ts +1 -1
  87. package/lib/browser/shell/tab-bar-decorator.d.ts.map +1 -1
  88. package/lib/browser/shell/tab-bar-decorator.js.map +1 -1
  89. package/lib/browser/shell/tab-bar-toolbar.d.ts.map +1 -1
  90. package/lib/browser/shell/tab-bar-toolbar.js +2 -1
  91. package/lib/browser/shell/tab-bar-toolbar.js.map +1 -1
  92. package/lib/browser/shell/tab-bars.d.ts +14 -1
  93. package/lib/browser/shell/tab-bars.d.ts.map +1 -1
  94. package/lib/browser/shell/tab-bars.js +99 -7
  95. package/lib/browser/shell/tab-bars.js.map +1 -1
  96. package/lib/browser/status-bar/status-bar.d.ts +3 -1
  97. package/lib/browser/status-bar/status-bar.d.ts.map +1 -1
  98. package/lib/browser/status-bar/status-bar.js +16 -2
  99. package/lib/browser/status-bar/status-bar.js.map +1 -1
  100. package/lib/browser/storage-service.spec.js +1 -1
  101. package/lib/browser/storage-service.spec.js.map +1 -1
  102. package/lib/browser/theming.d.ts +5 -14
  103. package/lib/browser/theming.d.ts.map +1 -1
  104. package/lib/browser/theming.js +14 -0
  105. package/lib/browser/theming.js.map +1 -1
  106. package/lib/browser/tooltip-service.d.ts +52 -0
  107. package/lib/browser/tooltip-service.d.ts.map +1 -0
  108. package/lib/browser/tooltip-service.js +89 -0
  109. package/lib/browser/tooltip-service.js.map +1 -0
  110. package/lib/browser/tree/tree-model.d.ts.map +1 -1
  111. package/lib/browser/tree/tree-widget.js +1 -1
  112. package/lib/browser/view-container.d.ts +55 -14
  113. package/lib/browser/view-container.d.ts.map +1 -1
  114. package/lib/browser/view-container.js +284 -66
  115. package/lib/browser/view-container.js.map +1 -1
  116. package/lib/browser/window/default-window-service.js +2 -2
  117. package/lib/browser/window/default-window-service.js.map +1 -1
  118. package/lib/browser/window/window-service.d.ts +1 -7
  119. package/lib/browser/window/window-service.d.ts.map +1 -1
  120. package/lib/browser/window/window-service.js +1 -5
  121. package/lib/browser/window/window-service.js.map +1 -1
  122. package/lib/browser/window-contribution.d.ts.map +1 -1
  123. package/lib/browser/window-contribution.js +2 -2
  124. package/lib/browser/window-contribution.js.map +1 -1
  125. package/lib/common/cancellation.d.ts +3 -0
  126. package/lib/common/cancellation.d.ts.map +1 -1
  127. package/lib/common/cancellation.js +8 -1
  128. package/lib/common/cancellation.js.map +1 -1
  129. package/lib/common/color.d.ts +84 -0
  130. package/lib/common/color.d.ts.map +1 -0
  131. package/lib/common/color.js +44 -0
  132. package/lib/common/color.js.map +1 -0
  133. package/lib/common/command.d.ts +1 -0
  134. package/lib/common/command.d.ts.map +1 -1
  135. package/lib/common/command.js +5 -1
  136. package/lib/common/command.js.map +1 -1
  137. package/lib/common/i18n/localization.d.ts +14 -0
  138. package/lib/common/i18n/localization.d.ts.map +1 -1
  139. package/lib/common/i18n/localization.js +54 -1
  140. package/lib/common/i18n/localization.js.map +1 -1
  141. package/lib/common/index.d.ts +1 -0
  142. package/lib/common/index.d.ts.map +1 -1
  143. package/lib/common/index.js +1 -0
  144. package/lib/common/index.js.map +1 -1
  145. package/lib/common/keys.d.ts +269 -0
  146. package/lib/common/keys.d.ts.map +1 -0
  147. package/lib/common/keys.js +634 -0
  148. package/lib/common/keys.js.map +1 -0
  149. package/lib/common/messaging/abstract-connection-provider.d.ts +1 -1
  150. package/lib/common/messaging/abstract-connection-provider.d.ts.map +1 -1
  151. package/lib/common/messaging/abstract-connection-provider.js +3 -1
  152. package/lib/common/messaging/abstract-connection-provider.js.map +1 -1
  153. package/lib/common/messaging/proxy-factory.js +1 -1
  154. package/lib/common/messaging/proxy-factory.js.map +1 -1
  155. package/lib/common/nls.d.ts +28 -0
  156. package/lib/common/nls.d.ts.map +1 -0
  157. package/lib/common/nls.js +91 -0
  158. package/lib/common/nls.js.map +1 -0
  159. package/lib/common/path.d.ts +6 -0
  160. package/lib/common/path.d.ts.map +1 -1
  161. package/lib/common/path.js +16 -4
  162. package/lib/common/path.js.map +1 -1
  163. package/lib/common/path.spec.js +12 -0
  164. package/lib/common/path.spec.js.map +1 -1
  165. package/lib/common/promise-util.d.ts +2 -2
  166. package/lib/common/promise-util.d.ts.map +1 -1
  167. package/lib/common/promise-util.js.map +1 -1
  168. package/lib/common/quick-pick-service.d.ts +219 -1
  169. package/lib/common/quick-pick-service.d.ts.map +1 -1
  170. package/lib/common/quick-pick-service.js +108 -1
  171. package/lib/common/quick-pick-service.js.map +1 -1
  172. package/lib/common/theme.d.ts +30 -0
  173. package/lib/common/theme.d.ts.map +1 -0
  174. package/lib/common/theme.js +18 -0
  175. package/lib/common/theme.js.map +1 -0
  176. package/lib/common/window.d.ts +29 -0
  177. package/lib/common/window.d.ts.map +1 -0
  178. package/lib/common/window.js +23 -0
  179. package/lib/common/window.js.map +1 -0
  180. package/lib/electron-browser/menu/electron-context-menu-renderer.d.ts +9 -5
  181. package/lib/electron-browser/menu/electron-context-menu-renderer.d.ts.map +1 -1
  182. package/lib/electron-browser/menu/electron-context-menu-renderer.js +40 -15
  183. package/lib/electron-browser/menu/electron-context-menu-renderer.js.map +1 -1
  184. package/lib/electron-browser/menu/electron-main-menu-factory.d.ts +5 -8
  185. package/lib/electron-browser/menu/electron-main-menu-factory.d.ts.map +1 -1
  186. package/lib/electron-browser/menu/electron-main-menu-factory.js +10 -17
  187. package/lib/electron-browser/menu/electron-main-menu-factory.js.map +1 -1
  188. package/lib/electron-browser/menu/electron-menu-contribution.d.ts +15 -7
  189. package/lib/electron-browser/menu/electron-menu-contribution.d.ts.map +1 -1
  190. package/lib/electron-browser/menu/electron-menu-contribution.js +112 -42
  191. package/lib/electron-browser/menu/electron-menu-contribution.js.map +1 -1
  192. package/lib/electron-browser/window/electron-window-preferences.d.ts +1 -0
  193. package/lib/electron-browser/window/electron-window-preferences.d.ts.map +1 -1
  194. package/lib/electron-browser/window/electron-window-preferences.js +12 -1
  195. package/lib/electron-browser/window/electron-window-preferences.js.map +1 -1
  196. package/lib/electron-browser/window/electron-window-service.d.ts +1 -1
  197. package/lib/electron-browser/window/electron-window-service.d.ts.map +1 -1
  198. package/lib/electron-common/electron-main-window-service.d.ts +1 -1
  199. package/lib/electron-common/electron-main-window-service.d.ts.map +1 -1
  200. package/lib/electron-common/messaging/electron-messages.d.ts +20 -0
  201. package/lib/electron-common/messaging/electron-messages.d.ts.map +1 -0
  202. package/lib/electron-common/messaging/electron-messages.js +23 -0
  203. package/lib/electron-common/messaging/electron-messages.js.map +1 -0
  204. package/lib/electron-main/electron-main-application.d.ts +6 -0
  205. package/lib/electron-main/electron-main-application.d.ts.map +1 -1
  206. package/lib/electron-main/electron-main-application.js +80 -23
  207. package/lib/electron-main/electron-main-application.js.map +1 -1
  208. package/lib/electron-main/electron-main-window-service-impl.d.ts +1 -1
  209. package/lib/electron-main/electron-main-window-service-impl.d.ts.map +1 -1
  210. package/lib/electron-main/messaging/electron-messaging-contribution.d.ts +1 -1
  211. package/lib/electron-main/messaging/electron-messaging-contribution.d.ts.map +1 -1
  212. package/lib/electron-main/messaging/electron-messaging-contribution.js +1 -2
  213. package/lib/electron-main/messaging/electron-messaging-contribution.js.map +1 -1
  214. package/package.json +13 -9
  215. package/shared/@theia/application-package/lib/api.d.ts +1 -0
  216. package/shared/@theia/application-package/lib/api.js +1 -0
  217. package/src/browser/about-dialog.tsx +2 -2
  218. package/src/browser/authentication-service.ts +1 -2
  219. package/src/browser/color-registry.ts +3 -85
  220. package/src/browser/common-frontend-contribution.ts +116 -99
  221. package/src/browser/core-preferences.ts +37 -18
  222. package/src/browser/dialogs.ts +10 -3
  223. package/src/browser/frontend-application-module.ts +4 -0
  224. package/src/browser/frontend-application.ts +13 -0
  225. package/src/browser/index.ts +1 -0
  226. package/src/browser/keybinding.spec.ts +8 -1
  227. package/src/browser/keyboard/browser-keyboard-frontend-contribution.ts +16 -11
  228. package/src/browser/keyboard/browser-keyboard-layout-provider.spec.ts +10 -4
  229. package/src/browser/keyboard/keys.ts +2 -675
  230. package/src/browser/menu/browser-context-menu-renderer.ts +1 -1
  231. package/src/browser/menu/browser-menu-plugin.ts +25 -5
  232. package/src/browser/messaging/ws-connection-provider.ts +13 -4
  233. package/src/browser/nls-loader.ts +26 -0
  234. package/src/browser/progress-status-bar-item.ts +1 -2
  235. package/src/browser/quick-input/quick-command-frontend-contribution.ts +2 -2
  236. package/src/browser/quick-input/quick-command-service.ts +2 -2
  237. package/src/browser/quick-input/quick-input-service.ts +1 -278
  238. package/src/browser/quick-input/quick-view-service.ts +1 -2
  239. package/src/browser/shell/application-shell.ts +4 -3
  240. package/src/browser/shell/shell-layout-restorer.ts +4 -3
  241. package/src/browser/shell/tab-bar-decorator.ts +1 -1
  242. package/src/browser/shell/tab-bar-toolbar.tsx +3 -1
  243. package/src/browser/shell/tab-bars.ts +103 -8
  244. package/src/browser/status-bar/status-bar.tsx +16 -1
  245. package/src/browser/storage-service.spec.ts +1 -1
  246. package/src/browser/style/alert-messages.css +1 -0
  247. package/src/browser/style/index.css +5 -0
  248. package/src/browser/style/menus.css +10 -1
  249. package/src/browser/style/sidepanel.css +9 -3
  250. package/src/browser/style/tabs.css +30 -0
  251. package/src/browser/style/tooltip.css +28 -0
  252. package/src/browser/style/view-container.css +9 -9
  253. package/src/browser/theming.ts +6 -17
  254. package/src/browser/tooltip-service.tsx +98 -0
  255. package/src/browser/tree/tree-model.ts +1 -1
  256. package/src/browser/tree/tree-widget.tsx +1 -1
  257. package/src/browser/view-container.ts +312 -80
  258. package/src/browser/window/default-window-service.ts +2 -2
  259. package/src/browser/window/window-service.ts +1 -9
  260. package/src/browser/window-contribution.ts +2 -2
  261. package/src/common/cancellation.ts +7 -0
  262. package/src/common/color.ts +100 -0
  263. package/src/common/command.ts +11 -1
  264. package/src/common/i18n/localization.ts +54 -0
  265. package/src/common/i18n/nls.metadata.json +20421 -0
  266. package/src/common/index.ts +1 -0
  267. package/src/common/keys.ts +693 -0
  268. package/src/common/messaging/abstract-connection-provider.ts +3 -1
  269. package/src/common/messaging/proxy-factory.ts +1 -1
  270. package/src/common/nls.ts +104 -0
  271. package/src/common/path.spec.ts +15 -0
  272. package/src/common/path.ts +16 -4
  273. package/src/common/promise-util.ts +3 -3
  274. package/src/common/quick-pick-service.ts +299 -3
  275. package/src/common/theme.ts +32 -0
  276. package/src/common/window.ts +30 -0
  277. package/src/electron-browser/menu/electron-context-menu-renderer.ts +38 -16
  278. package/src/electron-browser/menu/electron-main-menu-factory.ts +10 -15
  279. package/src/electron-browser/menu/electron-menu-contribution.ts +129 -39
  280. package/src/electron-browser/menu/electron-menu-style.css +84 -0
  281. package/src/electron-browser/window/electron-window-preferences.ts +13 -1
  282. package/src/electron-browser/window/electron-window-service.ts +1 -1
  283. package/src/electron-common/electron-main-window-service.ts +1 -1
  284. package/src/electron-common/messaging/electron-messages.ts +20 -0
  285. package/src/electron-main/electron-main-application.ts +86 -20
  286. package/src/electron-main/electron-main-window-service-impl.ts +1 -1
  287. package/src/electron-main/messaging/electron-messaging-contribution.ts +1 -2
  288. package/lib/browser/nls.d.ts.map +0 -1
  289. package/lib/browser/nls.js +0 -64
  290. package/lib/browser/nls.js.map +0 -1
  291. package/src/browser/nls.ts +0 -65
@@ -63,7 +63,7 @@ const env_variables_1 = require("../common/env-variables");
63
63
  const authentication_service_1 = require("./authentication-service");
64
64
  const quick_input_1 = require("./quick-input");
65
65
  const localization_1 = require("../common/i18n/localization");
66
- const nls_1 = require("./nls");
66
+ const nls_1 = require("../common/nls");
67
67
  var CommonMenus;
68
68
  (function (CommonMenus) {
69
69
  CommonMenus.FILE = [...menu_1.MAIN_MENU_BAR, '1_file'];
@@ -92,180 +92,189 @@ var CommonMenus;
92
92
  })(CommonMenus = exports.CommonMenus || (exports.CommonMenus = {}));
93
93
  var CommonCommands;
94
94
  (function (CommonCommands) {
95
- const FILE_CATEGORY = 'File';
96
- const VIEW_CATEGORY = 'View';
95
+ CommonCommands.FILE_CATEGORY = 'File';
96
+ CommonCommands.VIEW_CATEGORY = 'View';
97
+ CommonCommands.PREFERENCES_CATEGORY = 'Preferences';
98
+ CommonCommands.FILE_CATEGORY_KEY = nls_1.nls.getDefaultKey(CommonCommands.FILE_CATEGORY);
99
+ CommonCommands.VIEW_CATEGORY_KEY = nls_1.nls.getDefaultKey(CommonCommands.VIEW_CATEGORY);
100
+ CommonCommands.PREFERENCES_CATEGORY_KEY = nls_1.nls.getDefaultKey(CommonCommands.PREFERENCES_CATEGORY);
97
101
  CommonCommands.OPEN = {
98
102
  id: 'core.open',
99
103
  };
100
- CommonCommands.CUT = {
104
+ CommonCommands.CUT = command_1.Command.toDefaultLocalizedCommand({
101
105
  id: 'core.cut',
102
106
  label: 'Cut'
103
- };
104
- CommonCommands.COPY = {
107
+ });
108
+ CommonCommands.COPY = command_1.Command.toDefaultLocalizedCommand({
105
109
  id: 'core.copy',
106
110
  label: 'Copy'
107
- };
108
- CommonCommands.PASTE = {
111
+ });
112
+ CommonCommands.PASTE = command_1.Command.toDefaultLocalizedCommand({
109
113
  id: 'core.paste',
110
114
  label: 'Paste'
111
- };
112
- CommonCommands.COPY_PATH = {
115
+ });
116
+ CommonCommands.COPY_PATH = command_1.Command.toDefaultLocalizedCommand({
113
117
  id: 'core.copy.path',
114
118
  label: 'Copy Path'
115
- };
116
- CommonCommands.UNDO = {
119
+ });
120
+ CommonCommands.UNDO = command_1.Command.toDefaultLocalizedCommand({
117
121
  id: 'core.undo',
118
122
  label: 'Undo'
119
- };
120
- CommonCommands.REDO = {
123
+ });
124
+ CommonCommands.REDO = command_1.Command.toDefaultLocalizedCommand({
121
125
  id: 'core.redo',
122
126
  label: 'Redo'
123
- };
124
- CommonCommands.SELECT_ALL = {
127
+ });
128
+ CommonCommands.SELECT_ALL = command_1.Command.toDefaultLocalizedCommand({
125
129
  id: 'core.selectAll',
126
130
  label: 'Select All'
127
- };
128
- CommonCommands.FIND = {
131
+ });
132
+ CommonCommands.FIND = command_1.Command.toDefaultLocalizedCommand({
129
133
  id: 'core.find',
130
134
  label: 'Find'
131
- };
132
- CommonCommands.REPLACE = {
135
+ });
136
+ CommonCommands.REPLACE = command_1.Command.toDefaultLocalizedCommand({
133
137
  id: 'core.replace',
134
138
  label: 'Replace'
135
- };
136
- CommonCommands.NEXT_TAB = {
139
+ });
140
+ CommonCommands.NEXT_TAB = command_1.Command.toDefaultLocalizedCommand({
137
141
  id: 'core.nextTab',
138
- category: VIEW_CATEGORY,
139
- label: 'Switch to Next Tab'
140
- };
141
- CommonCommands.PREVIOUS_TAB = {
142
+ category: CommonCommands.VIEW_CATEGORY,
143
+ label: 'Show Next Tab'
144
+ });
145
+ CommonCommands.PREVIOUS_TAB = command_1.Command.toDefaultLocalizedCommand({
142
146
  id: 'core.previousTab',
143
- category: VIEW_CATEGORY,
144
- label: 'Switch to Previous Tab'
145
- };
146
- CommonCommands.NEXT_TAB_IN_GROUP = {
147
+ category: CommonCommands.VIEW_CATEGORY,
148
+ label: 'Show Previous Tab'
149
+ });
150
+ CommonCommands.NEXT_TAB_IN_GROUP = command_1.Command.toLocalizedCommand({
147
151
  id: 'core.nextTabInGroup',
148
- category: VIEW_CATEGORY,
152
+ category: CommonCommands.VIEW_CATEGORY,
149
153
  label: 'Switch to Next Tab in Group'
150
- };
151
- CommonCommands.PREVIOUS_TAB_IN_GROUP = {
154
+ }, 'theia/core/common/showNextTabInGroup', CommonCommands.VIEW_CATEGORY_KEY);
155
+ CommonCommands.PREVIOUS_TAB_IN_GROUP = command_1.Command.toLocalizedCommand({
152
156
  id: 'core.previousTabInGroup',
153
- category: VIEW_CATEGORY,
157
+ category: CommonCommands.VIEW_CATEGORY,
154
158
  label: 'Switch to Previous Tab in Group'
155
- };
156
- CommonCommands.NEXT_TAB_GROUP = {
159
+ }, 'theia/core/common/showPreviousTabInGroup', CommonCommands.VIEW_CATEGORY_KEY);
160
+ CommonCommands.NEXT_TAB_GROUP = command_1.Command.toLocalizedCommand({
157
161
  id: 'core.nextTabGroup',
158
- category: VIEW_CATEGORY,
162
+ category: CommonCommands.VIEW_CATEGORY,
159
163
  label: 'Switch to Next Tab Group'
160
- };
161
- CommonCommands.PREVIOUS_TAB_GROUP = {
164
+ }, 'theia/core/common/showNextTabGroup', CommonCommands.VIEW_CATEGORY_KEY);
165
+ CommonCommands.PREVIOUS_TAB_GROUP = command_1.Command.toLocalizedCommand({
162
166
  id: 'core.previousTabBar',
163
- category: VIEW_CATEGORY,
167
+ category: CommonCommands.VIEW_CATEGORY,
164
168
  label: 'Switch to Previous Tab Group'
165
- };
166
- CommonCommands.CLOSE_TAB = {
169
+ }, 'theia/core/common/showPreviousTabGroup', CommonCommands.VIEW_CATEGORY_KEY);
170
+ CommonCommands.CLOSE_TAB = command_1.Command.toLocalizedCommand({
167
171
  id: 'core.close.tab',
168
- category: VIEW_CATEGORY,
172
+ category: CommonCommands.VIEW_CATEGORY,
169
173
  label: 'Close Tab'
170
- };
171
- CommonCommands.CLOSE_OTHER_TABS = {
174
+ }, 'theia/core/common/closeTab', CommonCommands.VIEW_CATEGORY_KEY);
175
+ CommonCommands.CLOSE_OTHER_TABS = command_1.Command.toLocalizedCommand({
172
176
  id: 'core.close.other.tabs',
173
- category: VIEW_CATEGORY,
177
+ category: CommonCommands.VIEW_CATEGORY,
174
178
  label: 'Close Other Tabs'
175
- };
176
- CommonCommands.CLOSE_RIGHT_TABS = {
179
+ }, 'theia/core/common/closeOthers', CommonCommands.VIEW_CATEGORY_KEY);
180
+ CommonCommands.CLOSE_RIGHT_TABS = command_1.Command.toLocalizedCommand({
177
181
  id: 'core.close.right.tabs',
178
- category: VIEW_CATEGORY,
182
+ category: CommonCommands.VIEW_CATEGORY,
179
183
  label: 'Close Tabs to the Right'
180
- };
181
- CommonCommands.CLOSE_ALL_TABS = {
184
+ }, 'theia/core/common/closeRight', CommonCommands.VIEW_CATEGORY_KEY);
185
+ CommonCommands.CLOSE_ALL_TABS = command_1.Command.toLocalizedCommand({
182
186
  id: 'core.close.all.tabs',
183
- category: VIEW_CATEGORY,
187
+ category: CommonCommands.VIEW_CATEGORY,
184
188
  label: 'Close All Tabs'
185
- };
186
- CommonCommands.CLOSE_MAIN_TAB = {
189
+ }, 'theia/core/common/closeAll', CommonCommands.VIEW_CATEGORY_KEY);
190
+ CommonCommands.CLOSE_MAIN_TAB = command_1.Command.toLocalizedCommand({
187
191
  id: 'core.close.main.tab',
188
- category: VIEW_CATEGORY,
192
+ category: CommonCommands.VIEW_CATEGORY,
189
193
  label: 'Close Tab in Main Area'
190
- };
191
- CommonCommands.CLOSE_OTHER_MAIN_TABS = {
194
+ }, 'theia/core/common/closeTabMain', CommonCommands.VIEW_CATEGORY_KEY);
195
+ CommonCommands.CLOSE_OTHER_MAIN_TABS = command_1.Command.toLocalizedCommand({
192
196
  id: 'core.close.other.main.tabs',
193
- category: VIEW_CATEGORY,
197
+ category: CommonCommands.VIEW_CATEGORY,
194
198
  label: 'Close Other Tabs in Main Area'
195
- };
196
- CommonCommands.CLOSE_ALL_MAIN_TABS = {
199
+ }, 'theia/core/common/closeOtherTabMain', CommonCommands.VIEW_CATEGORY_KEY);
200
+ CommonCommands.CLOSE_ALL_MAIN_TABS = command_1.Command.toLocalizedCommand({
197
201
  id: 'core.close.all.main.tabs',
198
- category: VIEW_CATEGORY,
202
+ category: CommonCommands.VIEW_CATEGORY,
199
203
  label: 'Close All Tabs in Main Area'
200
- };
201
- CommonCommands.COLLAPSE_PANEL = {
204
+ }, 'theia/core/common/closeAllTabMain', CommonCommands.VIEW_CATEGORY_KEY);
205
+ CommonCommands.COLLAPSE_PANEL = command_1.Command.toLocalizedCommand({
202
206
  id: 'core.collapse.tab',
203
- category: VIEW_CATEGORY,
207
+ category: CommonCommands.VIEW_CATEGORY,
204
208
  label: 'Collapse Side Panel'
205
- };
206
- CommonCommands.COLLAPSE_ALL_PANELS = {
209
+ }, 'theia/core/common/collapseTab', CommonCommands.VIEW_CATEGORY_KEY);
210
+ CommonCommands.COLLAPSE_ALL_PANELS = command_1.Command.toLocalizedCommand({
207
211
  id: 'core.collapse.all.tabs',
208
- category: VIEW_CATEGORY,
212
+ category: CommonCommands.VIEW_CATEGORY,
209
213
  label: 'Collapse All Side Panels'
210
- };
211
- CommonCommands.TOGGLE_BOTTOM_PANEL = {
214
+ }, 'theia/core/common/collapseAllTabs', CommonCommands.VIEW_CATEGORY_KEY);
215
+ CommonCommands.TOGGLE_BOTTOM_PANEL = command_1.Command.toLocalizedCommand({
212
216
  id: 'core.toggle.bottom.panel',
213
- category: VIEW_CATEGORY,
217
+ category: CommonCommands.VIEW_CATEGORY,
214
218
  label: 'Toggle Bottom Panel'
215
- };
216
- CommonCommands.TOGGLE_MAXIMIZED = {
219
+ }, 'theia/core/common/collapseBottomPanel', CommonCommands.VIEW_CATEGORY_KEY);
220
+ CommonCommands.TOGGLE_STATUS_BAR = command_1.Command.toDefaultLocalizedCommand({
221
+ id: 'workbench.action.toggleStatusbarVisibility',
222
+ category: CommonCommands.VIEW_CATEGORY,
223
+ label: 'Toggle Status Bar Visibility'
224
+ });
225
+ CommonCommands.TOGGLE_MAXIMIZED = command_1.Command.toLocalizedCommand({
217
226
  id: 'core.toggleMaximized',
218
- category: VIEW_CATEGORY,
227
+ category: CommonCommands.VIEW_CATEGORY,
219
228
  label: 'Toggle Maximized'
220
- };
221
- CommonCommands.OPEN_VIEW = {
229
+ }, 'theia/core/common/toggleMaximized', CommonCommands.VIEW_CATEGORY_KEY);
230
+ CommonCommands.OPEN_VIEW = command_1.Command.toDefaultLocalizedCommand({
222
231
  id: 'core.openView',
223
- category: VIEW_CATEGORY,
232
+ category: CommonCommands.VIEW_CATEGORY,
224
233
  label: 'Open View...'
225
- };
226
- CommonCommands.SAVE = {
234
+ });
235
+ CommonCommands.SAVE = command_1.Command.toDefaultLocalizedCommand({
227
236
  id: 'core.save',
228
- category: FILE_CATEGORY,
237
+ category: CommonCommands.FILE_CATEGORY,
229
238
  label: 'Save',
230
- };
231
- CommonCommands.SAVE_WITHOUT_FORMATTING = {
239
+ });
240
+ CommonCommands.SAVE_WITHOUT_FORMATTING = command_1.Command.toDefaultLocalizedCommand({
232
241
  id: 'core.saveWithoutFormatting',
233
- category: FILE_CATEGORY,
242
+ category: CommonCommands.FILE_CATEGORY,
234
243
  label: 'Save without Formatting',
235
- };
236
- CommonCommands.SAVE_ALL = {
244
+ });
245
+ CommonCommands.SAVE_ALL = command_1.Command.toDefaultLocalizedCommand({
237
246
  id: 'core.saveAll',
238
- category: FILE_CATEGORY,
247
+ category: CommonCommands.FILE_CATEGORY,
239
248
  label: 'Save All',
240
- };
241
- CommonCommands.AUTO_SAVE = {
249
+ });
250
+ CommonCommands.AUTO_SAVE = command_1.Command.toDefaultLocalizedCommand({
242
251
  id: 'textEditor.commands.autosave',
243
- category: FILE_CATEGORY,
252
+ category: CommonCommands.FILE_CATEGORY,
244
253
  label: 'Auto Save',
245
- };
246
- CommonCommands.ABOUT_COMMAND = {
254
+ });
255
+ CommonCommands.ABOUT_COMMAND = command_1.Command.toDefaultLocalizedCommand({
247
256
  id: 'core.about',
248
257
  label: 'About'
249
- };
250
- CommonCommands.OPEN_PREFERENCES = {
258
+ });
259
+ CommonCommands.OPEN_PREFERENCES = command_1.Command.toDefaultLocalizedCommand({
251
260
  id: 'preferences:open',
252
- category: 'Settings',
253
- label: 'Open Preferences',
254
- };
255
- CommonCommands.SELECT_COLOR_THEME = {
261
+ category: CommonCommands.PREFERENCES_CATEGORY,
262
+ label: 'Open Settings (UI)',
263
+ });
264
+ CommonCommands.SELECT_COLOR_THEME = command_1.Command.toDefaultLocalizedCommand({
256
265
  id: 'workbench.action.selectTheme',
257
266
  label: 'Color Theme',
258
- category: 'Preferences'
259
- };
260
- CommonCommands.SELECT_ICON_THEME = {
267
+ category: CommonCommands.PREFERENCES_CATEGORY
268
+ });
269
+ CommonCommands.SELECT_ICON_THEME = command_1.Command.toDefaultLocalizedCommand({
261
270
  id: 'workbench.action.selectIconTheme',
262
271
  label: 'File Icon Theme',
263
- category: 'Preferences'
264
- };
265
- CommonCommands.CONFIGURE_DISPLAY_LANGUAGE = command_1.Command.toLocalizedCommand({
272
+ category: CommonCommands.PREFERENCES_CATEGORY
273
+ });
274
+ CommonCommands.CONFIGURE_DISPLAY_LANGUAGE = command_1.Command.toDefaultLocalizedCommand({
266
275
  id: 'workbench.action.configureLanguage',
267
276
  label: 'Configure Display Language'
268
- }, 'vscode/localizationsActions/configureLocale');
277
+ });
269
278
  })(CommonCommands = exports.CommonCommands || (exports.CommonCommands = {}));
270
279
  exports.supportCut = browser.isNative || document.queryCommandSupported('cut');
271
280
  exports.supportCopy = browser.isNative || document.queryCommandSupported('copy');
@@ -306,14 +315,14 @@ let CommonFrontendContribution = class CommonFrontendContribution {
306
315
  app.shell.leftPanelHandler.addBottomMenu({
307
316
  id: 'settings-menu',
308
317
  iconClass: 'codicon codicon-settings-gear',
309
- title: 'Settings',
318
+ title: nls_1.nls.localizeByDefault(CommonCommands.PREFERENCES_CATEGORY),
310
319
  menuPath: menu_1.SETTINGS_MENU,
311
320
  order: 0,
312
321
  });
313
322
  const accountsMenu = {
314
323
  id: 'accounts-menu',
315
324
  iconClass: 'codicon codicon-person',
316
- title: 'Accounts',
325
+ title: nls_1.nls.localizeByDefault('Accounts'),
317
326
  menuPath: menu_1.ACCOUNTS_MENU,
318
327
  order: 1,
319
328
  };
@@ -375,7 +384,7 @@ let CommonFrontendContribution = class CommonFrontendContribution {
375
384
  this.shell.leftPanelHandler.addTopMenu({
376
385
  id: mainMenuId,
377
386
  iconClass: 'codicon codicon-menu',
378
- title: 'Application Menu',
387
+ title: nls_1.nls.localizeByDefault('Application Menu'),
379
388
  menuPath: ['menubar'],
380
389
  order: 0,
381
390
  });
@@ -405,10 +414,10 @@ let CommonFrontendContribution = class CommonFrontendContribution {
405
414
  this.selectionService.onSelectionChanged(updateContextKeys);
406
415
  }
407
416
  registerMenus(registry) {
408
- registry.registerSubmenu(CommonMenus.FILE, 'File');
409
- registry.registerSubmenu(CommonMenus.EDIT, 'Edit');
410
- registry.registerSubmenu(CommonMenus.VIEW, 'View');
411
- registry.registerSubmenu(CommonMenus.HELP, 'Help');
417
+ registry.registerSubmenu(CommonMenus.FILE, nls_1.nls.localizeByDefault('File'));
418
+ registry.registerSubmenu(CommonMenus.EDIT, nls_1.nls.localizeByDefault('Edit'));
419
+ registry.registerSubmenu(CommonMenus.VIEW, nls_1.nls.localizeByDefault('View'));
420
+ registry.registerSubmenu(CommonMenus.HELP, nls_1.nls.localizeByDefault('Help'));
412
421
  registry.registerMenuAction(CommonMenus.FILE_SAVE, {
413
422
  commandId: CommonCommands.SAVE.id
414
423
  });
@@ -418,7 +427,7 @@ let CommonFrontendContribution = class CommonFrontendContribution {
418
427
  registry.registerMenuAction(CommonMenus.FILE_AUTOSAVE, {
419
428
  commandId: CommonCommands.AUTO_SAVE.id
420
429
  });
421
- registry.registerSubmenu(CommonMenus.FILE_SETTINGS_SUBMENU, 'Settings');
430
+ registry.registerSubmenu(CommonMenus.FILE_SETTINGS_SUBMENU, nls_1.nls.localizeByDefault(CommonCommands.PREFERENCES_CATEGORY));
422
431
  registry.registerMenuAction(CommonMenus.EDIT_UNDO, {
423
432
  commandId: CommonCommands.UNDO.id,
424
433
  order: '0'
@@ -455,43 +464,48 @@ let CommonFrontendContribution = class CommonFrontendContribution {
455
464
  commandId: CommonCommands.TOGGLE_BOTTOM_PANEL.id,
456
465
  order: '0'
457
466
  });
467
+ registry.registerMenuAction(CommonMenus.VIEW_LAYOUT, {
468
+ commandId: CommonCommands.TOGGLE_STATUS_BAR.id,
469
+ order: '1',
470
+ label: 'Toggle Status Bar'
471
+ });
458
472
  registry.registerMenuAction(CommonMenus.VIEW_LAYOUT, {
459
473
  commandId: CommonCommands.COLLAPSE_ALL_PANELS.id,
460
- order: '1'
474
+ order: '2'
461
475
  });
462
476
  registry.registerMenuAction(tab_bars_1.SHELL_TABBAR_CONTEXT_MENU, {
463
477
  commandId: CommonCommands.CLOSE_TAB.id,
464
- label: 'Close',
478
+ label: nls_1.nls.localizeByDefault('Close'),
465
479
  order: '0'
466
480
  });
467
481
  registry.registerMenuAction(tab_bars_1.SHELL_TABBAR_CONTEXT_MENU, {
468
482
  commandId: CommonCommands.CLOSE_OTHER_TABS.id,
469
- label: 'Close Others',
483
+ label: nls_1.nls.localizeByDefault('Close Others'),
470
484
  order: '1'
471
485
  });
472
486
  registry.registerMenuAction(tab_bars_1.SHELL_TABBAR_CONTEXT_MENU, {
473
487
  commandId: CommonCommands.CLOSE_RIGHT_TABS.id,
474
- label: 'Close to the Right',
488
+ label: nls_1.nls.localizeByDefault('Close to the Right'),
475
489
  order: '2'
476
490
  });
477
491
  registry.registerMenuAction(tab_bars_1.SHELL_TABBAR_CONTEXT_MENU, {
478
492
  commandId: CommonCommands.CLOSE_ALL_TABS.id,
479
- label: 'Close All',
493
+ label: nls_1.nls.localizeByDefault('Close All'),
480
494
  order: '3'
481
495
  });
482
496
  registry.registerMenuAction(tab_bars_1.SHELL_TABBAR_CONTEXT_MENU, {
483
497
  commandId: CommonCommands.COLLAPSE_PANEL.id,
484
- label: 'Collapse',
498
+ label: CommonCommands.COLLAPSE_PANEL.label,
485
499
  order: '4'
486
500
  });
487
501
  registry.registerMenuAction(tab_bars_1.SHELL_TABBAR_CONTEXT_MENU, {
488
502
  commandId: CommonCommands.TOGGLE_MAXIMIZED.id,
489
- label: 'Toggle Maximized',
503
+ label: CommonCommands.TOGGLE_MAXIMIZED.label,
490
504
  order: '5'
491
505
  });
492
506
  registry.registerMenuAction(CommonMenus.HELP, {
493
507
  commandId: CommonCommands.ABOUT_COMMAND.id,
494
- label: 'About',
508
+ label: CommonCommands.ABOUT_COMMAND.label,
495
509
  order: '9'
496
510
  });
497
511
  registry.registerMenuAction(CommonMenus.VIEW_PRIMARY, {
@@ -696,6 +710,9 @@ let CommonFrontendContribution = class CommonFrontendContribution {
696
710
  }
697
711
  }
698
712
  });
713
+ commandRegistry.registerCommand(CommonCommands.TOGGLE_STATUS_BAR, {
714
+ execute: () => this.preferenceService.updateValue('workbench.statusBar.visible', !this.preferences['workbench.statusBar.visible'])
715
+ });
699
716
  commandRegistry.registerCommand(CommonCommands.TOGGLE_MAXIMIZED, {
700
717
  isEnabled: (event) => this.canToggleMaximized(event),
701
718
  isVisible: (event) => this.canToggleMaximized(event),
@@ -950,7 +967,7 @@ let CommonFrontendContribution = class CommonFrontendContribution {
950
967
  return a.label.localeCompare(b.label);
951
968
  });
952
969
  (_a = this.quickInputService) === null || _a === void 0 ? void 0 : _a.showQuickPick(items, {
953
- placeholder: 'Select File Icon Theme',
970
+ placeholder: nls_1.nls.localizeByDefault('Select File Icon Theme'),
954
971
  activeItem: items.find(item => item.id === resetTo),
955
972
  onDidChangeSelection: (quickPick, selectedItems) => {
956
973
  resetTo = undefined;
@@ -987,7 +1004,7 @@ let CommonFrontendContribution = class CommonFrontendContribution {
987
1004
  }
988
1005
  const items = [...itemsByTheme.light, ...itemsByTheme.dark, ...itemsByTheme.hc];
989
1006
  (_a = this.quickInputService) === null || _a === void 0 ? void 0 : _a.showQuickPick(items, {
990
- placeholder: 'Select Color Theme (Up/Down Keys to Preview)',
1007
+ placeholder: nls_1.nls.localizeByDefault('Select Color Theme (Up/Down Keys to Preview)'),
991
1008
  activeItem: items.find((item) => item.id === resetTo),
992
1009
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
993
1010
  onDidChangeSelection: (quickPick, selectedItems) => {