@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,51 +1,51 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const chai_1 = require("chai");
19
- const output_uri_1 = require("./output-uri");
20
- const assert_1 = require("assert");
21
- describe('output-uri', () => {
22
- it('should fail when output channel name is an empty string', () => {
23
- try {
24
- output_uri_1.OutputUri.create('');
25
- (0, assert_1.fail)('Expected failure.');
26
- }
27
- catch (e) {
28
- (0, chai_1.expect)(e.message).to.be.equal("'name' must be defined.");
29
- }
30
- });
31
- it('should fail when output channel name contains whitespace only', () => {
32
- try {
33
- output_uri_1.OutputUri.create(' \t');
34
- (0, assert_1.fail)('Expected failure.');
35
- }
36
- catch (e) {
37
- (0, chai_1.expect)(e.message).to.be.equal("'name' must contain at least one non-whitespace character.");
38
- }
39
- });
40
- it('should handle whitespace', () => {
41
- const uri = output_uri_1.OutputUri.create('foo bar');
42
- const name = output_uri_1.OutputUri.channelName(uri);
43
- (0, chai_1.expect)(name).to.be.equal('foo bar');
44
- });
45
- it('should handle special characters (:) gracefully', () => {
46
- const uri = output_uri_1.OutputUri.create('foo: bar');
47
- const name = output_uri_1.OutputUri.channelName(uri);
48
- (0, chai_1.expect)(name).to.be.equal('foo: bar');
49
- });
50
- });
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
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const chai_1 = require("chai");
19
+ const output_uri_1 = require("./output-uri");
20
+ const assert_1 = require("assert");
21
+ describe('output-uri', () => {
22
+ it('should fail when output channel name is an empty string', () => {
23
+ try {
24
+ output_uri_1.OutputUri.create('');
25
+ (0, assert_1.fail)('Expected failure.');
26
+ }
27
+ catch (e) {
28
+ (0, chai_1.expect)(e.message).to.be.equal("'name' must be defined.");
29
+ }
30
+ });
31
+ it('should fail when output channel name contains whitespace only', () => {
32
+ try {
33
+ output_uri_1.OutputUri.create(' \t');
34
+ (0, assert_1.fail)('Expected failure.');
35
+ }
36
+ catch (e) {
37
+ (0, chai_1.expect)(e.message).to.be.equal("'name' must contain at least one non-whitespace character.");
38
+ }
39
+ });
40
+ it('should handle whitespace', () => {
41
+ const uri = output_uri_1.OutputUri.create('foo bar');
42
+ const name = output_uri_1.OutputUri.channelName(uri);
43
+ (0, chai_1.expect)(name).to.be.equal('foo bar');
44
+ });
45
+ it('should handle special characters (:) gracefully', () => {
46
+ const uri = output_uri_1.OutputUri.create('foo: bar');
47
+ const name = output_uri_1.OutputUri.channelName(uri);
48
+ (0, chai_1.expect)(name).to.be.equal('foo: bar');
49
+ });
50
+ });
51
51
  //# sourceMappingURL=output-uri.spec.js.map
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@theia/output",
3
- "version": "1.45.1",
3
+ "version": "1.46.0-next.72+4a275b29d",
4
4
  "description": "Theia - Output Extension",
5
5
  "dependencies": {
6
- "@theia/core": "1.45.1",
7
- "@theia/editor": "1.45.1",
8
- "@theia/monaco": "1.45.1",
9
- "@theia/monaco-editor-core": "1.72.3",
6
+ "@theia/core": "1.46.0-next.72+4a275b29d",
7
+ "@theia/editor": "1.46.0-next.72+4a275b29d",
8
+ "@theia/monaco": "1.46.0-next.72+4a275b29d",
9
+ "@theia/monaco-editor-core": "1.83.101",
10
10
  "@types/p-queue": "^2.3.1",
11
11
  "p-queue": "^2.4.2"
12
12
  },
@@ -43,10 +43,10 @@
43
43
  "watch": "theiaext watch"
44
44
  },
45
45
  "devDependencies": {
46
- "@theia/ext-scripts": "1.45.1"
46
+ "@theia/ext-scripts": "1.46.0"
47
47
  },
48
48
  "nyc": {
49
49
  "extends": "../../configs/nyc.json"
50
50
  },
51
- "gitHead": "3837c50544190b80d0ad8e87aa9fa9f286c70fcc"
51
+ "gitHead": "4a275b29d0db6c81190488c7f76cb667da05ef19"
52
52
  }