@opensumi/ide-electron-basic 2.23.1 → 2.23.2-next-1679902117.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/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +11 -17
- package/lib/browser/index.js.map +1 -1
- package/package.json +10 -10
- package/src/browser/index.ts +11 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAyC,QAAQ,EAAE,MAAM,cAAc,CAAC;AACzF,OAAO,EACL,aAAa,EAEb,SAAS,EAET,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAyC,QAAQ,EAAE,MAAM,cAAc,CAAC;AACzF,OAAO,EACL,aAAa,EAEb,SAAS,EAET,qBAAqB,EAIrB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAIlB,OAAO,EAEP,SAAS,EAGV,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AACjG,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAU,MAAM,0CAA0C,CAAC;AAoBnG,OAAO,sBAAsB,CAAC;AAE9B,qBACa,mBAAoB,SAAQ,aAAa;IACpD,SAAS,EAAE,QAAQ,EAAE,CAYnB;CACH;AAwCD,qBACa,yBACX,YACE,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB;IAGlB,MAAM,EAAE,SAAS,CAAC;IAGlB,QAAQ,EAAE,QAAQ,CAAC;IAGnB,QAAQ,EAAE,SAAS,CAAC;IAGpB,OAAO,CAAC,sBAAsB,CAA0B;IAGxD,OAAO,CAAC,uBAAuB,CAA2B;IAG1D,OAAO,CAAC,4BAA4B,CAAgC;IAGpE,OAAO,CAAC,qBAAqB,CAAyB;IAGtD,OAAO,CAAC,cAAc,CAAkB;IAGxC,MAAM,EAAE,OAAO,CAAC;IAEhB,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB;IAqB7C,aAAa,CAAC,YAAY,EAAE,aAAa;IAqCzC,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;IAuHjD,mBAAmB,CAAC,WAAW,EAAE,kBAAkB;IAgCnD,OAAO;CAwCR"}
|
package/lib/browser/index.js
CHANGED
|
@@ -75,7 +75,6 @@ const nativeRoles = [
|
|
|
75
75
|
name: 'toggleDevTools',
|
|
76
76
|
key: 'alt+ctrlcmd+i',
|
|
77
77
|
label: '%window.toggleDevTools%',
|
|
78
|
-
alias: 'Toggle Developer Tools',
|
|
79
78
|
},
|
|
80
79
|
];
|
|
81
80
|
let ElectronBasicContribution = class ElectronBasicContribution {
|
|
@@ -99,7 +98,7 @@ let ElectronBasicContribution = class ElectronBasicContribution {
|
|
|
99
98
|
menuRegistry.registerMenuItem(next_1.MenuId.MenubarAppMenu, {
|
|
100
99
|
command: {
|
|
101
100
|
id: 'electron.about',
|
|
102
|
-
label:
|
|
101
|
+
label: '%common.about%',
|
|
103
102
|
},
|
|
104
103
|
group: '0_about',
|
|
105
104
|
nativeRole: 'about',
|
|
@@ -107,14 +106,14 @@ let ElectronBasicContribution = class ElectronBasicContribution {
|
|
|
107
106
|
menuRegistry.registerMenuItem(next_1.MenuId.MenubarHelpMenu, {
|
|
108
107
|
command: {
|
|
109
108
|
id: 'electron.toggleDevTools',
|
|
110
|
-
label:
|
|
109
|
+
label: '%window.toggleDevTools%',
|
|
111
110
|
},
|
|
112
111
|
nativeRole: 'toggledevtools',
|
|
113
112
|
});
|
|
114
113
|
menuRegistry.registerMenuItem(next_1.MenuId.MenubarHelpMenu, {
|
|
115
114
|
command: {
|
|
116
115
|
id: 'electron.reload',
|
|
117
|
-
label:
|
|
116
|
+
label: '%window.reload%',
|
|
118
117
|
},
|
|
119
118
|
});
|
|
120
119
|
menuRegistry.registerMenuItem(next_1.MenuId.ExplorerContext, {
|
|
@@ -132,8 +131,7 @@ let ElectronBasicContribution = class ElectronBasicContribution {
|
|
|
132
131
|
nativeRoles.forEach((role) => {
|
|
133
132
|
commands.registerCommand({
|
|
134
133
|
id: 'electron.' + role.name,
|
|
135
|
-
label:
|
|
136
|
-
alias: role.alias,
|
|
134
|
+
label: role.label,
|
|
137
135
|
}, {
|
|
138
136
|
execute: () => {
|
|
139
137
|
this.electronMainMenuService.runNativeRoleAction(role.name);
|
|
@@ -142,8 +140,7 @@ let ElectronBasicContribution = class ElectronBasicContribution {
|
|
|
142
140
|
});
|
|
143
141
|
commands.registerCommand({
|
|
144
142
|
id: 'electron.zoomIn',
|
|
145
|
-
label:
|
|
146
|
-
alias: 'View: Zoom In',
|
|
143
|
+
label: '%view.zoomIn%',
|
|
147
144
|
}, {
|
|
148
145
|
execute: () => {
|
|
149
146
|
this.electronMainUIService.setZoomFactor(ide_core_browser_1.electronEnv.currentWebContentsId, {
|
|
@@ -153,8 +150,7 @@ let ElectronBasicContribution = class ElectronBasicContribution {
|
|
|
153
150
|
});
|
|
154
151
|
commands.registerCommand({
|
|
155
152
|
id: 'electron.zoomOut',
|
|
156
|
-
label:
|
|
157
|
-
alias: 'View: Zoom Out',
|
|
153
|
+
label: '%view.zoomOut%',
|
|
158
154
|
}, {
|
|
159
155
|
execute: () => {
|
|
160
156
|
this.electronMainUIService.setZoomFactor(ide_core_browser_1.electronEnv.currentWebContentsId, {
|
|
@@ -164,8 +160,7 @@ let ElectronBasicContribution = class ElectronBasicContribution {
|
|
|
164
160
|
});
|
|
165
161
|
commands.registerCommand({
|
|
166
162
|
id: 'electron.zoomReset',
|
|
167
|
-
label:
|
|
168
|
-
alias: 'View: Zoom Reset',
|
|
163
|
+
label: '%view.zoomReset%',
|
|
169
164
|
}, {
|
|
170
165
|
execute: () => {
|
|
171
166
|
this.electronMainUIService.setZoomFactor(ide_core_browser_1.electronEnv.currentWebContentsId, {
|
|
@@ -175,8 +170,7 @@ let ElectronBasicContribution = class ElectronBasicContribution {
|
|
|
175
170
|
});
|
|
176
171
|
commands.registerCommand({
|
|
177
172
|
id: 'electron.reload',
|
|
178
|
-
label:
|
|
179
|
-
alias: 'Reload Window',
|
|
173
|
+
label: '%window.reload%',
|
|
180
174
|
}, {
|
|
181
175
|
execute: () => {
|
|
182
176
|
this.electronMainLifeCycleService.reloadWindow(ide_core_browser_1.electronEnv.currentWindowId);
|
|
@@ -184,7 +178,7 @@ let ElectronBasicContribution = class ElectronBasicContribution {
|
|
|
184
178
|
});
|
|
185
179
|
commands.registerCommand({
|
|
186
180
|
id: 'electron.revealInFinder',
|
|
187
|
-
label:
|
|
181
|
+
label: '%explorer.electron.revealInFinder%',
|
|
188
182
|
}, {
|
|
189
183
|
execute: (uri) => {
|
|
190
184
|
if (uri && uri.scheme === ide_core_browser_1.Schemes.file) {
|
|
@@ -194,7 +188,7 @@ let ElectronBasicContribution = class ElectronBasicContribution {
|
|
|
194
188
|
});
|
|
195
189
|
commands.registerCommand({
|
|
196
190
|
id: 'electron.revealInFinderTab',
|
|
197
|
-
label:
|
|
191
|
+
label: '%explorer.electron.revealInFinder%',
|
|
198
192
|
}, {
|
|
199
193
|
execute: ({ uri } = {}) => {
|
|
200
194
|
if (uri && uri.scheme === ide_core_browser_1.Schemes.file) {
|
|
@@ -204,7 +198,7 @@ let ElectronBasicContribution = class ElectronBasicContribution {
|
|
|
204
198
|
});
|
|
205
199
|
commands.registerCommand({
|
|
206
200
|
id: 'electron.openInSystemTerminal',
|
|
207
|
-
label:
|
|
201
|
+
label: '%explorer.electron.openInSystemTerminal%',
|
|
208
202
|
}, {
|
|
209
203
|
execute: (uri) => {
|
|
210
204
|
if (uri && uri.scheme === ide_core_browser_1.Schemes.file) {
|
package/lib/browser/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";;;;AAAA,qCAAyF;AACzF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";;;;AAAA,qCAAyF;AACzF,iEAqBoC;AACpC,kEAAiG;AACjG,mEAAmG;AACnG,iGAA6G;AAC7G,qEAA+G;AAE/G,8DAI0C;AAC1C,6DAAmE;AAEnE,6CAA0D;AAE1D,2CAAuD;AACvD,qCAAuD;AACvD,yFAAoF;AACpF,4DAAgE;AAChE,sDAAyD;AACzD,yDAA6D;AAE7D,gCAA8B;AAGvB,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,gCAAa;IAA/C;;QACL,cAAS,GAAe;YACtB;gBACE,KAAK,EAAE,+CAA4B;gBACnC,QAAQ,EAAE,oCAA2B;aACtC;YACD;gBACE,KAAK,EAAE,+BAAsB;gBAC7B,QAAQ,EAAE,sCAAqB;aAChC;YACD,yBAAyB;YACzB,iEAA8B;YAC9B,kCAAmB;SACpB,CAAC;IACJ,CAAC;CAAA,CAAA;AAdY,mBAAmB;IAD/B,IAAA,eAAU,GAAE;GACA,mBAAmB,CAc/B;AAdY,kDAAmB;AAgBhC,MAAM,WAAW,GAAG;IAClB;QACE,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,WAAW;QAChB,IAAI,EAAE,cAAc;KACrB;IACD;QACE,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,iBAAiB;QACtB,IAAI,EAAE,cAAc;KACrB;IACD;QACE,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,WAAW;QAChB,IAAI,EAAE,cAAc;KACrB;IACD;QACE,IAAI,EAAE,OAAO;QACb,GAAG,EAAE,WAAW;QAChB,IAAI,EAAE,cAAc;KACrB;IACD;QACE,IAAI,EAAE,WAAW;QACjB,GAAG,EAAE,WAAW;QAChB,IAAI,EAAE,cAAc;KACrB;IACD;QACE,IAAI,E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B,EAAE,uBAAgB,EAAE,sCAAmB,EAAE,yCAAsB,CAAC;GACvG,yBAAyB,CA4RrC;AA5RY,8DAAyB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-electron-basic",
|
|
3
|
-
"version": "2.23.
|
|
3
|
+
"version": "2.23.2-next-1679902117.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"lib",
|
|
6
6
|
"src"
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"url": "git@github.com:opensumi/core.git"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@opensumi/ide-core-common": "2.23.
|
|
21
|
-
"@opensumi/ide-core-node": "2.23.
|
|
22
|
-
"@opensumi/ide-file-service": "2.23.
|
|
23
|
-
"@opensumi/ide-utils": "2.23.
|
|
20
|
+
"@opensumi/ide-core-common": "2.23.2-next-1679902117.0",
|
|
21
|
+
"@opensumi/ide-core-node": "2.23.2-next-1679902117.0",
|
|
22
|
+
"@opensumi/ide-file-service": "2.23.2-next-1679902117.0",
|
|
23
|
+
"@opensumi/ide-utils": "2.23.2-next-1679902117.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@opensumi/ide-core-browser": "2.23.
|
|
26
|
+
"@opensumi/ide-core-browser": "2.23.2-next-1679902117.0",
|
|
27
27
|
"@opensumi/ide-dev-tool": "1.3.1",
|
|
28
|
-
"@opensumi/ide-editor": "2.23.
|
|
29
|
-
"@opensumi/ide-overlay": "2.23.
|
|
30
|
-
"@opensumi/ide-workspace": "2.23.
|
|
28
|
+
"@opensumi/ide-editor": "2.23.2-next-1679902117.0",
|
|
29
|
+
"@opensumi/ide-overlay": "2.23.2-next-1679902117.0",
|
|
30
|
+
"@opensumi/ide-workspace": "2.23.2-next-1679902117.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "dd99eed55dae8ceefb1d746636439299a6700124"
|
|
33
33
|
}
|
package/src/browser/index.ts
CHANGED
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
isOSX,
|
|
7
7
|
ClientAppContribution,
|
|
8
8
|
IElectronMainMenuService,
|
|
9
|
-
localize,
|
|
10
9
|
SlotLocation,
|
|
11
10
|
IElectronNativeDialogService,
|
|
12
11
|
CommandContribution,
|
|
@@ -15,7 +14,6 @@ import {
|
|
|
15
14
|
KeybindingRegistry,
|
|
16
15
|
isWindows,
|
|
17
16
|
electronEnv,
|
|
18
|
-
replaceLocalizePlaceholder,
|
|
19
17
|
URI,
|
|
20
18
|
ILogger,
|
|
21
19
|
formatLocalize,
|
|
@@ -98,7 +96,6 @@ const nativeRoles = [
|
|
|
98
96
|
name: 'toggleDevTools',
|
|
99
97
|
key: 'alt+ctrlcmd+i',
|
|
100
98
|
label: '%window.toggleDevTools%',
|
|
101
|
-
alias: 'Toggle Developer Tools',
|
|
102
99
|
},
|
|
103
100
|
];
|
|
104
101
|
|
|
@@ -163,7 +160,7 @@ export class ElectronBasicContribution
|
|
|
163
160
|
menuRegistry.registerMenuItem(MenuId.MenubarAppMenu, {
|
|
164
161
|
command: {
|
|
165
162
|
id: 'electron.about',
|
|
166
|
-
label:
|
|
163
|
+
label: '%common.about%',
|
|
167
164
|
},
|
|
168
165
|
group: '0_about',
|
|
169
166
|
nativeRole: 'about',
|
|
@@ -172,7 +169,7 @@ export class ElectronBasicContribution
|
|
|
172
169
|
menuRegistry.registerMenuItem(MenuId.MenubarHelpMenu, {
|
|
173
170
|
command: {
|
|
174
171
|
id: 'electron.toggleDevTools',
|
|
175
|
-
label:
|
|
172
|
+
label: '%window.toggleDevTools%',
|
|
176
173
|
},
|
|
177
174
|
nativeRole: 'toggledevtools',
|
|
178
175
|
});
|
|
@@ -180,7 +177,7 @@ export class ElectronBasicContribution
|
|
|
180
177
|
menuRegistry.registerMenuItem(MenuId.MenubarHelpMenu, {
|
|
181
178
|
command: {
|
|
182
179
|
id: 'electron.reload',
|
|
183
|
-
label:
|
|
180
|
+
label: '%window.reload%',
|
|
184
181
|
},
|
|
185
182
|
});
|
|
186
183
|
|
|
@@ -201,8 +198,7 @@ export class ElectronBasicContribution
|
|
|
201
198
|
commands.registerCommand(
|
|
202
199
|
{
|
|
203
200
|
id: 'electron.' + role.name,
|
|
204
|
-
label:
|
|
205
|
-
alias: role.alias,
|
|
201
|
+
label: role.label,
|
|
206
202
|
},
|
|
207
203
|
{
|
|
208
204
|
execute: () => {
|
|
@@ -215,8 +211,7 @@ export class ElectronBasicContribution
|
|
|
215
211
|
commands.registerCommand(
|
|
216
212
|
{
|
|
217
213
|
id: 'electron.zoomIn',
|
|
218
|
-
label:
|
|
219
|
-
alias: 'View: Zoom In',
|
|
214
|
+
label: '%view.zoomIn%',
|
|
220
215
|
},
|
|
221
216
|
{
|
|
222
217
|
execute: () => {
|
|
@@ -230,8 +225,7 @@ export class ElectronBasicContribution
|
|
|
230
225
|
commands.registerCommand(
|
|
231
226
|
{
|
|
232
227
|
id: 'electron.zoomOut',
|
|
233
|
-
label:
|
|
234
|
-
alias: 'View: Zoom Out',
|
|
228
|
+
label: '%view.zoomOut%',
|
|
235
229
|
},
|
|
236
230
|
{
|
|
237
231
|
execute: () => {
|
|
@@ -245,8 +239,7 @@ export class ElectronBasicContribution
|
|
|
245
239
|
commands.registerCommand(
|
|
246
240
|
{
|
|
247
241
|
id: 'electron.zoomReset',
|
|
248
|
-
label:
|
|
249
|
-
alias: 'View: Zoom Reset',
|
|
242
|
+
label: '%view.zoomReset%',
|
|
250
243
|
},
|
|
251
244
|
{
|
|
252
245
|
execute: () => {
|
|
@@ -260,8 +253,7 @@ export class ElectronBasicContribution
|
|
|
260
253
|
commands.registerCommand(
|
|
261
254
|
{
|
|
262
255
|
id: 'electron.reload',
|
|
263
|
-
label:
|
|
264
|
-
alias: 'Reload Window',
|
|
256
|
+
label: '%window.reload%',
|
|
265
257
|
},
|
|
266
258
|
{
|
|
267
259
|
execute: () => {
|
|
@@ -273,7 +265,7 @@ export class ElectronBasicContribution
|
|
|
273
265
|
commands.registerCommand(
|
|
274
266
|
{
|
|
275
267
|
id: 'electron.revealInFinder',
|
|
276
|
-
label:
|
|
268
|
+
label: '%explorer.electron.revealInFinder%',
|
|
277
269
|
},
|
|
278
270
|
{
|
|
279
271
|
execute: (uri: URI) => {
|
|
@@ -287,7 +279,7 @@ export class ElectronBasicContribution
|
|
|
287
279
|
commands.registerCommand(
|
|
288
280
|
{
|
|
289
281
|
id: 'electron.revealInFinderTab',
|
|
290
|
-
label:
|
|
282
|
+
label: '%explorer.electron.revealInFinder%',
|
|
291
283
|
},
|
|
292
284
|
{
|
|
293
285
|
execute: ({ uri }: { uri?: URI } = {}) => {
|
|
@@ -301,7 +293,7 @@ export class ElectronBasicContribution
|
|
|
301
293
|
commands.registerCommand(
|
|
302
294
|
{
|
|
303
295
|
id: 'electron.openInSystemTerminal',
|
|
304
|
-
label:
|
|
296
|
+
label: '%explorer.electron.openInSystemTerminal%',
|
|
305
297
|
},
|
|
306
298
|
{
|
|
307
299
|
execute: (uri: URI) => {
|