@theia/editor-preview 1.65.0-next.16 → 1.65.0-next.28
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/editor-preview-frontend-module.js +1 -1
- package/lib/browser/editor-preview-frontend-module.js.map +1 -1
- package/lib/browser/editor-preview-manager.d.ts +1 -1
- package/lib/browser/editor-preview-manager.d.ts.map +1 -1
- package/lib/browser/editor-preview-manager.js +1 -1
- package/lib/browser/editor-preview-manager.js.map +1 -1
- package/lib/{browser → common}/editor-preview-preferences.d.ts +1 -1
- package/lib/common/editor-preview-preferences.d.ts.map +1 -0
- package/lib/{browser → common}/editor-preview-preferences.js +4 -5
- package/lib/common/editor-preview-preferences.js.map +1 -0
- package/lib/node/editor-preview-backend-module.d.ts +4 -0
- package/lib/node/editor-preview-backend-module.d.ts.map +1 -0
- package/lib/node/editor-preview-backend-module.js +23 -0
- package/lib/node/editor-preview-backend-module.js.map +1 -0
- package/package.json +7 -6
- package/src/browser/editor-preview-frontend-module.ts +1 -1
- package/src/browser/editor-preview-manager.ts +1 -1
- package/src/{browser → common}/editor-preview-preferences.ts +1 -2
- package/src/node/editor-preview-backend-module.ts +22 -0
- package/lib/browser/editor-preview-preferences.d.ts.map +0 -1
- package/lib/browser/editor-preview-preferences.js.map +0 -1
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
require("../../src/browser/style/index.css");
|
|
19
19
|
const browser_1 = require("@theia/core/lib/browser");
|
|
20
20
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const editor_preview_preferences_1 = require("
|
|
21
|
+
const editor_preview_preferences_1 = require("../common/editor-preview-preferences");
|
|
22
22
|
const editor_preview_manager_1 = require("./editor-preview-manager");
|
|
23
23
|
const browser_2 = require("@theia/editor/lib/browser");
|
|
24
24
|
const editor_preview_widget_factory_1 = require("./editor-preview-widget-factory");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-preview-frontend-module.js","sourceRoot":"","sources":["../../src/browser/editor-preview-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,6CAA6C;AAC7C,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,6CAA2C;AAC3C,qDAAiH;AACjH,4DAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"editor-preview-frontend-module.js","sourceRoot":"","sources":["../../src/browser/editor-preview-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,6CAA6C;AAC7C,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,6CAA2C;AAC3C,qDAAiH;AACjH,4DAA+D;AAC/D,qFAAoF;AACpF,qEAAgE;AAChE,uDAA0D;AAC1D,mFAA6E;AAC7E,+EAA0E;AAC1E,mDAA+E;AAC/E,wJAAqI;AACrI,mFAA6E;AAE7E,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IAEjE,IAAI,CAAC,0DAA0B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7D,IAAI,CAAC,uBAAa,CAAC,CAAC,SAAS,CAAC,0DAA0B,CAAC,CAAC;IAE1D,IAAI,CAAC,6CAAoB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACvD,MAAM,CAAC,uBAAa,CAAC,CAAC,SAAS,CAAC,6CAAoB,CAAC,CAAC;IAEtD,IAAI,CAAC,uDAAyB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC5D,IAAI,CAAC,4BAAmB,CAAC,CAAC,SAAS,CAAC,uDAAyB,CAAC,CAAC;IAC/D,IAAI,CAAC,gCAAsB,CAAC,CAAC,SAAS,CAAC,uDAAyB,CAAC,CAAC;IAClE,IAAI,CAAC,yBAAgB,CAAC,CAAC,SAAS,CAAC,uDAAyB,CAAC,CAAC;IAE5D,IAAI,CAAC,0DAA0B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7D,IAAI,CAAC,mEAAwB,CAAC,CAAC,SAAS,CAAC,0DAA0B,CAAC,CAAC;IACrE,IAAI,CAAC,yCAA+B,CAAC,CAAC,SAAS,CAAC,0DAA0B,CAAC,CAAC;IAC5E,IAAA,yDAA4B,EAAC,IAAI,CAAC,CAAC;AACvC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditorManager, EditorOpenerOptions, EditorWidget } from '@theia/editor/lib/browser';
|
|
2
|
-
import { EditorPreviewPreferences } from '
|
|
2
|
+
import { EditorPreviewPreferences } from '../common/editor-preview-preferences';
|
|
3
3
|
import { MaybePromise } from '@theia/core/lib/common';
|
|
4
4
|
import URI from '@theia/core/lib/common/uri';
|
|
5
5
|
import { EditorPreviewOptions } from './editor-preview-widget-factory';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-preview-manager.d.ts","sourceRoot":"","sources":["../../src/browser/editor-preview-manager.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"editor-preview-manager.d.ts","sourceRoot":"","sources":["../../src/browser/editor-preview-manager.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,mBA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CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;CAM3D"}
|
|
@@ -19,7 +19,7 @@ exports.EditorPreviewManager = void 0;
|
|
|
19
19
|
const tslib_1 = require("tslib");
|
|
20
20
|
const browser_1 = require("@theia/editor/lib/browser");
|
|
21
21
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
-
const editor_preview_preferences_1 = require("
|
|
22
|
+
const editor_preview_preferences_1 = require("../common/editor-preview-preferences");
|
|
23
23
|
const editor_preview_widget_factory_1 = require("./editor-preview-widget-factory");
|
|
24
24
|
const editor_preview_widget_1 = require("./editor-preview-widget");
|
|
25
25
|
const frontend_application_state_1 = require("@theia/core/lib/browser/frontend-application-state");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-preview-manager.js","sourceRoot":"","sources":["../../src/browser/editor-preview-manager.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,6CAA6C;AAC7C,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,uDAA6F;AAC7F,4DAAiF;AACjF,
|
|
1
|
+
{"version":3,"file":"editor-preview-manager.js","sourceRoot":"","sources":["../../src/browser/editor-preview-manager.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,6CAA6C;AAC7C,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,uDAA6F;AAC7F,4DAAiF;AACjF,qFAAgF;AAGhF,mFAAmG;AACnG,mEAA8D;AAC9D,mGAAqG;AAI9F,IAAM,oBAAoB,GAA1B,MAAM,o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G,CAAC,CAAC,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,IAAI,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC,CAAC;QAC9F,OAAO,kBAAkB,CAAC;IAC9B,CAAC;IAES,0BAA0B,CAAC,KAAY;QAC7C,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;QACpD,IAAI,MAAM,YAAY,2CAAmB,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;YAC5D,MAAM,CAAC,mBAAmB,EAAE,CAAC;QACjC,CAAC;IACL,CAAC;CACJ,CAAA;AApGY,oDAAoB;AAGwB;IAApD,IAAA,kBAAM,EAAC,qDAAwB,CAAC;;yDAA0D;AAC/B;IAA3D,IAAA,kBAAM,EAAC,4DAA+B,CAAC;sCAAkC,4DAA+B;0DAAC;AAQvF;IADlB,IAAA,yBAAa,GAAE;;;;gDAiCf;+BA5CQ,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAoGhC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { interfaces } from '@theia/core/shared/inversify';
|
|
2
|
-
import { PreferenceProxy,
|
|
2
|
+
import { PreferenceProxy, PreferenceSchema, PreferenceService } from '@theia/core/lib/common';
|
|
3
3
|
export declare const EditorPreviewConfigSchema: PreferenceSchema;
|
|
4
4
|
export interface EditorPreviewConfiguration {
|
|
5
5
|
'editor.enablePreview': boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-preview-preferences.d.ts","sourceRoot":"","sources":["../../src/common/editor-preview-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAiD,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG7I,eAAO,MAAM,yBAAyB,EAAE,gBASvC,CAAC;AAEF,MAAM,WAAW,0BAA0B;IACvC,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAED,eAAO,MAAM,mCAAmC,eAAgD,CAAC;AACjG,eAAO,MAAM,wBAAwB,eAAqC,CAAC;AAC3E,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,0BAA0B,CAAC,CAAC;AAEnF,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAE,gBAA4C,GAAG,wBAAwB,CAE7J;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAQxE"}
|
|
@@ -16,10 +16,9 @@
|
|
|
16
16
|
// *****************************************************************************
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.bindEditorPreviewPreferences = exports.createEditorPreviewPreferences = exports.EditorPreviewPreferences = exports.EditorPreviewPreferenceContribution = exports.EditorPreviewConfigSchema = void 0;
|
|
19
|
-
const
|
|
19
|
+
const common_1 = require("@theia/core/lib/common");
|
|
20
20
|
const nls_1 = require("@theia/core/lib/common/nls");
|
|
21
21
|
exports.EditorPreviewConfigSchema = {
|
|
22
|
-
'type': 'object',
|
|
23
22
|
properties: {
|
|
24
23
|
'editor.enablePreview': {
|
|
25
24
|
type: 'boolean',
|
|
@@ -32,17 +31,17 @@ exports.EditorPreviewConfigSchema = {
|
|
|
32
31
|
exports.EditorPreviewPreferenceContribution = Symbol('EditorPreviewPreferenceContribution');
|
|
33
32
|
exports.EditorPreviewPreferences = Symbol('EditorPreviewPreferences');
|
|
34
33
|
function createEditorPreviewPreferences(preferences, schema = exports.EditorPreviewConfigSchema) {
|
|
35
|
-
return (0,
|
|
34
|
+
return (0, common_1.createPreferenceProxy)(preferences, schema);
|
|
36
35
|
}
|
|
37
36
|
exports.createEditorPreviewPreferences = createEditorPreviewPreferences;
|
|
38
37
|
function bindEditorPreviewPreferences(bind) {
|
|
39
38
|
bind(exports.EditorPreviewPreferences).toDynamicValue(ctx => {
|
|
40
|
-
const preferences = ctx.container.get(
|
|
39
|
+
const preferences = ctx.container.get(common_1.PreferenceService);
|
|
41
40
|
const contribution = ctx.container.get(exports.EditorPreviewPreferenceContribution);
|
|
42
41
|
return createEditorPreviewPreferences(preferences, contribution.schema);
|
|
43
42
|
}).inSingletonScope();
|
|
44
43
|
bind(exports.EditorPreviewPreferenceContribution).toConstantValue({ schema: exports.EditorPreviewConfigSchema });
|
|
45
|
-
bind(
|
|
44
|
+
bind(common_1.PreferenceContribution).toService(exports.EditorPreviewPreferenceContribution);
|
|
46
45
|
}
|
|
47
46
|
exports.bindEditorPreviewPreferences = bindEditorPreviewPreferences;
|
|
48
47
|
//# sourceMappingURL=editor-preview-preferences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-preview-preferences.js","sourceRoot":"","sources":["../../src/common/editor-preview-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,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;;;AAGhF,mDAA6I;AAC7I,oDAAiD;AAEpC,QAAA,yBAAyB,GAAqB;IACvD,UAAU,EAAE;QACR,sBAAsB,EAAE;YACpB,IAAI,EAAE,SAAS;YACf,mCAAmC;YACnC,WAAW,EAAE,SAAG,CAAC,iBAAiB,CAAC,8gBAA8gB,CAAC;YACljB,OAAO,EAAE,IAAI;SAChB;KACJ;CACJ,CAAC;AAMW,QAAA,mCAAmC,GAAG,MAAM,CAAC,qCAAqC,CAAC,CAAC;AACpF,QAAA,wBAAwB,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AAG3E,SAAgB,8BAA8B,CAAC,WAA8B,EAAE,SAA2B,iCAAyB;IAC/H,OAAO,IAAA,8BAAqB,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC;AAFD,wEAEC;AAED,SAAgB,4BAA4B,CAAC,IAAqB;IAC9D,IAAI,CAAC,gCAAwB,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;QAChD,MAAM,WAAW,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAoB,0BAAiB,CAAC,CAAC;QAC5E,MAAM,YAAY,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAyB,2CAAmC,CAAC,CAAC;QACpG,OAAO,8BAA8B,CAAC,WAAW,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC5E,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACtB,IAAI,CAAC,2CAAmC,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,iCAAyB,EAAE,CAAC,CAAC;IACjG,IAAI,CAAC,+BAAsB,CAAC,CAAC,SAAS,CAAC,2CAAmC,CAAC,CAAC;AAChF,CAAC;AARD,oEAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-preview-backend-module.d.ts","sourceRoot":"","sources":["../../src/node/editor-preview-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 editor_preview_preferences_1 = require("../common/editor-preview-preferences");
|
|
20
|
+
exports.default = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
|
|
21
|
+
(0, editor_preview_preferences_1.bindEditorPreviewPreferences)(bind);
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=editor-preview-backend-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-preview-backend-module.js","sourceRoot":"","sources":["../../src/node/editor-preview-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,qFAAoF;AAEpF,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IACjE,IAAA,yDAA4B,EAAC,IAAI,CAAC,CAAC;AACvC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/editor-preview",
|
|
3
|
-
"version": "1.65.0-next.
|
|
3
|
+
"version": "1.65.0-next.28+7c6aec352",
|
|
4
4
|
"description": "Theia - Editor Preview Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.65.0-next.
|
|
7
|
-
"@theia/editor": "1.65.0-next.
|
|
8
|
-
"@theia/navigator": "1.65.0-next.
|
|
6
|
+
"@theia/core": "1.65.0-next.28+7c6aec352",
|
|
7
|
+
"@theia/editor": "1.65.0-next.28+7c6aec352",
|
|
8
|
+
"@theia/navigator": "1.65.0-next.28+7c6aec352",
|
|
9
9
|
"tslib": "^2.6.2"
|
|
10
10
|
},
|
|
11
11
|
"publishConfig": {
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
"theiaExtensions": [
|
|
15
15
|
{
|
|
16
|
-
"frontend": "lib/browser/editor-preview-frontend-module"
|
|
16
|
+
"frontend": "lib/browser/editor-preview-frontend-module",
|
|
17
|
+
"backend": "lib/node/editor-preview-backend-module"
|
|
17
18
|
}
|
|
18
19
|
],
|
|
19
20
|
"keywords": [
|
|
@@ -46,5 +47,5 @@
|
|
|
46
47
|
"nyc": {
|
|
47
48
|
"extends": "../../configs/nyc.json"
|
|
48
49
|
},
|
|
49
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "7c6aec3525bb27b346e55cd46899d6b82145f6bd"
|
|
50
51
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import '../../src/browser/style/index.css';
|
|
18
18
|
import { FrontendApplicationContribution, KeybindingContribution, WidgetFactory } from '@theia/core/lib/browser';
|
|
19
19
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
20
|
-
import { bindEditorPreviewPreferences } from '
|
|
20
|
+
import { bindEditorPreviewPreferences } from '../common/editor-preview-preferences';
|
|
21
21
|
import { EditorPreviewManager } from './editor-preview-manager';
|
|
22
22
|
import { EditorManager } from '@theia/editor/lib/browser';
|
|
23
23
|
import { EditorPreviewWidgetFactory } from './editor-preview-widget-factory';
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { EditorManager, EditorOpenerOptions, EditorWidget } from '@theia/editor/lib/browser';
|
|
18
18
|
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
19
|
-
import { EditorPreviewPreferences } from '
|
|
19
|
+
import { EditorPreviewPreferences } from '../common/editor-preview-preferences';
|
|
20
20
|
import { MaybePromise } from '@theia/core/lib/common';
|
|
21
21
|
import URI from '@theia/core/lib/common/uri';
|
|
22
22
|
import { EditorPreviewWidgetFactory, EditorPreviewOptions } from './editor-preview-widget-factory';
|
|
@@ -15,11 +15,10 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { interfaces } from '@theia/core/shared/inversify';
|
|
18
|
-
import { createPreferenceProxy,
|
|
18
|
+
import { createPreferenceProxy, PreferenceContribution, PreferenceProxy, PreferenceSchema, PreferenceService } from '@theia/core/lib/common';
|
|
19
19
|
import { nls } from '@theia/core/lib/common/nls';
|
|
20
20
|
|
|
21
21
|
export const EditorPreviewConfigSchema: PreferenceSchema = {
|
|
22
|
-
'type': 'object',
|
|
23
22
|
properties: {
|
|
24
23
|
'editor.enablePreview': {
|
|
25
24
|
type: 'boolean',
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2025 STMicroelectronics and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
+
import { bindEditorPreviewPreferences } from '../common/editor-preview-preferences';
|
|
19
|
+
|
|
20
|
+
export default new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
21
|
+
bindEditorPreviewPreferences(bind);
|
|
22
|
+
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor-preview-preferences.d.ts","sourceRoot":"","sources":["../../src/browser/editor-preview-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAyB,eAAe,EAAE,iBAAiB,EAA0B,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG9I,eAAO,MAAM,yBAAyB,EAAE,gBAUvC,CAAC;AAEF,MAAM,WAAW,0BAA0B;IACvC,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAED,eAAO,MAAM,mCAAmC,eAAgD,CAAC;AACjG,eAAO,MAAM,wBAAwB,eAAqC,CAAC;AAC3E,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,0BAA0B,CAAC,CAAC;AAEnF,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAE,gBAA4C,GAAG,wBAAwB,CAE7J;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAQxE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor-preview-preferences.js","sourceRoot":"","sources":["../../src/browser/editor-preview-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,wCAAwC;AACxC,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;;;AAGhF,qDAA8I;AAC9I,oDAAiD;AAEpC,QAAA,yBAAyB,GAAqB;IACvD,MAAM,E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