@theia/output 1.45.1 → 1.46.0-next.72

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 (44) hide show
  1. package/README.md +33 -33
  2. package/lib/browser/output-channel.d.ts +125 -125
  3. package/lib/browser/output-channel.js +334 -334
  4. package/lib/browser/output-commands.d.ts +17 -17
  5. package/lib/browser/output-commands.js +84 -84
  6. package/lib/browser/output-context-menu.d.ts +11 -11
  7. package/lib/browser/output-context-menu.js +42 -42
  8. package/lib/browser/output-contribution.d.ts +29 -29
  9. package/lib/browser/output-contribution.js +284 -284
  10. package/lib/browser/output-editor-factory.d.ts +12 -12
  11. package/lib/browser/output-editor-factory.d.ts.map +1 -1
  12. package/lib/browser/output-editor-factory.js +79 -84
  13. package/lib/browser/output-editor-factory.js.map +1 -1
  14. package/lib/browser/output-editor-model-factory.d.ts +15 -15
  15. package/lib/browser/output-editor-model-factory.js +61 -61
  16. package/lib/browser/output-frontend-module.d.ts +3 -3
  17. package/lib/browser/output-frontend-module.js +50 -50
  18. package/lib/browser/output-preferences.d.ts +11 -11
  19. package/lib/browser/output-preferences.js +46 -46
  20. package/lib/browser/output-resource.d.ts +18 -18
  21. package/lib/browser/output-resource.js +54 -54
  22. package/lib/browser/output-toolbar-contribution.d.ts +21 -21
  23. package/lib/browser/output-toolbar-contribution.js +125 -125
  24. package/lib/browser/output-widget.d.ts +48 -48
  25. package/lib/browser/output-widget.js +248 -248
  26. package/lib/common/output-uri.d.ts +7 -7
  27. package/lib/common/output-uri.js +47 -47
  28. package/lib/common/output-uri.spec.d.ts +1 -1
  29. package/lib/common/output-uri.spec.js +50 -50
  30. package/package.json +7 -7
  31. package/src/browser/output-channel.ts +366 -366
  32. package/src/browser/output-commands.ts +100 -100
  33. package/src/browser/output-context-menu.ts +34 -34
  34. package/src/browser/output-contribution.ts +274 -274
  35. package/src/browser/output-editor-factory.ts +68 -74
  36. package/src/browser/output-editor-model-factory.ts +54 -54
  37. package/src/browser/output-frontend-module.ts +53 -53
  38. package/src/browser/output-preferences.ts +58 -58
  39. package/src/browser/output-resource.ts +65 -65
  40. package/src/browser/output-toolbar-contribution.tsx +116 -116
  41. package/src/browser/output-widget.ts +256 -256
  42. package/src/browser/style/output.css +31 -31
  43. package/src/common/output-uri.spec.ts +53 -53
  44. package/src/common/output-uri.ts +47 -47
@@ -1,85 +1,80 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 TypeFox 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
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.OutputEditorFactory = void 0;
28
- const inversify_1 = require("@theia/core/shared/inversify");
29
- const uri_1 = require("@theia/core/lib/common/uri");
30
- const monaco_context_menu_1 = require("@theia/monaco/lib/browser/monaco-context-menu");
31
- const monaco_editor_1 = require("@theia/monaco/lib/browser/monaco-editor");
32
- const output_uri_1 = require("../common/output-uri");
33
- const output_context_menu_1 = require("./output-context-menu");
34
- const contextView_1 = require("@theia/monaco-editor-core/esm/vs/platform/contextview/browser/contextView");
35
- let OutputEditorFactory = class OutputEditorFactory {
36
- constructor() {
37
- this.scheme = output_uri_1.OutputUri.SCHEME;
38
- }
39
- create(model, defaultsOptions, defaultOverrides) {
40
- const uri = new uri_1.default(model.uri);
41
- const options = this.createOptions(model, defaultsOptions);
42
- const overrides = this.createOverrides(model, defaultOverrides);
43
- return new monaco_editor_1.MonacoEditor(uri, model, document.createElement('div'), this.services, options, overrides);
44
- }
45
- createOptions(model, defaultOptions) {
46
- return {
47
- ...defaultOptions,
48
- overviewRulerLanes: 3,
49
- lineNumbersMinChars: 3,
50
- fixedOverflowWidgets: true,
51
- wordWrap: 'off',
52
- lineNumbers: 'off',
53
- glyphMargin: false,
54
- lineDecorationsWidth: 20,
55
- rulers: [],
56
- folding: false,
57
- scrollBeyondLastLine: false,
58
- readOnly: true,
59
- renderLineHighlight: 'none',
60
- minimap: { enabled: false },
61
- matchBrackets: 'never'
62
- };
63
- }
64
- *createOverrides(model, defaultOverrides) {
65
- yield [contextView_1.IContextMenuService, this.contextMenuService];
66
- for (const [identifier, provider] of defaultOverrides) {
67
- if (identifier !== contextView_1.IContextMenuService) {
68
- yield [identifier, provider];
69
- }
70
- }
71
- }
72
- };
73
- __decorate([
74
- (0, inversify_1.inject)(monaco_editor_1.MonacoEditorServices),
75
- __metadata("design:type", monaco_editor_1.MonacoEditorServices)
76
- ], OutputEditorFactory.prototype, "services", void 0);
77
- __decorate([
78
- (0, inversify_1.inject)(output_context_menu_1.OutputContextMenuService),
79
- __metadata("design:type", monaco_context_menu_1.MonacoContextMenuService)
80
- ], OutputEditorFactory.prototype, "contextMenuService", void 0);
81
- OutputEditorFactory = __decorate([
82
- (0, inversify_1.injectable)()
83
- ], OutputEditorFactory);
84
- exports.OutputEditorFactory = OutputEditorFactory;
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2020 TypeFox 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
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ var __metadata = (this && this.__metadata) || function (k, v) {
24
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.OutputEditorFactory = void 0;
28
+ const inversify_1 = require("@theia/core/shared/inversify");
29
+ const uri_1 = require("@theia/core/lib/common/uri");
30
+ const monaco_context_menu_1 = require("@theia/monaco/lib/browser/monaco-context-menu");
31
+ const monaco_editor_1 = require("@theia/monaco/lib/browser/monaco-editor");
32
+ const output_uri_1 = require("../common/output-uri");
33
+ const output_context_menu_1 = require("./output-context-menu");
34
+ const contextView_1 = require("@theia/monaco-editor-core/esm/vs/platform/contextview/browser/contextView");
35
+ let OutputEditorFactory = class OutputEditorFactory {
36
+ constructor() {
37
+ this.scheme = output_uri_1.OutputUri.SCHEME;
38
+ }
39
+ create(model, defaultsOptions) {
40
+ const uri = new uri_1.default(model.uri);
41
+ const options = this.createOptions(model, defaultsOptions);
42
+ const overrides = this.createOverrides(model);
43
+ return new monaco_editor_1.MonacoEditor(uri, model, document.createElement('div'), this.services, options, overrides);
44
+ }
45
+ createOptions(model, defaultOptions) {
46
+ return {
47
+ ...defaultOptions,
48
+ overviewRulerLanes: 3,
49
+ lineNumbersMinChars: 3,
50
+ fixedOverflowWidgets: true,
51
+ wordWrap: 'off',
52
+ lineNumbers: 'off',
53
+ glyphMargin: false,
54
+ lineDecorationsWidth: 20,
55
+ rulers: [],
56
+ folding: false,
57
+ scrollBeyondLastLine: false,
58
+ readOnly: true,
59
+ renderLineHighlight: 'none',
60
+ minimap: { enabled: false },
61
+ matchBrackets: 'never'
62
+ };
63
+ }
64
+ *createOverrides(model) {
65
+ yield [contextView_1.IContextMenuService, this.contextMenuService];
66
+ }
67
+ };
68
+ __decorate([
69
+ (0, inversify_1.inject)(monaco_editor_1.MonacoEditorServices),
70
+ __metadata("design:type", monaco_editor_1.MonacoEditorServices)
71
+ ], OutputEditorFactory.prototype, "services", void 0);
72
+ __decorate([
73
+ (0, inversify_1.inject)(output_context_menu_1.OutputContextMenuService),
74
+ __metadata("design:type", monaco_context_menu_1.MonacoContextMenuService)
75
+ ], OutputEditorFactory.prototype, "contextMenuService", void 0);
76
+ OutputEditorFactory = __decorate([
77
+ (0, inversify_1.injectable)()
78
+ ], OutputEditorFactory);
79
+ exports.OutputEditorFactory = OutputEditorFactory;
85
80
  //# sourceMappingURL=output-editor-factory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"output-editor-factory.js","sourceRoot":"","sources":["../../src/browser/output-editor-factory.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;;;;;;;;AAEhF,4DAAkE;AAClE,oDAA6C;AAG7C,uFAAyF;AACzF,2EAAqH;AACrH,qDAAiD;AACjD,+DAAiE;AACjE,2GAAgH;AAGhH,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAAhC;QAQa,WAAM,GAAW,sBAAS,CAAC,MAAM,CAAC;IAsC/C,CAAC;IApCG,MAAM,CAAC,KAAwB,EAAE,eAAsC,EAAE,gBAAwC;QAC7G,MAAM,GAAG,GAAG,IAAI,aAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;QAC3D,MAAM,SAAS,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;QAChE,OAAO,IAAI,4BAAY,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAC1G,CAAC;IAES,aAAa,CAAC,KAAwB,EAAE,cAAqC;QACnF,OAAO;YACH,GAAG,cAAc;YACjB,kBAAkB,EAAE,CAAC;YACrB,mBAAmB,EAAE,CAAC;YACtB,oBAAoB,EAAE,IAAI;YAC1B,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,EAAE;YACxB,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,KAAK;YACd,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,IAAI;YACd,mBAAmB,EAAE,MAAM;YAC3B,OAAO,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;YAC3B,aAAa,EAAE,OAAO;SACzB,CAAC;IACN,CAAC;IAES,CAAC,eAAe,CAAC,KAAwB,EAAE,gBAAwC;QACzF,MAAM,CAAC,iCAAmB,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;QACrD,KAAK,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,IAAI,gBAAgB,EAAE;YACnD,IAAI,UAAU,KAAK,iCAAmB,EAAE;gBACpC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;aAChC;SACJ;IACL,CAAC;CAEJ,CAAA;AA3CG;IADC,IAAA,kBAAM,EAAC,oCAAoB,CAAC;8BACA,oCAAoB;qDAAC;AAGlD;IADC,IAAA,kBAAM,EAAC,8CAAwB,CAAC;8BACM,8CAAwB;+DAAC;AANvD,mBAAmB;IAD/B,IAAA,sBAAU,GAAE;GACA,mBAAmB,CA8C/B;AA9CY,kDAAmB"}
1
+ {"version":3,"file":"output-editor-factory.js","sourceRoot":"","sources":["../../src/browser/output-editor-factory.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;;;;;;;;AAEhF,4DAAkE;AAClE,oDAA6C;AAG7C,uFAAyF;AACzF,2EAAqH;AACrH,qDAAiD;AACjD,+DAAiE;AACjE,2GAAgH;AAGhH,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAAhC;QAQa,WAAM,GAAW,sBAAS,CAAC,MAAM,CAAC;IAgC/C,CAAC;IA9BG,MAAM,CAAC,KAAwB,EAAE,eAAsC;QACnE,MAAM,GAAG,GAAG,IAAI,aAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;QAC3D,MAAM,SAAS,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QAC9C,OAAO,IAAI,4BAAY,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAC1G,CAAC;IAES,aAAa,CAAC,KAAwB,EAAE,cAAqC;QACnF,OAAO;YACH,GAAG,cAAc;YACjB,kBAAkB,EAAE,CAAC;YACrB,mBAAmB,EAAE,CAAC;YACtB,oBAAoB,EAAE,IAAI;YAC1B,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,EAAE;YACxB,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,KAAK;YACd,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,IAAI;YACd,mBAAmB,EAAE,MAAM;YAC3B,OAAO,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;YAC3B,aAAa,EAAE,OAAO;SACzB,CAAC;IACN,CAAC;IAES,CAAC,eAAe,CAAC,KAAwB;QAC/C,MAAM,CAAC,iCAAmB,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACzD,CAAC;CACJ,CAAA;AArCG;IADC,IAAA,kBAAM,EAAC,oCAAoB,CAAC;8BACA,oCAAoB;qDAAC;AAGlD;IADC,IAAA,kBAAM,EAAC,8CAAwB,CAAC;8BACM,8CAAwB;+DAAC;AANvD,mBAAmB;IAD/B,IAAA,sBAAU,GAAE;GACA,mBAAmB,CAwC/B;AAxCY,kDAAmB"}
@@ -1,16 +1,16 @@
1
- import { Resource } from '@theia/core/lib/common/resource';
2
- import { MonacoEditorModel } from '@theia/monaco/lib/browser/monaco-editor-model';
3
- import { MonacoEditorModelFactory } from '@theia/monaco/lib/browser/monaco-text-model-service';
4
- import { MonacoToProtocolConverter } from '@theia/monaco/lib/browser/monaco-to-protocol-converter';
5
- import { ProtocolToMonacoConverter } from '@theia/monaco/lib/browser/protocol-to-monaco-converter';
6
- export declare class OutputEditorModelFactory implements MonacoEditorModelFactory {
7
- protected readonly m2p: MonacoToProtocolConverter;
8
- protected readonly p2m: ProtocolToMonacoConverter;
9
- readonly scheme: string;
10
- createModel(resource: Resource): MonacoEditorModel;
11
- }
12
- export declare class OutputEditorModel extends MonacoEditorModel {
13
- get readOnly(): boolean;
14
- protected setDirty(dirty: boolean): void;
15
- }
1
+ import { Resource } from '@theia/core/lib/common/resource';
2
+ import { MonacoEditorModel } from '@theia/monaco/lib/browser/monaco-editor-model';
3
+ import { MonacoEditorModelFactory } from '@theia/monaco/lib/browser/monaco-text-model-service';
4
+ import { MonacoToProtocolConverter } from '@theia/monaco/lib/browser/monaco-to-protocol-converter';
5
+ import { ProtocolToMonacoConverter } from '@theia/monaco/lib/browser/protocol-to-monaco-converter';
6
+ export declare class OutputEditorModelFactory implements MonacoEditorModelFactory {
7
+ protected readonly m2p: MonacoToProtocolConverter;
8
+ protected readonly p2m: ProtocolToMonacoConverter;
9
+ readonly scheme: string;
10
+ createModel(resource: Resource): MonacoEditorModel;
11
+ }
12
+ export declare class OutputEditorModel extends MonacoEditorModel {
13
+ get readOnly(): boolean;
14
+ protected setDirty(dirty: boolean): void;
15
+ }
16
16
  //# sourceMappingURL=output-editor-model-factory.d.ts.map
@@ -1,62 +1,62 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 TypeFox 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
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.OutputEditorModel = exports.OutputEditorModelFactory = void 0;
28
- const inversify_1 = require("@theia/core/shared/inversify");
29
- const monaco_editor_model_1 = require("@theia/monaco/lib/browser/monaco-editor-model");
30
- const output_uri_1 = require("../common/output-uri");
31
- const monaco_to_protocol_converter_1 = require("@theia/monaco/lib/browser/monaco-to-protocol-converter");
32
- const protocol_to_monaco_converter_1 = require("@theia/monaco/lib/browser/protocol-to-monaco-converter");
33
- let OutputEditorModelFactory = class OutputEditorModelFactory {
34
- constructor() {
35
- this.scheme = output_uri_1.OutputUri.SCHEME;
36
- }
37
- createModel(resource) {
38
- return new OutputEditorModel(resource, this.m2p, this.p2m);
39
- }
40
- };
41
- __decorate([
42
- (0, inversify_1.inject)(monaco_to_protocol_converter_1.MonacoToProtocolConverter),
43
- __metadata("design:type", monaco_to_protocol_converter_1.MonacoToProtocolConverter)
44
- ], OutputEditorModelFactory.prototype, "m2p", void 0);
45
- __decorate([
46
- (0, inversify_1.inject)(protocol_to_monaco_converter_1.ProtocolToMonacoConverter),
47
- __metadata("design:type", protocol_to_monaco_converter_1.ProtocolToMonacoConverter)
48
- ], OutputEditorModelFactory.prototype, "p2m", void 0);
49
- OutputEditorModelFactory = __decorate([
50
- (0, inversify_1.injectable)()
51
- ], OutputEditorModelFactory);
52
- exports.OutputEditorModelFactory = OutputEditorModelFactory;
53
- class OutputEditorModel extends monaco_editor_model_1.MonacoEditorModel {
54
- get readOnly() {
55
- return true;
56
- }
57
- setDirty(dirty) {
58
- // NOOP
59
- }
60
- }
61
- exports.OutputEditorModel = OutputEditorModel;
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2020 TypeFox 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
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ var __metadata = (this && this.__metadata) || function (k, v) {
24
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.OutputEditorModel = exports.OutputEditorModelFactory = void 0;
28
+ const inversify_1 = require("@theia/core/shared/inversify");
29
+ const monaco_editor_model_1 = require("@theia/monaco/lib/browser/monaco-editor-model");
30
+ const output_uri_1 = require("../common/output-uri");
31
+ const monaco_to_protocol_converter_1 = require("@theia/monaco/lib/browser/monaco-to-protocol-converter");
32
+ const protocol_to_monaco_converter_1 = require("@theia/monaco/lib/browser/protocol-to-monaco-converter");
33
+ let OutputEditorModelFactory = class OutputEditorModelFactory {
34
+ constructor() {
35
+ this.scheme = output_uri_1.OutputUri.SCHEME;
36
+ }
37
+ createModel(resource) {
38
+ return new OutputEditorModel(resource, this.m2p, this.p2m);
39
+ }
40
+ };
41
+ __decorate([
42
+ (0, inversify_1.inject)(monaco_to_protocol_converter_1.MonacoToProtocolConverter),
43
+ __metadata("design:type", monaco_to_protocol_converter_1.MonacoToProtocolConverter)
44
+ ], OutputEditorModelFactory.prototype, "m2p", void 0);
45
+ __decorate([
46
+ (0, inversify_1.inject)(protocol_to_monaco_converter_1.ProtocolToMonacoConverter),
47
+ __metadata("design:type", protocol_to_monaco_converter_1.ProtocolToMonacoConverter)
48
+ ], OutputEditorModelFactory.prototype, "p2m", void 0);
49
+ OutputEditorModelFactory = __decorate([
50
+ (0, inversify_1.injectable)()
51
+ ], OutputEditorModelFactory);
52
+ exports.OutputEditorModelFactory = OutputEditorModelFactory;
53
+ class OutputEditorModel extends monaco_editor_model_1.MonacoEditorModel {
54
+ get readOnly() {
55
+ return true;
56
+ }
57
+ setDirty(dirty) {
58
+ // NOOP
59
+ }
60
+ }
61
+ exports.OutputEditorModel = OutputEditorModel;
62
62
  //# sourceMappingURL=output-editor-model-factory.js.map
@@ -1,4 +1,4 @@
1
- import { ContainerModule } from '@theia/core/shared/inversify';
2
- declare const _default: ContainerModule;
3
- export default _default;
1
+ import { ContainerModule } from '@theia/core/shared/inversify';
2
+ declare const _default: ContainerModule;
3
+ export default _default;
4
4
  //# sourceMappingURL=output-frontend-module.d.ts.map
@@ -1,51 +1,51 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2018 TypeFox 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
- const inversify_1 = require("@theia/core/shared/inversify");
19
- const output_widget_1 = require("./output-widget");
20
- const tab_bar_toolbar_1 = require("@theia/core/lib/browser/shell/tab-bar-toolbar");
21
- const common_1 = require("@theia/core/lib/common");
22
- const browser_1 = require("@theia/core/lib/browser");
23
- const output_channel_1 = require("./output-channel");
24
- const output_preferences_1 = require("./output-preferences");
25
- const output_toolbar_contribution_1 = require("./output-toolbar-contribution");
26
- const output_contribution_1 = require("./output-contribution");
27
- const monaco_editor_provider_1 = require("@theia/monaco/lib/browser/monaco-editor-provider");
28
- const output_context_menu_1 = require("./output-context-menu");
29
- const output_editor_factory_1 = require("./output-editor-factory");
30
- const monaco_text_model_service_1 = require("@theia/monaco/lib/browser/monaco-text-model-service");
31
- const output_editor_model_factory_1 = require("./output-editor-model-factory");
32
- exports.default = new inversify_1.ContainerModule(bind => {
33
- bind(output_channel_1.OutputChannelManager).toSelf().inSingletonScope();
34
- bind(common_1.ResourceResolver).toService(output_channel_1.OutputChannelManager);
35
- bind(output_editor_factory_1.OutputEditorFactory).toSelf().inSingletonScope();
36
- bind(monaco_editor_provider_1.MonacoEditorFactory).toService(output_editor_factory_1.OutputEditorFactory);
37
- bind(output_editor_model_factory_1.OutputEditorModelFactory).toSelf().inSingletonScope();
38
- bind(monaco_text_model_service_1.MonacoEditorModelFactory).toService(output_editor_model_factory_1.OutputEditorModelFactory);
39
- bind(output_context_menu_1.OutputContextMenuService).toSelf().inSingletonScope();
40
- (0, output_preferences_1.bindOutputPreferences)(bind);
41
- bind(output_widget_1.OutputWidget).toSelf();
42
- bind(browser_1.WidgetFactory).toDynamicValue(context => ({
43
- id: output_widget_1.OutputWidget.ID,
44
- createWidget: () => context.container.get(output_widget_1.OutputWidget)
45
- }));
46
- (0, browser_1.bindViewContribution)(bind, output_contribution_1.OutputContribution);
47
- bind(browser_1.OpenHandler).to(output_contribution_1.OutputContribution).inSingletonScope();
48
- bind(output_toolbar_contribution_1.OutputToolbarContribution).toSelf().inSingletonScope();
49
- bind(tab_bar_toolbar_1.TabBarToolbarContribution).toService(output_toolbar_contribution_1.OutputToolbarContribution);
50
- });
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2018 TypeFox 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
+ const inversify_1 = require("@theia/core/shared/inversify");
19
+ const output_widget_1 = require("./output-widget");
20
+ const tab_bar_toolbar_1 = require("@theia/core/lib/browser/shell/tab-bar-toolbar");
21
+ const common_1 = require("@theia/core/lib/common");
22
+ const browser_1 = require("@theia/core/lib/browser");
23
+ const output_channel_1 = require("./output-channel");
24
+ const output_preferences_1 = require("./output-preferences");
25
+ const output_toolbar_contribution_1 = require("./output-toolbar-contribution");
26
+ const output_contribution_1 = require("./output-contribution");
27
+ const monaco_editor_provider_1 = require("@theia/monaco/lib/browser/monaco-editor-provider");
28
+ const output_context_menu_1 = require("./output-context-menu");
29
+ const output_editor_factory_1 = require("./output-editor-factory");
30
+ const monaco_text_model_service_1 = require("@theia/monaco/lib/browser/monaco-text-model-service");
31
+ const output_editor_model_factory_1 = require("./output-editor-model-factory");
32
+ exports.default = new inversify_1.ContainerModule(bind => {
33
+ bind(output_channel_1.OutputChannelManager).toSelf().inSingletonScope();
34
+ bind(common_1.ResourceResolver).toService(output_channel_1.OutputChannelManager);
35
+ bind(output_editor_factory_1.OutputEditorFactory).toSelf().inSingletonScope();
36
+ bind(monaco_editor_provider_1.MonacoEditorFactory).toService(output_editor_factory_1.OutputEditorFactory);
37
+ bind(output_editor_model_factory_1.OutputEditorModelFactory).toSelf().inSingletonScope();
38
+ bind(monaco_text_model_service_1.MonacoEditorModelFactory).toService(output_editor_model_factory_1.OutputEditorModelFactory);
39
+ bind(output_context_menu_1.OutputContextMenuService).toSelf().inSingletonScope();
40
+ (0, output_preferences_1.bindOutputPreferences)(bind);
41
+ bind(output_widget_1.OutputWidget).toSelf();
42
+ bind(browser_1.WidgetFactory).toDynamicValue(context => ({
43
+ id: output_widget_1.OutputWidget.ID,
44
+ createWidget: () => context.container.get(output_widget_1.OutputWidget)
45
+ }));
46
+ (0, browser_1.bindViewContribution)(bind, output_contribution_1.OutputContribution);
47
+ bind(browser_1.OpenHandler).to(output_contribution_1.OutputContribution).inSingletonScope();
48
+ bind(output_toolbar_contribution_1.OutputToolbarContribution).toSelf().inSingletonScope();
49
+ bind(tab_bar_toolbar_1.TabBarToolbarContribution).toService(output_toolbar_contribution_1.OutputToolbarContribution);
50
+ });
51
51
  //# sourceMappingURL=output-frontend-module.js.map
@@ -1,12 +1,12 @@
1
- import { interfaces } from '@theia/core/shared/inversify';
2
- import { PreferenceProxy, PreferenceSchema, PreferenceService } from '@theia/core/lib/browser/preferences';
3
- export declare const OutputConfigSchema: PreferenceSchema;
4
- export interface OutputConfiguration {
5
- 'output.maxChannelHistory': number;
6
- }
7
- export declare const OutputPreferenceContribution: unique symbol;
8
- export declare const OutputPreferences: unique symbol;
9
- export declare type OutputPreferences = PreferenceProxy<OutputConfiguration>;
10
- export declare function createOutputPreferences(preferences: PreferenceService, schema?: PreferenceSchema): OutputPreferences;
11
- export declare function bindOutputPreferences(bind: interfaces.Bind): void;
1
+ import { interfaces } from '@theia/core/shared/inversify';
2
+ import { PreferenceProxy, PreferenceSchema, PreferenceService } from '@theia/core/lib/browser/preferences';
3
+ export declare const OutputConfigSchema: PreferenceSchema;
4
+ export interface OutputConfiguration {
5
+ 'output.maxChannelHistory': number;
6
+ }
7
+ export declare const OutputPreferenceContribution: unique symbol;
8
+ export declare const OutputPreferences: unique symbol;
9
+ export declare type OutputPreferences = PreferenceProxy<OutputConfiguration>;
10
+ export declare function createOutputPreferences(preferences: PreferenceService, schema?: PreferenceSchema): OutputPreferences;
11
+ export declare function bindOutputPreferences(bind: interfaces.Bind): void;
12
12
  //# sourceMappingURL=output-preferences.d.ts.map
@@ -1,47 +1,47 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2018 TypeFox 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.bindOutputPreferences = exports.createOutputPreferences = exports.OutputPreferences = exports.OutputPreferenceContribution = exports.OutputConfigSchema = void 0;
19
- const preferences_1 = require("@theia/core/lib/browser/preferences");
20
- const nls_1 = require("@theia/core/lib/common/nls");
21
- exports.OutputConfigSchema = {
22
- 'type': 'object',
23
- 'properties': {
24
- 'output.maxChannelHistory': {
25
- 'type': 'number',
26
- 'description': nls_1.nls.localize('theia/output/maxChannelHistory', 'The maximum number of entries in an output channel.'),
27
- 'default': 1000
28
- }
29
- }
30
- };
31
- exports.OutputPreferenceContribution = Symbol('OutputPreferenceContribution');
32
- exports.OutputPreferences = Symbol('OutputPreferences');
33
- function createOutputPreferences(preferences, schema = exports.OutputConfigSchema) {
34
- return (0, preferences_1.createPreferenceProxy)(preferences, schema);
35
- }
36
- exports.createOutputPreferences = createOutputPreferences;
37
- function bindOutputPreferences(bind) {
38
- bind(exports.OutputPreferences).toDynamicValue(ctx => {
39
- const preferences = ctx.container.get(preferences_1.PreferenceService);
40
- const contribution = ctx.container.get(exports.OutputPreferenceContribution);
41
- return createOutputPreferences(preferences, contribution.schema);
42
- }).inSingletonScope();
43
- bind(exports.OutputPreferenceContribution).toConstantValue({ schema: exports.OutputConfigSchema });
44
- bind(preferences_1.PreferenceContribution).toService(exports.OutputPreferenceContribution);
45
- }
46
- exports.bindOutputPreferences = bindOutputPreferences;
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2018 TypeFox 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.bindOutputPreferences = exports.createOutputPreferences = exports.OutputPreferences = exports.OutputPreferenceContribution = exports.OutputConfigSchema = void 0;
19
+ const preferences_1 = require("@theia/core/lib/browser/preferences");
20
+ const nls_1 = require("@theia/core/lib/common/nls");
21
+ exports.OutputConfigSchema = {
22
+ 'type': 'object',
23
+ 'properties': {
24
+ 'output.maxChannelHistory': {
25
+ 'type': 'number',
26
+ 'description': nls_1.nls.localize('theia/output/maxChannelHistory', 'The maximum number of entries in an output channel.'),
27
+ 'default': 1000
28
+ }
29
+ }
30
+ };
31
+ exports.OutputPreferenceContribution = Symbol('OutputPreferenceContribution');
32
+ exports.OutputPreferences = Symbol('OutputPreferences');
33
+ function createOutputPreferences(preferences, schema = exports.OutputConfigSchema) {
34
+ return (0, preferences_1.createPreferenceProxy)(preferences, schema);
35
+ }
36
+ exports.createOutputPreferences = createOutputPreferences;
37
+ function bindOutputPreferences(bind) {
38
+ bind(exports.OutputPreferences).toDynamicValue(ctx => {
39
+ const preferences = ctx.container.get(preferences_1.PreferenceService);
40
+ const contribution = ctx.container.get(exports.OutputPreferenceContribution);
41
+ return createOutputPreferences(preferences, contribution.schema);
42
+ }).inSingletonScope();
43
+ bind(exports.OutputPreferenceContribution).toConstantValue({ schema: exports.OutputConfigSchema });
44
+ bind(preferences_1.PreferenceContribution).toService(exports.OutputPreferenceContribution);
45
+ }
46
+ exports.bindOutputPreferences = bindOutputPreferences;
47
47
  //# sourceMappingURL=output-preferences.js.map
@@ -1,19 +1,19 @@
1
- import URI from '@theia/core/lib/common/uri';
2
- import { Event, Resource, ResourceReadOptions, DisposableCollection, Emitter } from '@theia/core/lib/common';
3
- import { Deferred } from '@theia/core/lib/common/promise-util';
4
- import { MonacoEditorModel } from '@theia/monaco/lib/browser/monaco-editor-model';
5
- import { IReference } from '@theia/monaco-editor-core/esm/vs/base/common/lifecycle';
6
- import * as monaco from '@theia/monaco-editor-core';
7
- export declare class OutputResource implements Resource {
8
- readonly uri: URI;
9
- readonly editorModelRef: Deferred<IReference<MonacoEditorModel>>;
10
- protected _textModel: monaco.editor.ITextModel | undefined;
11
- protected onDidChangeContentsEmitter: Emitter<void>;
12
- protected toDispose: DisposableCollection;
13
- constructor(uri: URI, editorModelRef: Deferred<IReference<MonacoEditorModel>>);
14
- get textModel(): monaco.editor.ITextModel | undefined;
15
- get onDidChangeContents(): Event<void>;
16
- readContents(options?: ResourceReadOptions): Promise<string>;
17
- dispose(): void;
18
- }
1
+ import URI from '@theia/core/lib/common/uri';
2
+ import { Event, Resource, ResourceReadOptions, DisposableCollection, Emitter } from '@theia/core/lib/common';
3
+ import { Deferred } from '@theia/core/lib/common/promise-util';
4
+ import { MonacoEditorModel } from '@theia/monaco/lib/browser/monaco-editor-model';
5
+ import { IReference } from '@theia/monaco-editor-core/esm/vs/base/common/lifecycle';
6
+ import * as monaco from '@theia/monaco-editor-core';
7
+ export declare class OutputResource implements Resource {
8
+ readonly uri: URI;
9
+ readonly editorModelRef: Deferred<IReference<MonacoEditorModel>>;
10
+ protected _textModel: monaco.editor.ITextModel | undefined;
11
+ protected onDidChangeContentsEmitter: Emitter<void>;
12
+ protected toDispose: DisposableCollection;
13
+ constructor(uri: URI, editorModelRef: Deferred<IReference<MonacoEditorModel>>);
14
+ get textModel(): monaco.editor.ITextModel | undefined;
15
+ get onDidChangeContents(): Event<void>;
16
+ readContents(options?: ResourceReadOptions): Promise<string>;
17
+ dispose(): void;
18
+ }
19
19
  //# sourceMappingURL=output-resource.d.ts.map