@theia/plugin-ext-vscode 1.67.0-next.13 → 1.67.0-next.56

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 (70) hide show
  1. package/README.md +1 -1
  2. package/package.json +16 -16
  3. package/lib/browser/plugin-vscode-commands-contribution.d.ts +0 -89
  4. package/lib/browser/plugin-vscode-commands-contribution.d.ts.map +0 -1
  5. package/lib/browser/plugin-vscode-commands-contribution.js +0 -895
  6. package/lib/browser/plugin-vscode-commands-contribution.js.map +0 -1
  7. package/lib/browser/plugin-vscode-contribution.d.ts +0 -6
  8. package/lib/browser/plugin-vscode-contribution.d.ts.map +0 -1
  9. package/lib/browser/plugin-vscode-contribution.js +0 -49
  10. package/lib/browser/plugin-vscode-contribution.js.map +0 -1
  11. package/lib/browser/plugin-vscode-frontend-module.d.ts +0 -4
  12. package/lib/browser/plugin-vscode-frontend-module.d.ts.map +0 -1
  13. package/lib/browser/plugin-vscode-frontend-module.js +0 -31
  14. package/lib/browser/plugin-vscode-frontend-module.js.map +0 -1
  15. package/lib/common/plugin-vscode-environment.d.ts +0 -12
  16. package/lib/common/plugin-vscode-environment.d.ts.map +0 -1
  17. package/lib/common/plugin-vscode-environment.js +0 -57
  18. package/lib/common/plugin-vscode-environment.js.map +0 -1
  19. package/lib/common/plugin-vscode-types.d.ts +0 -3
  20. package/lib/common/plugin-vscode-types.d.ts.map +0 -1
  21. package/lib/common/plugin-vscode-types.js +0 -22
  22. package/lib/common/plugin-vscode-types.js.map +0 -1
  23. package/lib/common/plugin-vscode-uri.d.ts +0 -15
  24. package/lib/common/plugin-vscode-uri.d.ts.map +0 -1
  25. package/lib/common/plugin-vscode-uri.js +0 -49
  26. package/lib/common/plugin-vscode-uri.js.map +0 -1
  27. package/lib/node/context/plugin-vscode-init-fe.d.ts +0 -3
  28. package/lib/node/context/plugin-vscode-init-fe.d.ts.map +0 -1
  29. package/lib/node/context/plugin-vscode-init-fe.js +0 -38
  30. package/lib/node/context/plugin-vscode-init-fe.js.map +0 -1
  31. package/lib/node/local-vsix-file-plugin-deployer-resolver.d.ts +0 -12
  32. package/lib/node/local-vsix-file-plugin-deployer-resolver.d.ts.map +0 -1
  33. package/lib/node/local-vsix-file-plugin-deployer-resolver.js +0 -54
  34. package/lib/node/local-vsix-file-plugin-deployer-resolver.js.map +0 -1
  35. package/lib/node/package.spec.d.ts +0 -1
  36. package/lib/node/package.spec.d.ts.map +0 -1
  37. package/lib/node/package.spec.js +0 -26
  38. package/lib/node/package.spec.js.map +0 -1
  39. package/lib/node/plugin-vscode-backend-module.d.ts +0 -4
  40. package/lib/node/plugin-vscode-backend-module.d.ts.map +0 -1
  41. package/lib/node/plugin-vscode-backend-module.js +0 -41
  42. package/lib/node/plugin-vscode-backend-module.js.map +0 -1
  43. package/lib/node/plugin-vscode-cli-contribution.d.ts +0 -22
  44. package/lib/node/plugin-vscode-cli-contribution.d.ts.map +0 -1
  45. package/lib/node/plugin-vscode-cli-contribution.js +0 -63
  46. package/lib/node/plugin-vscode-cli-contribution.js.map +0 -1
  47. package/lib/node/plugin-vscode-deployer-participant.d.ts +0 -7
  48. package/lib/node/plugin-vscode-deployer-participant.d.ts.map +0 -1
  49. package/lib/node/plugin-vscode-deployer-participant.js +0 -51
  50. package/lib/node/plugin-vscode-deployer-participant.js.map +0 -1
  51. package/lib/node/plugin-vscode-directory-handler.d.ts +0 -21
  52. package/lib/node/plugin-vscode-directory-handler.d.ts.map +0 -1
  53. package/lib/node/plugin-vscode-directory-handler.js +0 -112
  54. package/lib/node/plugin-vscode-directory-handler.js.map +0 -1
  55. package/lib/node/plugin-vscode-file-handler.d.ts +0 -10
  56. package/lib/node/plugin-vscode-file-handler.d.ts.map +0 -1
  57. package/lib/node/plugin-vscode-file-handler.js +0 -67
  58. package/lib/node/plugin-vscode-file-handler.js.map +0 -1
  59. package/lib/node/plugin-vscode-init.d.ts +0 -3
  60. package/lib/node/plugin-vscode-init.d.ts.map +0 -1
  61. package/lib/node/plugin-vscode-init.js +0 -69
  62. package/lib/node/plugin-vscode-init.js.map +0 -1
  63. package/lib/node/plugin-vscode-utils.d.ts +0 -8
  64. package/lib/node/plugin-vscode-utils.d.ts.map +0 -1
  65. package/lib/node/plugin-vscode-utils.js +0 -105
  66. package/lib/node/plugin-vscode-utils.js.map +0 -1
  67. package/lib/node/scanner-vscode.d.ts +0 -13
  68. package/lib/node/scanner-vscode.d.ts.map +0 -1
  69. package/lib/node/scanner-vscode.js +0 -112
  70. package/lib/node/scanner-vscode.js.map +0 -1
@@ -1,895 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2018 Red Hat, Inc. and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.PluginVscodeCommandsContribution = exports.VscodeCommands = void 0;
19
- const tslib_1 = require("tslib");
20
- const core_1 = require("@theia/core");
21
- const browser_1 = require("@theia/core/lib/browser");
22
- const context_key_service_1 = require("@theia/core/lib/browser/context-key-service");
23
- const application_shell_mouse_tracker_1 = require("@theia/core/lib/browser/shell/application-shell-mouse-tracker");
24
- const command_1 = require("@theia/core/lib/common/command");
25
- const uri_1 = require("@theia/core/lib/common/uri");
26
- const browser_2 = require("@theia/editor/lib/browser");
27
- const documents_main_1 = require("@theia/plugin-ext/lib/main/browser/documents-main");
28
- const type_converters_1 = require("@theia/plugin-ext/lib/plugin/type-converters");
29
- const browser_3 = require("@theia/workspace/lib/browser");
30
- const workspace_service_1 = require("@theia/workspace/lib/browser/workspace-service");
31
- const diff_service_1 = require("@theia/workspace/lib/browser/diff-service");
32
- const inversify_1 = require("@theia/core/shared/inversify");
33
- const vscode_uri_1 = require("@theia/core/shared/vscode-uri");
34
- const plugin_protocol_1 = require("@theia/plugin-ext/lib/common/plugin-protocol");
35
- const terminal_frontend_contribution_1 = require("@theia/terminal/lib/browser/terminal-frontend-contribution");
36
- const quick_open_workspace_1 = require("@theia/workspace/lib/browser/quick-open-workspace");
37
- const terminal_service_1 = require("@theia/terminal/lib/browser/base/terminal-service");
38
- const navigator_contribution_1 = require("@theia/navigator/lib/browser/navigator-contribution");
39
- const browser_4 = require("@theia/navigator/lib/browser");
40
- const tree_selection_1 = require("@theia/core/lib/browser/tree/tree-selection");
41
- const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
42
- const browser_5 = require("@theia/callhierarchy/lib/browser");
43
- const browser_6 = require("@theia/typehierarchy/lib/browser");
44
- const monaco_text_model_service_1 = require("@theia/monaco/lib/browser/monaco-text-model-service");
45
- const hierarchy_types_converters_1 = require("@theia/plugin-ext/lib/main/browser/hierarchy/hierarchy-types-converters");
46
- const custom_editor_opener_1 = require("@theia/plugin-ext/lib/main/browser/custom-editors/custom-editor-opener");
47
- const nls_1 = require("@theia/core/lib/common/nls");
48
- const window_service_1 = require("@theia/core/lib/browser/window/window-service");
49
- const monaco = require("@theia/monaco-editor-core");
50
- const plugin_vscode_uri_1 = require("../common/plugin-vscode-uri");
51
- const vscode_theia_menu_mappings_1 = require("@theia/plugin-ext/lib/main/browser/menus/vscode-theia-menu-mappings");
52
- const outline_view_contribution_1 = require("@theia/outline-view/lib/browser/outline-view-contribution");
53
- const monaco_languages_1 = require("@theia/monaco/lib/browser/monaco-languages");
54
- const scm_contribution_1 = require("@theia/scm/lib/browser/scm-contribution");
55
- const merge_editor_1 = require("@theia/scm/lib/browser/merge-editor/merge-editor");
56
- var VscodeCommands;
57
- (function (VscodeCommands) {
58
- VscodeCommands.GET_CODE_EXCHANGE_ENDPOINTS = {
59
- id: 'workbench.getCodeExchangeProxyEndpoints' // this command is used in the github auth built-in
60
- // see: https://github.com/microsoft/vscode/blob/191be39e5ac872e03f9d79cc859d9917f40ad935/extensions/github-authentication/src/githubServer.ts#L60
61
- };
62
- VscodeCommands.OPEN = {
63
- id: 'vscode.open'
64
- };
65
- VscodeCommands.OPEN_WITH = {
66
- id: 'vscode.openWith'
67
- };
68
- VscodeCommands.OPEN_FOLDER = {
69
- id: 'vscode.openFolder'
70
- };
71
- VscodeCommands.DIFF = {
72
- id: 'vscode.diff'
73
- };
74
- VscodeCommands.INSTALL_EXTENSION_FROM_ID_OR_URI = {
75
- id: 'workbench.extensions.installExtension'
76
- };
77
- VscodeCommands.UNINSTALL_EXTENSION = {
78
- id: 'workbench.extensions.uninstallExtension'
79
- };
80
- // see https://github.com/microsoft/vscode/blob/2fc07b811f760549dab9be9d2bedd06c51dfcb9a/src/vs/workbench/contrib/extensions/common/extensions.ts#L246
81
- VscodeCommands.INSTALL_EXTENSION_FROM_VSIX_COMMAND = {
82
- id: 'workbench.extensions.command.installFromVSIX'
83
- };
84
- })(VscodeCommands || (exports.VscodeCommands = VscodeCommands = {}));
85
- let PluginVscodeCommandsContribution = class PluginVscodeCommandsContribution {
86
- async openWith(commandId, resource, columnOrOptions, openerId) {
87
- if (!resource) {
88
- throw new Error(`${commandId} command requires at least URI argument.`);
89
- }
90
- if (!vscode_uri_1.URI.isUri(resource)) {
91
- throw new Error(`Invalid argument for ${commandId} command with URI argument. Found ${resource}`);
92
- }
93
- let options;
94
- if (typeof columnOrOptions === 'number') {
95
- options = {
96
- viewColumn: columnOrOptions
97
- };
98
- }
99
- else if (columnOrOptions) {
100
- options = {
101
- ...columnOrOptions
102
- };
103
- }
104
- const uri = new uri_1.default(resource);
105
- const editorOptions = documents_main_1.DocumentsMainImpl.toEditorOpenerOptions(this.shell, options);
106
- let openHandler;
107
- if (typeof openerId === 'string') {
108
- const lowerViewType = openerId.toLowerCase();
109
- const openers = await this.openerService.getOpeners();
110
- for (const opener of openers) {
111
- const idLowerCase = opener.id.toLowerCase();
112
- if (lowerViewType === idLowerCase) {
113
- openHandler = opener;
114
- break;
115
- }
116
- }
117
- }
118
- else {
119
- openHandler = await this.openerService.getOpener(uri, editorOptions);
120
- }
121
- if (openHandler) {
122
- await openHandler.open(uri, editorOptions);
123
- return true;
124
- }
125
- return false;
126
- }
127
- registerCommands(commands) {
128
- commands.registerCommand(VscodeCommands.GET_CODE_EXCHANGE_ENDPOINTS, {
129
- execute: () => undefined // this is a dummy implementation: only used in the case of web apps, which is not supported yet.
130
- });
131
- commands.registerCommand(VscodeCommands.OPEN, {
132
- isVisible: () => false,
133
- execute: async (resource, columnOrOptions) => {
134
- if (typeof resource === 'string') {
135
- resource = vscode_uri_1.URI.parse(resource);
136
- }
137
- try {
138
- await this.openWith(VscodeCommands.OPEN.id, resource, columnOrOptions);
139
- }
140
- catch (error) {
141
- const message = nls_1.nls.localizeByDefault("Unable to open '{0}'", resource.path);
142
- const reason = nls_1.nls.localizeByDefault('Error: {0}', error.message);
143
- this.messageService.error(`${message}\n${reason}`);
144
- console.warn(error);
145
- }
146
- }
147
- });
148
- commands.registerCommand(VscodeCommands.OPEN_WITH, {
149
- isVisible: () => false,
150
- execute: async (resource, viewType, columnOrOptions) => {
151
- if (!viewType) {
152
- throw new Error(`Running the contributed command: ${VscodeCommands.OPEN_WITH} failed.`);
153
- }
154
- if (viewType.toLowerCase() === 'default') {
155
- return commands.executeCommand(VscodeCommands.OPEN.id, resource, columnOrOptions);
156
- }
157
- let result = await this.openWith(VscodeCommands.OPEN_WITH.id, resource, columnOrOptions, viewType);
158
- if (!result) {
159
- result = await this.openWith(VscodeCommands.OPEN_WITH.id, resource, columnOrOptions, custom_editor_opener_1.CustomEditorOpener.toCustomEditorId(viewType));
160
- }
161
- if (!result) {
162
- throw new Error(`Could not find an editor for '${viewType}'`);
163
- }
164
- }
165
- });
166
- commands.registerCommand(VscodeCommands.OPEN_FOLDER, {
167
- isVisible: () => false,
168
- execute: async (resource, arg = {}) => {
169
- if (!resource) {
170
- return commands.executeCommand(browser_3.WorkspaceCommands.OPEN_WORKSPACE.id);
171
- }
172
- if (!vscode_uri_1.URI.isUri(resource)) {
173
- throw new Error(`Invalid argument for ${VscodeCommands.OPEN_FOLDER.id} command with URI argument. Found ${resource}`);
174
- }
175
- let options;
176
- if (typeof arg === 'boolean') {
177
- options = { preserveWindow: !arg };
178
- }
179
- else {
180
- options = { preserveWindow: !arg.forceNewWindow };
181
- }
182
- this.workspaceService.open(new uri_1.default(resource), options);
183
- }
184
- });
185
- commands.registerCommand(VscodeCommands.DIFF, {
186
- isVisible: () => false,
187
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
188
- execute: async (left, right, label, options) => {
189
- if (!left || !right) {
190
- throw new Error(`${VscodeCommands.DIFF} command requires at least two URI arguments. Found left=${left}, right=${right} as arguments`);
191
- }
192
- if (!vscode_uri_1.URI.isUri(left)) {
193
- throw new Error(`Invalid argument for ${VscodeCommands.DIFF.id} command with left argument. Expecting URI left type but found ${left}`);
194
- }
195
- if (!vscode_uri_1.URI.isUri(right)) {
196
- throw new Error(`Invalid argument for ${VscodeCommands.DIFF.id} command with right argument. Expecting URI right type but found ${right}`);
197
- }
198
- const leftURI = new uri_1.default(left);
199
- const editorOptions = documents_main_1.DocumentsMainImpl.toEditorOpenerOptions(this.shell, options);
200
- await this.diffService.openDiffEditor(leftURI, new uri_1.default(right), label, editorOptions);
201
- }
202
- });
203
- // https://code.visualstudio.com/docs/getstarted/keybindings#_navigation
204
- /*
205
- * internally, in VS Code, any widget opened in the main area is represented as an editor
206
- * operations below apply to them, but not to side-bar widgets, like the explorer
207
- *
208
- * in Theia, there are not such difference and any widget can be put in any area
209
- * because of it we filter out editors from views based on `NavigatableWidget.is`
210
- * and apply actions only to them
211
- */
212
- if (!core_1.environment.electron.is() || core_1.isOSX) {
213
- commands.registerCommand({ id: 'workbench.action.files.openFileFolder' }, {
214
- execute: () => commands.executeCommand(browser_3.WorkspaceCommands.OPEN.id)
215
- });
216
- }
217
- commands.registerCommand({ id: 'workbench.action.files.openFile' }, {
218
- execute: () => commands.executeCommand(browser_3.WorkspaceCommands.OPEN_FILE.id)
219
- });
220
- commands.registerCommand({ id: 'workbench.action.files.openFolder' }, {
221
- execute: () => commands.executeCommand(browser_3.WorkspaceCommands.OPEN_FOLDER.id)
222
- });
223
- commands.registerCommand({ id: 'workbench.action.addRootFolder' }, {
224
- execute: () => commands.executeCommand(browser_3.WorkspaceCommands.ADD_FOLDER.id)
225
- });
226
- commands.registerCommand({ id: 'workbench.action.saveWorkspaceAs' }, {
227
- execute: () => commands.executeCommand(browser_3.WorkspaceCommands.SAVE_WORKSPACE_AS.id)
228
- });
229
- commands.registerCommand({ id: 'workbench.action.gotoLine' }, {
230
- execute: () => commands.executeCommand(browser_2.EditorCommands.GOTO_LINE_COLUMN.id)
231
- });
232
- commands.registerCommand({ id: 'workbench.action.quickOpen' }, {
233
- execute: (prefix) => this.quickInput.open(typeof prefix === 'string' ? prefix : '')
234
- });
235
- commands.registerCommand({ id: 'workbench.action.openSettings' }, {
236
- execute: (query) => commands.executeCommand(browser_1.CommonCommands.OPEN_PREFERENCES.id, query)
237
- });
238
- commands.registerCommand({ id: 'workbench.action.openWorkspaceConfigFile' }, {
239
- execute: () => commands.executeCommand(browser_3.WorkspaceCommands.OPEN_WORKSPACE_FILE.id)
240
- });
241
- commands.registerCommand({ id: 'workbench.files.action.refreshFilesExplorer' }, {
242
- execute: () => commands.executeCommand(navigator_contribution_1.FileNavigatorCommands.REFRESH_NAVIGATOR.id)
243
- });
244
- commands.registerCommand(VscodeCommands.INSTALL_EXTENSION_FROM_ID_OR_URI, {
245
- execute: async (vsixUriOrExtensionId) => {
246
- if (typeof vsixUriOrExtensionId === 'string') {
247
- let extensionId = vsixUriOrExtensionId;
248
- let opts;
249
- const versionedId = plugin_protocol_1.PluginIdentifiers.idAndVersionFromVersionedId(vsixUriOrExtensionId);
250
- if (versionedId) {
251
- extensionId = versionedId.id;
252
- opts = { version: versionedId.version, ignoreOtherVersions: true };
253
- }
254
- await this.pluginServer.install(plugin_vscode_uri_1.VSCodeExtensionUri.fromId(extensionId).toString(), undefined, opts);
255
- }
256
- else {
257
- await this.deployPlugin(vsixUriOrExtensionId);
258
- }
259
- }
260
- });
261
- commands.registerCommand(VscodeCommands.INSTALL_EXTENSION_FROM_VSIX_COMMAND, {
262
- execute: async (uris) => {
263
- if ((0, core_1.isArray)(uris)) {
264
- await Promise.all(uris.map(async (vsix) => {
265
- await this.deployPlugin(vsix);
266
- }));
267
- }
268
- else {
269
- await this.deployPlugin(uris);
270
- }
271
- }
272
- });
273
- commands.registerCommand(VscodeCommands.UNINSTALL_EXTENSION, {
274
- execute: async (id) => {
275
- if (!id) {
276
- throw new Error(nls_1.nls.localizeByDefault('Extension id required.'));
277
- }
278
- const idAndVersion = plugin_protocol_1.PluginIdentifiers.idAndVersionFromVersionedId(id);
279
- if (!idAndVersion) {
280
- throw new Error(`Invalid extension id: ${id}\nExpected format: <publisher>.<name>@<version>.`);
281
- }
282
- await this.pluginServer.uninstall(plugin_protocol_1.PluginIdentifiers.idAndVersionToVersionedId(idAndVersion));
283
- }
284
- });
285
- commands.registerCommand({ id: 'workbench.action.files.save', }, {
286
- execute: (uri) => {
287
- if (uri) {
288
- const uriString = uri.toString();
289
- const widget = this.shell.widgets.find(w => {
290
- const resourceUri = browser_1.Saveable.is(w) && browser_1.NavigatableWidget.is(w) && w.getResourceUri();
291
- return (resourceUri && resourceUri.toString()) === uriString;
292
- });
293
- if (browser_1.Saveable.is(widget)) {
294
- browser_1.Saveable.save(widget);
295
- }
296
- }
297
- else {
298
- this.shell.save();
299
- }
300
- }
301
- });
302
- commands.registerCommand({ id: 'workbench.action.files.saveAll', }, {
303
- execute: () => this.shell.saveAll()
304
- });
305
- commands.registerCommand({ id: 'workbench.action.closeActiveEditor' }, {
306
- execute: () => commands.executeCommand(browser_1.CommonCommands.CLOSE_MAIN_TAB.id)
307
- });
308
- commands.registerCommand({ id: 'workbench.action.closeOtherEditors' }, {
309
- execute: async (uri) => {
310
- let editor = this.editorManager.currentEditor || this.shell.currentWidget;
311
- if (uri) {
312
- const uriString = uri.toString();
313
- editor = this.editorManager.all.find(e => {
314
- const resourceUri = e.getResourceUri();
315
- return (resourceUri && resourceUri.toString()) === uriString;
316
- });
317
- }
318
- const toClose = this.shell.widgets.filter(widget => widget !== editor && vscode_theia_menu_mappings_1.CodeEditorWidgetUtil.is(widget));
319
- await this.shell.closeMany(toClose);
320
- }
321
- });
322
- const performActionOnGroup = (cb, uri) => {
323
- let editor = this.editorManager.currentEditor || this.shell.currentWidget;
324
- if (uri) {
325
- const uriString = uri.toString();
326
- editor = this.editorManager.all.find(e => {
327
- const resourceUri = e.getResourceUri();
328
- return (resourceUri && resourceUri.toString()) === uriString;
329
- });
330
- }
331
- if (editor) {
332
- const tabBar = this.shell.getTabBarFor(editor);
333
- if (tabBar) {
334
- cb(tabBar, ({ owner }) => vscode_theia_menu_mappings_1.CodeEditorWidgetUtil.is(owner));
335
- }
336
- }
337
- };
338
- commands.registerCommand({
339
- id: 'workbench.action.closeEditorsInGroup',
340
- label: nls_1.nls.localizeByDefault('Close All Editors in Group')
341
- }, {
342
- execute: (uri) => performActionOnGroup(this.shell.closeTabs, uri)
343
- });
344
- commands.registerCommand({
345
- id: 'workbench.files.saveAllInGroup',
346
- label: nls_1.nls.localizeByDefault('Save All in Group')
347
- }, {
348
- execute: (uri) => performActionOnGroup(this.shell.saveTabs, uri)
349
- });
350
- commands.registerCommand({ id: 'workbench.action.closeEditorsInOtherGroups' }, {
351
- execute: () => {
352
- const editor = this.editorManager.currentEditor || this.shell.currentWidget;
353
- if (editor) {
354
- const editorTabBar = this.shell.getTabBarFor(editor);
355
- for (const tabBar of this.shell.allTabBars) {
356
- if (tabBar !== editorTabBar) {
357
- this.shell.closeTabs(tabBar, ({ owner }) => vscode_theia_menu_mappings_1.CodeEditorWidgetUtil.is(owner));
358
- }
359
- }
360
- }
361
- }
362
- });
363
- commands.registerCommand({ id: 'workbench.action.closeEditorsToTheLeft' }, {
364
- execute: () => {
365
- const editor = this.editorManager.currentEditor || this.shell.currentWidget;
366
- if (editor) {
367
- const tabBar = this.shell.getTabBarFor(editor);
368
- if (tabBar) {
369
- let left = true;
370
- this.shell.closeTabs(tabBar, ({ owner }) => {
371
- if (owner === editor) {
372
- left = false;
373
- return false;
374
- }
375
- return left && vscode_theia_menu_mappings_1.CodeEditorWidgetUtil.is(owner);
376
- });
377
- }
378
- }
379
- }
380
- });
381
- commands.registerCommand({ id: 'workbench.action.closeEditorsToTheRight' }, {
382
- execute: () => {
383
- const editor = this.editorManager.currentEditor || this.shell.currentWidget;
384
- if (editor) {
385
- const tabBar = this.shell.getTabBarFor(editor);
386
- if (tabBar) {
387
- let left = true;
388
- this.shell.closeTabs(tabBar, ({ owner }) => {
389
- if (owner === editor) {
390
- left = false;
391
- return false;
392
- }
393
- return !left && vscode_theia_menu_mappings_1.CodeEditorWidgetUtil.is(owner);
394
- });
395
- }
396
- }
397
- }
398
- });
399
- commands.registerCommand({ id: 'workbench.action.closeAllEditors' }, {
400
- execute: async () => {
401
- const toClose = this.shell.widgets.filter(widget => vscode_theia_menu_mappings_1.CodeEditorWidgetUtil.is(widget));
402
- await this.shell.closeMany(toClose);
403
- }
404
- });
405
- commands.registerCommand({ id: 'workbench.action.nextEditor' }, {
406
- execute: () => this.shell.activateNextTab()
407
- });
408
- commands.registerCommand({ id: 'workbench.action.previousEditor' }, {
409
- execute: () => this.shell.activatePreviousTab()
410
- });
411
- commands.registerCommand({ id: 'workbench.action.navigateBack' }, {
412
- execute: () => commands.executeCommand(browser_2.EditorCommands.GO_BACK.id)
413
- });
414
- commands.registerCommand({ id: 'workbench.action.navigateForward' }, {
415
- execute: () => commands.executeCommand(browser_2.EditorCommands.GO_FORWARD.id)
416
- });
417
- commands.registerCommand({ id: 'workbench.action.navigateToLastEditLocation' }, {
418
- execute: () => commands.executeCommand(browser_2.EditorCommands.GO_LAST_EDIT.id)
419
- });
420
- commands.registerCommand({ id: 'openInTerminal' }, {
421
- execute: (resource) => this.terminalContribution.openInTerminal(new uri_1.default(resource.toString()))
422
- });
423
- commands.registerCommand({ id: 'workbench.action.reloadWindow' }, {
424
- execute: () => {
425
- this.windowService.reload();
426
- }
427
- });
428
- /**
429
- * TODO:
430
- * Open Next: workbench.action.openNextRecentlyUsedEditorInGroup
431
- * Open Previous: workbench.action.openPreviousRecentlyUsedEditorInGroup
432
- * Copy Path of Active File: workbench.action.files.copyPathOfActiveFile
433
- * Reveal Active File in Windows: workbench.action.files.revealActiveFileInWindows
434
- * Show Opened File in New Window: workbench.action.files.showOpenedFileInNewWindow
435
- * Compare Opened File With: workbench.files.action.compareFileWith
436
- */
437
- // Register built-in language service commands
438
- // see https://code.visualstudio.com/api/references/commands
439
- /* eslint-disable @typescript-eslint/no-explicit-any */
440
- // TODO register other `vscode.execute...` commands.
441
- // see https://github.com/microsoft/vscode/blob/master/src/vs/workbench/api/common/extHostApiCommands.ts
442
- commands.registerCommand({
443
- id: 'vscode.executeDefinitionProvider'
444
- }, {
445
- execute: ((resource, position) => commands.executeCommand('_executeDefinitionProvider', monaco.Uri.from(resource), position))
446
- });
447
- commands.registerCommand({
448
- id: 'vscode.executeDeclarationProvider'
449
- }, {
450
- execute: ((resource, position) => commands.executeCommand('_executeDeclarationProvider', monaco.Uri.from(resource), position))
451
- });
452
- commands.registerCommand({
453
- id: 'vscode.executeTypeDefinitionProvider'
454
- }, {
455
- execute: ((resource, position) => commands.executeCommand('_executeTypeDefinitionProvider', monaco.Uri.from(resource), position))
456
- });
457
- commands.registerCommand({
458
- id: 'vscode.executeImplementationProvider'
459
- }, {
460
- execute: ((resource, position) => commands.executeCommand('_executeImplementationProvider', monaco.Uri.from(resource), position))
461
- });
462
- commands.registerCommand({
463
- id: 'vscode.executeHoverProvider'
464
- }, {
465
- execute: ((resource, position) => commands.executeCommand('_executeHoverProvider', monaco.Uri.from(resource), position))
466
- });
467
- commands.registerCommand({
468
- id: 'vscode.executeDocumentHighlights'
469
- }, {
470
- execute: ((resource, position) => commands.executeCommand('_executeDocumentHighlights', monaco.Uri.from(resource), position))
471
- });
472
- commands.registerCommand({
473
- id: 'vscode.executeReferenceProvider'
474
- }, {
475
- execute: ((resource, position) => commands.executeCommand('_executeReferenceProvider', monaco.Uri.from(resource), position))
476
- });
477
- commands.registerCommand({
478
- id: 'vscode.executeDocumentSymbolProvider'
479
- }, {
480
- execute: (resource) => commands.executeCommand('_executeDocumentSymbolProvider', monaco.Uri.parse(resource.toString())).then((value) => {
481
- if (!Array.isArray(value) || value === undefined) {
482
- return undefined;
483
- }
484
- return value.map(loc => (0, type_converters_1.toMergedSymbol)(resource, loc));
485
- })
486
- });
487
- commands.registerCommand({
488
- id: 'vscode.executeFormatDocumentProvider'
489
- }, {
490
- execute: ((resource, options) => commands.executeCommand('_executeFormatDocumentProvider', monaco.Uri.from(resource), options))
491
- });
492
- commands.registerCommand({
493
- id: 'vscode.executeFormatRangeProvider'
494
- }, {
495
- execute: ((resource, range, options) => commands.executeCommand('_executeFormatRangeProvider', monaco.Uri.from(resource), range, options))
496
- });
497
- commands.registerCommand({
498
- id: 'vscode.executeFormatOnTypeProvider'
499
- }, {
500
- execute: ((resource, position, ch, options) => commands.executeCommand('_executeFormatOnTypeProvider', monaco.Uri.from(resource), position, ch, options))
501
- });
502
- commands.registerCommand({
503
- id: 'vscode.executeFoldingRangeProvider'
504
- }, {
505
- execute: ((resource, position) => commands.executeCommand('_executeFoldingRangeProvider', monaco.Uri.from(resource), position))
506
- });
507
- commands.registerCommand({
508
- id: 'vscode.executeCodeActionProvider'
509
- }, {
510
- execute: ((resource, range, kind, itemResolveCount) => commands.executeCommand('_executeCodeActionProvider', monaco.Uri.from(resource), range, kind, itemResolveCount))
511
- });
512
- commands.registerCommand({
513
- id: 'vscode.executeCompletionItemProvider'
514
- }, {
515
- execute: ((resource, position, triggerCharacter, itemResolveCount) => commands.executeCommand('_executeCompletionItemProvider', monaco.Uri.from(resource), { lineNumber: position.line, column: position.character }, triggerCharacter, itemResolveCount))
516
- });
517
- commands.registerCommand({
518
- id: 'vscode.executeWorkspaceSymbolProvider'
519
- }, {
520
- execute: async (queryString) => (await Promise.all(this.monacoLanguages.workspaceSymbolProviders
521
- .map(async (provider) => provider.provideWorkspaceSymbols({ query: queryString }, new core_1.CancellationTokenSource().token))))
522
- .flatMap(symbols => symbols)
523
- .filter(symbols => !!symbols)
524
- });
525
- commands.registerCommand({
526
- id: 'vscode.prepareCallHierarchy'
527
- }, {
528
- execute: async (resource, position) => {
529
- const provider = await this.getCallHierarchyServiceForUri(resource);
530
- const definition = await (provider === null || provider === void 0 ? void 0 : provider.getRootDefinition(resource.path, (0, type_converters_1.toPosition)(position), new core_1.CancellationTokenSource().token));
531
- if (definition) {
532
- return definition.items.map(item => (0, hierarchy_types_converters_1.fromItemHierarchyDefinition)(item));
533
- }
534
- ;
535
- return [];
536
- }
537
- });
538
- commands.registerCommand({
539
- id: 'vscode.provideIncomingCalls'
540
- }, {
541
- execute: async (item) => {
542
- const resource = vscode_uri_1.URI.from(item.uri);
543
- const provider = await this.getCallHierarchyServiceForUri(resource);
544
- const incomingCalls = await (provider === null || provider === void 0 ? void 0 : provider.getCallers((0, hierarchy_types_converters_1.toItemHierarchyDefinition)(item), new core_1.CancellationTokenSource().token));
545
- if (incomingCalls) {
546
- return incomingCalls.map(hierarchy_types_converters_1.fromCallHierarchyCallerToModelCallHierarchyIncomingCall);
547
- }
548
- return [];
549
- },
550
- });
551
- commands.registerCommand({
552
- id: 'vscode.provideOutgoingCalls'
553
- }, {
554
- execute: async (item) => {
555
- var _a;
556
- const resource = vscode_uri_1.URI.from(item.uri);
557
- const provider = await this.getCallHierarchyServiceForUri(resource);
558
- const outgoingCalls = await ((_a = provider === null || provider === void 0 ? void 0 : provider.getCallees) === null || _a === void 0 ? void 0 : _a.call(provider, (0, hierarchy_types_converters_1.toItemHierarchyDefinition)(item), new core_1.CancellationTokenSource().token));
559
- if (outgoingCalls) {
560
- return outgoingCalls.map(hierarchy_types_converters_1.fromCallHierarchyCalleeToModelCallHierarchyOutgoingCall);
561
- }
562
- return [];
563
- }
564
- });
565
- commands.registerCommand({
566
- id: 'vscode.prepareTypeHierarchy'
567
- }, {
568
- execute: async (resource, position) => {
569
- const provider = await this.getTypeHierarchyServiceForUri(resource);
570
- const session = await (provider === null || provider === void 0 ? void 0 : provider.prepareSession(resource.path, (0, type_converters_1.toPosition)(position), new core_1.CancellationTokenSource().token));
571
- return session ? session.items.map(item => (0, hierarchy_types_converters_1.fromItemHierarchyDefinition)(item)) : [];
572
- }
573
- });
574
- commands.registerCommand({
575
- id: 'vscode.provideSupertypes'
576
- }, {
577
- execute: async (item) => {
578
- if (!item._sessionId || !item._itemId) {
579
- return [];
580
- }
581
- const resource = vscode_uri_1.URI.from(item.uri);
582
- const provider = await this.getTypeHierarchyServiceForUri(resource);
583
- const items = await (provider === null || provider === void 0 ? void 0 : provider.provideSuperTypes(item._sessionId, item._itemId, new core_1.CancellationTokenSource().token));
584
- return (items ? items : []).map(typeItem => (0, hierarchy_types_converters_1.fromItemHierarchyDefinition)(typeItem));
585
- }
586
- });
587
- commands.registerCommand({
588
- id: 'vscode.provideSubtypes'
589
- }, {
590
- execute: async (item) => {
591
- if (!item._sessionId || !item._itemId) {
592
- return [];
593
- }
594
- const resource = vscode_uri_1.URI.from(item.uri);
595
- const provider = await this.getTypeHierarchyServiceForUri(resource);
596
- const items = await (provider === null || provider === void 0 ? void 0 : provider.provideSubTypes(item._sessionId, item._itemId, new core_1.CancellationTokenSource().token));
597
- return (items ? items : []).map(typeItem => (0, hierarchy_types_converters_1.fromItemHierarchyDefinition)(typeItem));
598
- }
599
- });
600
- commands.registerCommand({
601
- id: 'workbench.action.openRecent'
602
- }, {
603
- execute: () => this.quickOpenWorkspace.select()
604
- });
605
- commands.registerCommand({
606
- id: 'explorer.newFolder'
607
- }, {
608
- execute: () => commands.executeCommand(browser_3.WorkspaceCommands.NEW_FOLDER.id)
609
- });
610
- commands.registerCommand({
611
- id: 'workbench.action.terminal.sendSequence'
612
- }, {
613
- execute: (args) => {
614
- if (args === undefined || args.text === undefined) {
615
- return;
616
- }
617
- const currentTerminal = this.terminalService.currentTerminal;
618
- if (currentTerminal === undefined) {
619
- return;
620
- }
621
- currentTerminal.sendText(args.text);
622
- }
623
- });
624
- commands.registerCommand({
625
- id: 'workbench.action.terminal.kill'
626
- }, {
627
- execute: () => {
628
- const currentTerminal = this.terminalService.currentTerminal;
629
- if (currentTerminal === undefined) {
630
- return;
631
- }
632
- currentTerminal.dispose();
633
- }
634
- });
635
- commands.registerCommand({
636
- id: 'workbench.view.explorer'
637
- }, {
638
- execute: () => commands.executeCommand(navigator_contribution_1.FileNavigatorCommands.FOCUS.id)
639
- });
640
- commands.registerCommand({
641
- id: 'copyFilePath'
642
- }, {
643
- execute: () => commands.executeCommand(browser_1.CommonCommands.COPY_PATH.id)
644
- });
645
- commands.registerCommand({
646
- id: 'copyRelativeFilePath'
647
- }, {
648
- execute: () => commands.executeCommand(browser_3.WorkspaceCommands.COPY_RELATIVE_FILE_PATH.id)
649
- });
650
- commands.registerCommand({
651
- id: 'revealInExplorer'
652
- }, {
653
- execute: async (resource) => {
654
- if (!vscode_uri_1.URI.isUri(resource)) {
655
- return;
656
- }
657
- let navigator = await this.shell.revealWidget(browser_4.FILE_NAVIGATOR_ID);
658
- if (!navigator) {
659
- await this.commandService.executeCommand(navigator_contribution_1.FILE_NAVIGATOR_TOGGLE_COMMAND_ID);
660
- navigator = await this.shell.revealWidget(browser_4.FILE_NAVIGATOR_ID);
661
- }
662
- if (navigator instanceof browser_4.FileNavigatorWidget) {
663
- const model = navigator.model;
664
- const node = await model.revealFile(new uri_1.default(resource));
665
- if (tree_selection_1.SelectableTreeNode.is(node)) {
666
- model.selectNode(node);
667
- }
668
- }
669
- }
670
- });
671
- commands.registerCommand({
672
- id: 'workbench.experimental.requestUsbDevice'
673
- }, {
674
- execute: async (options) => {
675
- var _a;
676
- const usb = navigator.usb;
677
- if (!usb) {
678
- return undefined;
679
- }
680
- const device = await usb.requestDevice({ filters: (_a = options === null || options === void 0 ? void 0 : options.filters) !== null && _a !== void 0 ? _a : [] });
681
- if (!device) {
682
- return undefined;
683
- }
684
- return {
685
- deviceClass: device.deviceClass,
686
- deviceProtocol: device.deviceProtocol,
687
- deviceSubclass: device.deviceSubclass,
688
- deviceVersionMajor: device.deviceVersionMajor,
689
- deviceVersionMinor: device.deviceVersionMinor,
690
- deviceVersionSubminor: device.deviceVersionSubminor,
691
- manufacturerName: device.manufacturerName,
692
- productId: device.productId,
693
- productName: device.productName,
694
- serialNumber: device.serialNumber,
695
- usbVersionMajor: device.usbVersionMajor,
696
- usbVersionMinor: device.usbVersionMinor,
697
- usbVersionSubminor: device.usbVersionSubminor,
698
- vendorId: device.vendorId,
699
- };
700
- }
701
- });
702
- commands.registerCommand({
703
- id: 'workbench.experimental.requestSerialPort'
704
- }, {
705
- execute: async (options) => {
706
- var _a;
707
- const serial = navigator.serial;
708
- if (!serial) {
709
- return undefined;
710
- }
711
- const port = await serial.requestPort({ filters: (_a = options === null || options === void 0 ? void 0 : options.filters) !== null && _a !== void 0 ? _a : [] });
712
- if (!port) {
713
- return undefined;
714
- }
715
- const info = port.getInfo();
716
- return {
717
- usbVendorId: info.usbVendorId,
718
- usbProductId: info.usbProductId
719
- };
720
- }
721
- });
722
- commands.registerCommand({
723
- id: 'workbench.experimental.requestHidDevice'
724
- }, {
725
- execute: async (options) => {
726
- var _a;
727
- const hid = navigator.hid;
728
- if (!hid) {
729
- return undefined;
730
- }
731
- const devices = await hid.requestDevice({ filters: (_a = options === null || options === void 0 ? void 0 : options.filters) !== null && _a !== void 0 ? _a : [] });
732
- if (!devices.length) {
733
- return undefined;
734
- }
735
- const device = devices[0];
736
- return {
737
- opened: device.opened,
738
- vendorId: device.vendorId,
739
- productId: device.productId,
740
- productName: device.productName,
741
- collections: device.collections
742
- };
743
- }
744
- });
745
- // required by Jupyter for the show table of contents action
746
- commands.registerCommand({ id: 'outline.focus' }, {
747
- execute: () => this.outlineViewContribution.openView({ activate: true })
748
- });
749
- // required by vscode.git
750
- commands.registerCommand({ id: 'workbench.view.scm' }, {
751
- execute: async () => {
752
- await this.scmContribution.openView({ activate: true });
753
- }
754
- });
755
- commands.registerCommand({ id: '_open.mergeEditor' }, {
756
- execute: async (arg) => {
757
- const toTheiaUri = (o) => {
758
- if (typeof o === 'string') {
759
- return new uri_1.default(o);
760
- }
761
- return uri_1.default.fromComponents(o);
762
- };
763
- const baseUri = toTheiaUri(arg.base);
764
- const resultUri = toTheiaUri(arg.output);
765
- const side1Uri = typeof arg.input1 === 'string' ? toTheiaUri(arg.input1) : toTheiaUri(arg.input1.uri);
766
- const side2Uri = typeof arg.input2 === 'string' ? toTheiaUri(arg.input2) : toTheiaUri(arg.input2.uri);
767
- const uri = merge_editor_1.MergeEditorUri.encode({ baseUri, side1Uri, side2Uri, resultUri });
768
- let side1State = undefined;
769
- if (typeof arg.input1 !== 'string') {
770
- const { title, description, detail } = arg.input1;
771
- side1State = { title, description, detail };
772
- }
773
- let side2State = undefined;
774
- if (typeof arg.input2 !== 'string') {
775
- const { title, description, detail } = arg.input2;
776
- side2State = { title, description, detail };
777
- }
778
- const options = { widgetState: { side1State, side2State } };
779
- await (0, browser_1.open)(this.openerService, uri, options);
780
- }
781
- });
782
- }
783
- async deployPlugin(uri) {
784
- const uriPath = (0, type_converters_1.isUriComponents)(uri) ? vscode_uri_1.URI.revive(uri).fsPath : await this.fileService.fsPath(uri);
785
- return this.pluginServer.install(`local-file:${uriPath}`);
786
- }
787
- async resolveLanguageId(resource) {
788
- const reference = await this.textModelService.createModelReference(resource);
789
- const languageId = reference.object.languageId;
790
- reference.dispose();
791
- return languageId;
792
- }
793
- async getCallHierarchyServiceForUri(resource) {
794
- const languageId = await this.resolveLanguageId(resource);
795
- return this.callHierarchyProvider.get(languageId, new uri_1.default(resource));
796
- }
797
- async getTypeHierarchyServiceForUri(resource) {
798
- const languageId = await this.resolveLanguageId(resource);
799
- return this.typeHierarchyProvider.get(languageId, new uri_1.default(resource));
800
- }
801
- };
802
- exports.PluginVscodeCommandsContribution = PluginVscodeCommandsContribution;
803
- tslib_1.__decorate([
804
- (0, inversify_1.inject)(command_1.CommandService),
805
- tslib_1.__metadata("design:type", Object)
806
- ], PluginVscodeCommandsContribution.prototype, "commandService", void 0);
807
- tslib_1.__decorate([
808
- (0, inversify_1.inject)(context_key_service_1.ContextKeyService),
809
- tslib_1.__metadata("design:type", Object)
810
- ], PluginVscodeCommandsContribution.prototype, "contextKeyService", void 0);
811
- tslib_1.__decorate([
812
- (0, inversify_1.inject)(browser_2.EditorManager),
813
- tslib_1.__metadata("design:type", browser_2.EditorManager)
814
- ], PluginVscodeCommandsContribution.prototype, "editorManager", void 0);
815
- tslib_1.__decorate([
816
- (0, inversify_1.inject)(browser_1.ApplicationShell),
817
- tslib_1.__metadata("design:type", browser_1.ApplicationShell)
818
- ], PluginVscodeCommandsContribution.prototype, "shell", void 0);
819
- tslib_1.__decorate([
820
- (0, inversify_1.inject)(diff_service_1.DiffService),
821
- tslib_1.__metadata("design:type", diff_service_1.DiffService)
822
- ], PluginVscodeCommandsContribution.prototype, "diffService", void 0);
823
- tslib_1.__decorate([
824
- (0, inversify_1.inject)(browser_1.OpenerService),
825
- tslib_1.__metadata("design:type", Object)
826
- ], PluginVscodeCommandsContribution.prototype, "openerService", void 0);
827
- tslib_1.__decorate([
828
- (0, inversify_1.inject)(application_shell_mouse_tracker_1.ApplicationShellMouseTracker),
829
- tslib_1.__metadata("design:type", application_shell_mouse_tracker_1.ApplicationShellMouseTracker)
830
- ], PluginVscodeCommandsContribution.prototype, "mouseTracker", void 0);
831
- tslib_1.__decorate([
832
- (0, inversify_1.inject)(browser_1.QuickInputService),
833
- (0, inversify_1.optional)(),
834
- tslib_1.__metadata("design:type", Object)
835
- ], PluginVscodeCommandsContribution.prototype, "quickInput", void 0);
836
- tslib_1.__decorate([
837
- (0, inversify_1.inject)(workspace_service_1.WorkspaceService),
838
- tslib_1.__metadata("design:type", workspace_service_1.WorkspaceService)
839
- ], PluginVscodeCommandsContribution.prototype, "workspaceService", void 0);
840
- tslib_1.__decorate([
841
- (0, inversify_1.inject)(terminal_frontend_contribution_1.TerminalFrontendContribution),
842
- tslib_1.__metadata("design:type", terminal_frontend_contribution_1.TerminalFrontendContribution)
843
- ], PluginVscodeCommandsContribution.prototype, "terminalContribution", void 0);
844
- tslib_1.__decorate([
845
- (0, inversify_1.inject)(quick_open_workspace_1.QuickOpenWorkspace),
846
- tslib_1.__metadata("design:type", quick_open_workspace_1.QuickOpenWorkspace)
847
- ], PluginVscodeCommandsContribution.prototype, "quickOpenWorkspace", void 0);
848
- tslib_1.__decorate([
849
- (0, inversify_1.inject)(terminal_service_1.TerminalService),
850
- tslib_1.__metadata("design:type", Object)
851
- ], PluginVscodeCommandsContribution.prototype, "terminalService", void 0);
852
- tslib_1.__decorate([
853
- (0, inversify_1.inject)(plugin_protocol_1.PluginServer),
854
- tslib_1.__metadata("design:type", Object)
855
- ], PluginVscodeCommandsContribution.prototype, "pluginServer", void 0);
856
- tslib_1.__decorate([
857
- (0, inversify_1.inject)(file_service_1.FileService),
858
- tslib_1.__metadata("design:type", file_service_1.FileService)
859
- ], PluginVscodeCommandsContribution.prototype, "fileService", void 0);
860
- tslib_1.__decorate([
861
- (0, inversify_1.inject)(browser_5.CallHierarchyServiceProvider),
862
- tslib_1.__metadata("design:type", browser_5.CallHierarchyServiceProvider)
863
- ], PluginVscodeCommandsContribution.prototype, "callHierarchyProvider", void 0);
864
- tslib_1.__decorate([
865
- (0, inversify_1.inject)(browser_6.TypeHierarchyServiceProvider),
866
- tslib_1.__metadata("design:type", browser_6.TypeHierarchyServiceProvider)
867
- ], PluginVscodeCommandsContribution.prototype, "typeHierarchyProvider", void 0);
868
- tslib_1.__decorate([
869
- (0, inversify_1.inject)(monaco_text_model_service_1.MonacoTextModelService),
870
- tslib_1.__metadata("design:type", monaco_text_model_service_1.MonacoTextModelService)
871
- ], PluginVscodeCommandsContribution.prototype, "textModelService", void 0);
872
- tslib_1.__decorate([
873
- (0, inversify_1.inject)(window_service_1.WindowService),
874
- tslib_1.__metadata("design:type", Object)
875
- ], PluginVscodeCommandsContribution.prototype, "windowService", void 0);
876
- tslib_1.__decorate([
877
- (0, inversify_1.inject)(core_1.MessageService),
878
- tslib_1.__metadata("design:type", core_1.MessageService)
879
- ], PluginVscodeCommandsContribution.prototype, "messageService", void 0);
880
- tslib_1.__decorate([
881
- (0, inversify_1.inject)(outline_view_contribution_1.OutlineViewContribution),
882
- tslib_1.__metadata("design:type", outline_view_contribution_1.OutlineViewContribution)
883
- ], PluginVscodeCommandsContribution.prototype, "outlineViewContribution", void 0);
884
- tslib_1.__decorate([
885
- (0, inversify_1.inject)(monaco_languages_1.MonacoLanguages),
886
- tslib_1.__metadata("design:type", monaco_languages_1.MonacoLanguages)
887
- ], PluginVscodeCommandsContribution.prototype, "monacoLanguages", void 0);
888
- tslib_1.__decorate([
889
- (0, inversify_1.inject)(scm_contribution_1.ScmContribution),
890
- tslib_1.__metadata("design:type", scm_contribution_1.ScmContribution)
891
- ], PluginVscodeCommandsContribution.prototype, "scmContribution", void 0);
892
- exports.PluginVscodeCommandsContribution = PluginVscodeCommandsContribution = tslib_1.__decorate([
893
- (0, inversify_1.injectable)()
894
- ], PluginVscodeCommandsContribution);
895
- //# sourceMappingURL=plugin-vscode-commands-contribution.js.map