@theia/bulk-edit
Advanced tools
Comparing version
@@ -8,7 +8,9 @@ import { Widget } from '@theia/core/lib/browser/widgets/widget'; | ||
import { QuickViewService } from '@theia/core/lib/browser'; | ||
import { ResourceEdit } from '@theia/monaco-editor-core/esm/vs/editor/browser/services/bulkEditService'; | ||
export declare class BulkEditContribution extends AbstractViewContribution<BulkEditTreeWidget> implements TabBarToolbarContribution { | ||
private readonly bulkEditService; | ||
private edits; | ||
protected edits: ResourceEdit[]; | ||
protected readonly quickView: QuickViewService; | ||
constructor(bulkEditService: MonacoBulkEditService); | ||
protected readonly bulkEditService: MonacoBulkEditService; | ||
constructor(); | ||
protected init(): void; | ||
registerCommands(registry: CommandRegistry): void; | ||
@@ -15,0 +17,0 @@ registerToolbarItems(toolbarRegistry: TabBarToolbarRegistry): Promise<void>; |
@@ -28,3 +28,3 @@ "use strict"; | ||
let BulkEditContribution = class BulkEditContribution extends view_contribution_1.AbstractViewContribution { | ||
constructor(bulkEditService) { | ||
constructor() { | ||
super({ | ||
@@ -37,3 +37,4 @@ widgetId: bulk_edit_tree_1.BULK_EDIT_TREE_WIDGET_ID, | ||
}); | ||
this.bulkEditService = bulkEditService; | ||
} | ||
init() { | ||
this.bulkEditService.setPreviewHandler((edits) => this.previewEdit(edits)); | ||
@@ -106,6 +107,16 @@ } | ||
], BulkEditContribution.prototype, "quickView", void 0); | ||
tslib_1.__decorate([ | ||
(0, inversify_1.inject)(monaco_bulk_edit_service_1.MonacoBulkEditService), | ||
tslib_1.__metadata("design:type", monaco_bulk_edit_service_1.MonacoBulkEditService) | ||
], BulkEditContribution.prototype, "bulkEditService", void 0); | ||
tslib_1.__decorate([ | ||
(0, inversify_1.postConstruct)(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", []), | ||
tslib_1.__metadata("design:returntype", void 0) | ||
], BulkEditContribution.prototype, "init", null); | ||
exports.BulkEditContribution = BulkEditContribution = tslib_1.__decorate([ | ||
(0, inversify_1.injectable)(), | ||
tslib_1.__metadata("design:paramtypes", [monaco_bulk_edit_service_1.MonacoBulkEditService]) | ||
tslib_1.__metadata("design:paramtypes", []) | ||
], BulkEditContribution); | ||
//# sourceMappingURL=bulk-edit-contribution.js.map |
{ | ||
"name": "@theia/bulk-edit", | ||
"version": "1.55.0-next.71+f3c5f5739", | ||
"version": "1.55.0-next.97+52cad8a35", | ||
"description": "Theia - Bulk Edit Extension", | ||
"dependencies": { | ||
"@theia/core": "1.55.0-next.71+f3c5f5739", | ||
"@theia/editor": "1.55.0-next.71+f3c5f5739", | ||
"@theia/filesystem": "1.55.0-next.71+f3c5f5739", | ||
"@theia/monaco": "1.55.0-next.71+f3c5f5739", | ||
"@theia/core": "1.55.0-next.97+52cad8a35", | ||
"@theia/editor": "1.55.0-next.97+52cad8a35", | ||
"@theia/filesystem": "1.55.0-next.97+52cad8a35", | ||
"@theia/monaco": "1.55.0-next.97+52cad8a35", | ||
"@theia/monaco-editor-core": "1.83.101", | ||
"@theia/workspace": "1.55.0-next.71+f3c5f5739", | ||
"@theia/workspace": "1.55.0-next.97+52cad8a35", | ||
"tslib": "^2.6.2" | ||
@@ -52,3 +52,3 @@ }, | ||
}, | ||
"gitHead": "f3c5f573995afb0f0042765f5d7685f105d12313" | ||
"gitHead": "52cad8a35c3c86231f1b3efc74608bd159840a69" | ||
} |
@@ -17,3 +17,3 @@ // ***************************************************************************** | ||
import { injectable, inject, optional } from '@theia/core/shared/inversify'; | ||
import { injectable, inject, optional, postConstruct } from '@theia/core/shared/inversify'; | ||
import { Widget } from '@theia/core/lib/browser/widgets/widget'; | ||
@@ -32,3 +32,3 @@ import { CommandRegistry } from '@theia/core/lib/common'; | ||
export class BulkEditContribution extends AbstractViewContribution<BulkEditTreeWidget> implements TabBarToolbarContribution { | ||
private edits: ResourceEdit[]; | ||
protected edits: ResourceEdit[]; | ||
@@ -38,3 +38,6 @@ @inject(QuickViewService) @optional() | ||
constructor(private readonly bulkEditService: MonacoBulkEditService) { | ||
@inject(MonacoBulkEditService) | ||
protected readonly bulkEditService: MonacoBulkEditService; | ||
constructor() { | ||
super({ | ||
@@ -47,2 +50,6 @@ widgetId: BULK_EDIT_TREE_WIDGET_ID, | ||
}); | ||
} | ||
@postConstruct() | ||
protected init(): void { | ||
this.bulkEditService.setPreviewHandler((edits: ResourceEdit[]) => this.previewEdit(edits)); | ||
@@ -49,0 +56,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
117403
0.7%1712
1.06%