@theia/output 1.67.0-next.56 → 1.67.0-next.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/output-channel.d.ts +126 -0
- package/lib/browser/output-channel.d.ts.map +1 -0
- package/lib/browser/output-channel.js +327 -0
- package/lib/browser/output-channel.js.map +1 -0
- package/lib/browser/output-commands.d.ts +18 -0
- package/lib/browser/output-commands.d.ts.map +1 -0
- package/lib/browser/output-commands.js +85 -0
- package/lib/browser/output-commands.js.map +1 -0
- package/lib/browser/output-context-menu.d.ts +12 -0
- package/lib/browser/output-context-menu.d.ts.map +1 -0
- package/lib/browser/output-context-menu.js +38 -0
- package/lib/browser/output-context-menu.js.map +1 -0
- package/lib/browser/output-contribution.d.ts +30 -0
- package/lib/browser/output-contribution.d.ts.map +1 -0
- package/lib/browser/output-contribution.js +277 -0
- package/lib/browser/output-contribution.js.map +1 -0
- package/lib/browser/output-editor-factory.d.ts +13 -0
- package/lib/browser/output-editor-factory.d.ts.map +1 -0
- package/lib/browser/output-editor-factory.js +72 -0
- package/lib/browser/output-editor-factory.js.map +1 -0
- package/lib/browser/output-editor-model-factory.d.ts +16 -0
- package/lib/browser/output-editor-model-factory.d.ts.map +1 -0
- package/lib/browser/output-editor-model-factory.js +54 -0
- package/lib/browser/output-editor-model-factory.js.map +1 -0
- package/lib/browser/output-frontend-module.d.ts +4 -0
- package/lib/browser/output-frontend-module.d.ts.map +1 -0
- package/lib/browser/output-frontend-module.js +51 -0
- package/lib/browser/output-frontend-module.js.map +1 -0
- package/lib/browser/output-resource.d.ts +19 -0
- package/lib/browser/output-resource.d.ts.map +1 -0
- package/lib/browser/output-resource.js +55 -0
- package/lib/browser/output-resource.js.map +1 -0
- package/lib/browser/output-toolbar-contribution.d.ts +22 -0
- package/lib/browser/output-toolbar-contribution.d.ts.map +1 -0
- package/lib/browser/output-toolbar-contribution.js +118 -0
- package/lib/browser/output-toolbar-contribution.js.map +1 -0
- package/lib/browser/output-widget.d.ts +49 -0
- package/lib/browser/output-widget.d.ts.map +1 -0
- package/lib/browser/output-widget.js +237 -0
- package/lib/browser/output-widget.js.map +1 -0
- package/lib/common/output-preferences.d.ts +12 -0
- package/lib/common/output-preferences.d.ts.map +1 -0
- package/lib/common/output-preferences.js +46 -0
- package/lib/common/output-preferences.js.map +1 -0
- package/lib/common/output-uri.d.ts +8 -0
- package/lib/common/output-uri.d.ts.map +1 -0
- package/lib/common/output-uri.js +49 -0
- package/lib/common/output-uri.js.map +1 -0
- package/lib/common/output-uri.spec.d.ts +2 -0
- package/lib/common/output-uri.spec.d.ts.map +1 -0
- package/lib/common/output-uri.spec.js +51 -0
- package/lib/common/output-uri.spec.js.map +1 -0
- package/lib/node/output-backend-module.d.ts +4 -0
- package/lib/node/output-backend-module.d.ts.map +1 -0
- package/lib/node/output-backend-module.js +23 -0
- package/lib/node/output-backend-module.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
exports.OutputUri = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const uri_1 = tslib_1.__importDefault(require("@theia/core/lib/common/uri"));
|
|
21
|
+
var OutputUri;
|
|
22
|
+
(function (OutputUri) {
|
|
23
|
+
OutputUri.SCHEME = 'output';
|
|
24
|
+
function is(uri) {
|
|
25
|
+
if (uri instanceof uri_1.default) {
|
|
26
|
+
return uri.scheme === OutputUri.SCHEME;
|
|
27
|
+
}
|
|
28
|
+
return is(new uri_1.default(uri));
|
|
29
|
+
}
|
|
30
|
+
OutputUri.is = is;
|
|
31
|
+
function create(name) {
|
|
32
|
+
if (!name) {
|
|
33
|
+
throw new Error("'name' must be defined.");
|
|
34
|
+
}
|
|
35
|
+
if (!name.trim().length) {
|
|
36
|
+
throw new Error("'name' must contain at least one non-whitespace character.");
|
|
37
|
+
}
|
|
38
|
+
return new uri_1.default(encodeURIComponent(name)).withScheme(OutputUri.SCHEME);
|
|
39
|
+
}
|
|
40
|
+
OutputUri.create = create;
|
|
41
|
+
function channelName(uri) {
|
|
42
|
+
if (!is(uri)) {
|
|
43
|
+
throw new Error(`Expected '${OutputUri.SCHEME}' URI scheme. Got: ${uri} instead.`);
|
|
44
|
+
}
|
|
45
|
+
return (uri instanceof uri_1.default ? uri : new uri_1.default(uri)).toString(true).slice(`${OutputUri.SCHEME}:/`.length);
|
|
46
|
+
}
|
|
47
|
+
OutputUri.channelName = channelName;
|
|
48
|
+
})(OutputUri || (exports.OutputUri = OutputUri = {}));
|
|
49
|
+
//# sourceMappingURL=output-uri.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-uri.js","sourceRoot":"","sources":["../../src/common/output-uri.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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4BzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-uri.spec.d.ts","sourceRoot":"","sources":["../../src/common/output-uri.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +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
|
+
});
|
|
51
|
+
//# sourceMappingURL=output-uri.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-uri.spec.js","sourceRoot":"","sources":["../../src/common/output-uri.spec.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,+BAA8B;AAC9B,6CAAyC;AACzC,mCAA8B;AAE9B,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAExB,EAAE,CAAC,yDAAyD,EAAE,GAAG,EAAE;QAC/D,IAAI,CAAC;YACD,sBAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACrB,IAAA,aAAI,EAAC,mBAAmB,CAAC,CAAC;QAC9B,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,IAAA,aAAM,EAAC,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC7D,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+DAA+D,EAAE,GAAG,EAAE;QACrE,IAAI,CAAC;YACD,sBAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACzB,IAAA,aAAI,EAAC,mBAAmB,CAAC,CAAC;QAC9B,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,IAAA,aAAM,EAAC,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAC;QAChG,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAChC,MAAM,GAAG,GAAG,sBAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACxC,MAAM,IAAI,GAAG,sBAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACxC,IAAA,aAAM,EAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACvD,MAAM,GAAG,GAAG,sBAAS,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACzC,MAAM,IAAI,GAAG,sBAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACxC,IAAA,aAAM,EAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-backend-module.d.ts","sourceRoot":"","sources":["../../src/node/output-backend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAG/D,wBAEG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2025 STMicroelectronics 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_preferences_1 = require("../common/output-preferences");
|
|
20
|
+
exports.default = new inversify_1.ContainerModule(bind => {
|
|
21
|
+
(0, output_preferences_1.bindOutputPreferences)(bind);
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=output-backend-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-backend-module.js","sourceRoot":"","sources":["../../src/node/output-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,oDAAoD;AACpD,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,4DAA+D;AAC/D,qEAAqE;AAErE,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAA,0CAAqB,EAAC,IAAI,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/output",
|
|
3
|
-
"version": "1.67.0-next.
|
|
3
|
+
"version": "1.67.0-next.86+03f92ff1d",
|
|
4
4
|
"description": "Theia - Output Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.67.0-next.
|
|
7
|
-
"@theia/editor": "1.67.0-next.
|
|
8
|
-
"@theia/monaco": "1.67.0-next.
|
|
6
|
+
"@theia/core": "1.67.0-next.86+03f92ff1d",
|
|
7
|
+
"@theia/editor": "1.67.0-next.86+03f92ff1d",
|
|
8
|
+
"@theia/monaco": "1.67.0-next.86+03f92ff1d",
|
|
9
9
|
"@theia/monaco-editor-core": "1.96.302",
|
|
10
10
|
"p-queue": "^8.0.1",
|
|
11
11
|
"tslib": "^2.6.2"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"nyc": {
|
|
50
50
|
"extends": "../../configs/nyc.json"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "03f92ff1d97dcb199de39b48e60a53535de22808"
|
|
53
53
|
}
|