@theia/preview 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/index.d.ts +4 -0
- package/lib/browser/index.d.ts.map +1 -0
- package/lib/browser/index.js +21 -0
- package/lib/browser/index.js.map +1 -0
- package/lib/browser/markdown/index.d.ts +2 -0
- package/lib/browser/markdown/index.d.ts.map +1 -0
- package/lib/browser/markdown/index.js +20 -0
- package/lib/browser/markdown/index.js.map +1 -0
- package/lib/browser/markdown/markdown-preview-handler.d.ts +29 -0
- package/lib/browser/markdown/markdown-preview-handler.d.ts.map +1 -0
- package/lib/browser/markdown/markdown-preview-handler.js +294 -0
- package/lib/browser/markdown/markdown-preview-handler.js.map +1 -0
- package/lib/browser/markdown/markdown-preview-handler.spec.d.ts +2 -0
- package/lib/browser/markdown/markdown-preview-handler.spec.d.ts.map +1 -0
- package/lib/browser/markdown/markdown-preview-handler.spec.js +194 -0
- package/lib/browser/markdown/markdown-preview-handler.spec.js.map +1 -0
- package/lib/browser/preview-contribution.d.ts +51 -0
- package/lib/browser/preview-contribution.d.ts.map +1 -0
- package/lib/browser/preview-contribution.js +256 -0
- package/lib/browser/preview-contribution.js.map +1 -0
- package/lib/browser/preview-frontend-module.d.ts +6 -0
- package/lib/browser/preview-frontend-module.d.ts.map +1 -0
- package/lib/browser/preview-frontend-module.js +53 -0
- package/lib/browser/preview-frontend-module.js.map +1 -0
- package/lib/browser/preview-handler.d.ts +105 -0
- package/lib/browser/preview-handler.d.ts.map +1 -0
- package/lib/browser/preview-handler.js +66 -0
- package/lib/browser/preview-handler.js.map +1 -0
- package/lib/browser/preview-link-normalizer.d.ts +8 -0
- package/lib/browser/preview-link-normalizer.d.ts.map +1 -0
- package/lib/browser/preview-link-normalizer.js +47 -0
- package/lib/browser/preview-link-normalizer.js.map +1 -0
- package/lib/browser/preview-uri.d.ts +9 -0
- package/lib/browser/preview-uri.d.ts.map +1 -0
- package/lib/browser/preview-uri.js +48 -0
- package/lib/browser/preview-uri.js.map +1 -0
- package/lib/browser/preview-widget.d.ts +55 -0
- package/lib/browser/preview-widget.d.ts.map +1 -0
- package/lib/browser/preview-widget.js +251 -0
- package/lib/browser/preview-widget.js.map +1 -0
- package/lib/common/preview-preferences.d.ts +14 -0
- package/lib/common/preview-preferences.d.ts.map +1 -0
- package/lib/common/preview-preferences.js +48 -0
- package/lib/common/preview-preferences.js.map +1 -0
- package/lib/node/preview-backend-module.d.ts +4 -0
- package/lib/node/preview-backend-module.d.ts.map +1 -0
- package/lib/node/preview-backend-module.js +23 -0
- package/lib/node/preview-backend-module.js.map +1 -0
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.d.ts.map +1 -0
- package/lib/package.spec.js +26 -0
- package/lib/package.spec.js.map +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-link-normalizer.js","sourceRoot":"","sources":["../../src/browser/preview-link-normalizer.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;AAElE,mHAA8G;AAGvG,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAA3B;QAEO,cAAS,GAAG,IAAI,MAAM,CAAC,4BAA4B,EAAE,GAAG,CAAC,CAAC;IAgBxE,CAAC;IAXG,aAAa,CAAC,WAAgB,EAAE,IAAY;QACxC,IAAI,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC7B,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClE,OAAO,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;YAChH,CAAC;QACL,CAAC;QAAC,MAAM,CAAC;YACL,SAAS;QACb,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ,CAAA;AAlBY,sDAAqB;AAKX;IADlB,IAAA,kBAAM,EAAC,iDAAsB,CAAC;sCACY,iDAAsB;qEAAC;gCALzD,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CAkBjC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import URI from '@theia/core/lib/common/uri';
|
|
2
|
+
export declare namespace PreviewUri {
|
|
3
|
+
const id = "code-editor-preview";
|
|
4
|
+
const param: string;
|
|
5
|
+
function match(uri: URI): boolean;
|
|
6
|
+
function encode(uri: URI): URI;
|
|
7
|
+
function decode(uri: URI): URI;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=preview-uri.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-uri.d.ts","sourceRoot":"","sources":["../../src/browser/preview-uri.ts"],"names":[],"mappings":"AAgBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,yBAAiB,UAAU,CAAC;IACjB,MAAM,EAAE,wBAAwB,CAAC;IACjC,MAAM,KAAK,QAAuB,CAAC;IAC1C,SAAgB,KAAK,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAEvC;IACD,SAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAUpC;IACD,SAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAMpC;CACJ"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.PreviewUri = void 0;
|
|
19
|
+
var PreviewUri;
|
|
20
|
+
(function (PreviewUri) {
|
|
21
|
+
PreviewUri.id = 'code-editor-preview';
|
|
22
|
+
PreviewUri.param = 'open-handler=' + PreviewUri.id;
|
|
23
|
+
function match(uri) {
|
|
24
|
+
return uri.query.indexOf(PreviewUri.param) !== -1;
|
|
25
|
+
}
|
|
26
|
+
PreviewUri.match = match;
|
|
27
|
+
function encode(uri) {
|
|
28
|
+
if (match(uri)) {
|
|
29
|
+
return uri;
|
|
30
|
+
}
|
|
31
|
+
const params = [PreviewUri.param];
|
|
32
|
+
if (uri.query) {
|
|
33
|
+
params.push(...uri.query.split('&'));
|
|
34
|
+
}
|
|
35
|
+
const query = params.join('&');
|
|
36
|
+
return uri.withQuery(query);
|
|
37
|
+
}
|
|
38
|
+
PreviewUri.encode = encode;
|
|
39
|
+
function decode(uri) {
|
|
40
|
+
if (!match(uri)) {
|
|
41
|
+
return uri;
|
|
42
|
+
}
|
|
43
|
+
const query = uri.query.split('&').filter(p => p !== PreviewUri.param).join('&');
|
|
44
|
+
return uri.withQuery(query);
|
|
45
|
+
}
|
|
46
|
+
PreviewUri.decode = decode;
|
|
47
|
+
})(PreviewUri || (exports.PreviewUri = PreviewUri = {}));
|
|
48
|
+
//# sourceMappingURL=preview-uri.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-uri.js","sourceRoot":"","sources":["../../src/browser/preview-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,gFAAgF;;;AAIhF,IAAiB,UAAU,CAwB1B;AAxBD,WAAiB,UAAU;IACV,aAAE,GAAG,qBAAqB,CAAC;IAC3B,gBAAK,GAAG,eAAe,GAAG,WAAA,EAAE,CAAC;IAC1C,SAAgB,KAAK,CAAC,GAAQ;QAC1B,OAAO,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,WAAA,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3C,CAAC;IAFe,gBAAK,QAEpB,CAAA;IACD,SAAgB,MAAM,CAAC,GAAQ;QAC3B,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;YACb,OAAO,GAAG,CAAC;QACf,CAAC;QACD,MAAM,MAAM,GAAG,CAAC,WAAA,KAAK,CAAC,CAAC;QACvB,IAAI,GAAG,CAAC,KAAK,EAAE,CAAC;YACZ,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QACzC,CAAC;QACD,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC/B,OAAO,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAVe,iBAAM,SAUrB,CAAA;IACD,SAAgB,MAAM,CAAC,GAAQ;QAC3B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;YACd,OAAO,GAAG,CAAC;QACf,CAAC;QACD,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,WAAA,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACtE,OAAO,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IANe,iBAAM,SAMrB,CAAA;AACL,CAAC,EAxBgB,UAAU,0BAAV,UAAU,QAwB1B"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Resource } from '@theia/core';
|
|
2
|
+
import { Navigatable } from '@theia/core/lib/browser/navigatable';
|
|
3
|
+
import { BaseWidget, Message } from '@theia/core/lib/browser';
|
|
4
|
+
import URI from '@theia/core/lib/common/uri';
|
|
5
|
+
import { Event, Emitter } from '@theia/core/lib/common';
|
|
6
|
+
import { PreviewHandler, PreviewHandlerProvider } from './preview-handler';
|
|
7
|
+
import { ThemeService } from '@theia/core/lib/browser/theming';
|
|
8
|
+
import { EditorPreferences } from '@theia/editor/lib/common/editor-preferences';
|
|
9
|
+
import { Disposable } from '@theia/core/lib/common/disposable';
|
|
10
|
+
import { MonacoWorkspace } from '@theia/monaco/lib/browser/monaco-workspace';
|
|
11
|
+
import { Location } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
12
|
+
export declare const PREVIEW_WIDGET_CLASS = "theia-preview-widget";
|
|
13
|
+
export declare const PreviewWidgetOptions: unique symbol;
|
|
14
|
+
export interface PreviewWidgetOptions {
|
|
15
|
+
resource: Resource;
|
|
16
|
+
}
|
|
17
|
+
export declare class PreviewWidget extends BaseWidget implements Navigatable {
|
|
18
|
+
protected readonly options: PreviewWidgetOptions;
|
|
19
|
+
protected readonly previewHandlerProvider: PreviewHandlerProvider;
|
|
20
|
+
protected readonly themeService: ThemeService;
|
|
21
|
+
protected readonly workspace: MonacoWorkspace;
|
|
22
|
+
protected readonly editorPreferences: EditorPreferences;
|
|
23
|
+
readonly uri: URI;
|
|
24
|
+
protected readonly resource: Resource;
|
|
25
|
+
protected previewHandler: PreviewHandler | undefined;
|
|
26
|
+
protected firstUpdate: (() => void) | undefined;
|
|
27
|
+
protected readonly onDidScrollEmitter: Emitter<number>;
|
|
28
|
+
protected readonly onDidDoubleClickEmitter: Emitter<Location>;
|
|
29
|
+
protected scrollBeyondLastLine: boolean;
|
|
30
|
+
constructor(options: PreviewWidgetOptions, previewHandlerProvider: PreviewHandlerProvider, themeService: ThemeService, workspace: MonacoWorkspace, editorPreferences: EditorPreferences);
|
|
31
|
+
initialize(): Promise<void>;
|
|
32
|
+
protected onBeforeAttach(msg: Message): void;
|
|
33
|
+
protected preventScrollNotification: boolean;
|
|
34
|
+
protected startScrollSync(): Disposable;
|
|
35
|
+
protected startDoubleClickListener(): Disposable;
|
|
36
|
+
getUri(): URI;
|
|
37
|
+
getResourceUri(): URI | undefined;
|
|
38
|
+
createMoveToUri(resourceUri: URI): URI | undefined;
|
|
39
|
+
onActivateRequest(msg: Message): void;
|
|
40
|
+
onUpdateRequest(msg: Message): void;
|
|
41
|
+
protected forceUpdate(): void;
|
|
42
|
+
protected previousContent: string | undefined;
|
|
43
|
+
protected performUpdate(): Promise<void>;
|
|
44
|
+
protected render(content: string, originUri: URI): Promise<HTMLElement | undefined>;
|
|
45
|
+
protected revealFragment(uri: URI): void;
|
|
46
|
+
revealForSourceLine(sourceLine: number): void;
|
|
47
|
+
protected readonly internalRevealForSourceLine: (sourceLine: number) => void;
|
|
48
|
+
get onDidScroll(): Event<number>;
|
|
49
|
+
protected fireDidScrollToSourceLine(line: number): void;
|
|
50
|
+
protected didScroll(scrollTop: number): void;
|
|
51
|
+
get onDidDoubleClick(): Event<Location>;
|
|
52
|
+
protected fireDidDoubleClickToSourceLine(line: number): void;
|
|
53
|
+
protected didDoubleClick(offsetTop: number): void;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=preview-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-widget.d.ts","sourceRoot":"","sources":["../../src/browser/preview-widget.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,QAAQ,EAAgB,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,OAAO,EAA6B,MAAM,yBAAyB,CAAC;AACzF,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAS,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAEpF,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAM3D,eAAO,MAAM,oBAAoB,eAAiC,CAAC;AACnE,MAAM,WAAW,oBAAoB;IACjC,QAAQ,EAAE,QAAQ,CAAA;CACrB;AAED,qBACa,aAAc,SAAQ,UAAW,YAAW,WAAW;IAW9B,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,oBAAoB;IAC9C,SAAS,CAAC,QAAQ,CAAC,sBAAsB,EAAE,sBAAsB;IAC3E,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY;IAC1C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,eAAe;IAC3C,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB;IAbtF,Q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AG,IAAI;IAcxC,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAG7C,SAAS,CAAC,QAAQ,CAAC,2BAA2B,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAYrE;IAEP,IAAI,WAAW,IAAI,KAAK,CAAC,MAAM,CAAC,CAE/B;IAED,SAAS,CAAC,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAIvD,SAAS,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAW5C,IAAI,gBAAgB,IAAI,KAAK,CAAC,QAAQ,CAAC,CAEtC;IAED,SAAS,CAAC,8BAA8B,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAU5D,SAAS,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;CAQpD"}
|
|
@@ -0,0 +1,251 @@
|
|
|
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.PreviewWidget = exports.PreviewWidgetOptions = exports.PREVIEW_WIDGET_CLASS = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const throttle = require("@theia/core/shared/lodash.throttle");
|
|
21
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
+
const common_1 = require("@theia/core/lib/common");
|
|
24
|
+
const preview_handler_1 = require("./preview-handler");
|
|
25
|
+
const theming_1 = require("@theia/core/lib/browser/theming");
|
|
26
|
+
const editor_preferences_1 = require("@theia/editor/lib/common/editor-preferences");
|
|
27
|
+
const monaco_workspace_1 = require("@theia/monaco/lib/browser/monaco-workspace");
|
|
28
|
+
const vscode_languageserver_protocol_1 = require("@theia/core/shared/vscode-languageserver-protocol");
|
|
29
|
+
exports.PREVIEW_WIDGET_CLASS = 'theia-preview-widget';
|
|
30
|
+
const DEFAULT_ICON = (0, browser_1.codicon)('eye');
|
|
31
|
+
let widgetCounter = 0;
|
|
32
|
+
exports.PreviewWidgetOptions = Symbol('PreviewWidgetOptions');
|
|
33
|
+
let PreviewWidget = class PreviewWidget extends browser_1.BaseWidget {
|
|
34
|
+
constructor(options, previewHandlerProvider, themeService, workspace, editorPreferences) {
|
|
35
|
+
super();
|
|
36
|
+
this.options = options;
|
|
37
|
+
this.previewHandlerProvider = previewHandlerProvider;
|
|
38
|
+
this.themeService = themeService;
|
|
39
|
+
this.workspace = workspace;
|
|
40
|
+
this.editorPreferences = editorPreferences;
|
|
41
|
+
this.firstUpdate = undefined;
|
|
42
|
+
this.onDidScrollEmitter = new common_1.Emitter();
|
|
43
|
+
this.onDidDoubleClickEmitter = new common_1.Emitter();
|
|
44
|
+
this.preventScrollNotification = false;
|
|
45
|
+
this.previousContent = undefined;
|
|
46
|
+
this.internalRevealForSourceLine = throttle((sourceLine) => {
|
|
47
|
+
if (!this.previewHandler || !this.previewHandler.findElementForSourceLine) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const elementToReveal = this.previewHandler.findElementForSourceLine(this.node, sourceLine);
|
|
51
|
+
if (elementToReveal) {
|
|
52
|
+
this.preventScrollNotification = true;
|
|
53
|
+
elementToReveal.scrollIntoView();
|
|
54
|
+
window.setTimeout(() => {
|
|
55
|
+
this.preventScrollNotification = false;
|
|
56
|
+
}, 50);
|
|
57
|
+
}
|
|
58
|
+
}, 50);
|
|
59
|
+
this.resource = this.options.resource;
|
|
60
|
+
this.uri = this.resource.uri;
|
|
61
|
+
this.id = 'preview-widget-' + widgetCounter++;
|
|
62
|
+
this.title.closable = true;
|
|
63
|
+
this.title.label = `Preview ${this.uri.path.base}`;
|
|
64
|
+
this.title.caption = this.title.label;
|
|
65
|
+
this.title.closable = true;
|
|
66
|
+
this.toDispose.push(this.onDidScrollEmitter);
|
|
67
|
+
this.toDispose.push(this.onDidDoubleClickEmitter);
|
|
68
|
+
this.addClass(exports.PREVIEW_WIDGET_CLASS);
|
|
69
|
+
this.node.tabIndex = 0;
|
|
70
|
+
const previewHandler = this.previewHandler = this.previewHandlerProvider.findContribution(this.uri)[0];
|
|
71
|
+
if (!previewHandler) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
this.title.iconClass = previewHandler.iconClass || DEFAULT_ICON;
|
|
75
|
+
this.initialize();
|
|
76
|
+
}
|
|
77
|
+
async initialize() {
|
|
78
|
+
this.scrollBeyondLastLine = !!this.editorPreferences['editor.scrollBeyondLastLine'];
|
|
79
|
+
this.toDispose.push(this.editorPreferences.onPreferenceChanged(e => {
|
|
80
|
+
if (e.preferenceName === 'editor.scrollBeyondLastLine') {
|
|
81
|
+
this.scrollBeyondLastLine = Boolean(e.newValue);
|
|
82
|
+
this.forceUpdate();
|
|
83
|
+
}
|
|
84
|
+
}));
|
|
85
|
+
this.toDispose.push(this.resource);
|
|
86
|
+
if (this.resource.onDidChangeContents) {
|
|
87
|
+
this.toDispose.push(this.resource.onDidChangeContents(() => this.update()));
|
|
88
|
+
}
|
|
89
|
+
const updateIfAffected = (affectedUri) => {
|
|
90
|
+
if (!affectedUri || affectedUri === this.uri.toString()) {
|
|
91
|
+
this.update();
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
this.toDispose.push(this.workspace.onDidOpenTextDocument(document => updateIfAffected(document.uri)));
|
|
95
|
+
this.toDispose.push(this.workspace.onDidChangeTextDocument(params => updateIfAffected(params.model.uri)));
|
|
96
|
+
this.toDispose.push(this.workspace.onDidCloseTextDocument(document => updateIfAffected(document.uri)));
|
|
97
|
+
this.toDispose.push(this.themeService.onDidColorThemeChange(() => this.update()));
|
|
98
|
+
this.firstUpdate = () => {
|
|
99
|
+
this.revealFragment(this.uri);
|
|
100
|
+
};
|
|
101
|
+
this.update();
|
|
102
|
+
}
|
|
103
|
+
onBeforeAttach(msg) {
|
|
104
|
+
super.onBeforeAttach(msg);
|
|
105
|
+
this.toDispose.push(this.startScrollSync());
|
|
106
|
+
this.toDispose.push(this.startDoubleClickListener());
|
|
107
|
+
}
|
|
108
|
+
startScrollSync() {
|
|
109
|
+
return (0, browser_1.addEventListener)(this.node, 'scroll', throttle((event) => {
|
|
110
|
+
if (this.preventScrollNotification) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const scrollTop = this.node.scrollTop;
|
|
114
|
+
this.didScroll(scrollTop);
|
|
115
|
+
}, 50));
|
|
116
|
+
}
|
|
117
|
+
startDoubleClickListener() {
|
|
118
|
+
return (0, browser_1.addEventListener)(this.node, 'dblclick', (event) => {
|
|
119
|
+
if (!(event.target instanceof HTMLElement)) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
const target = event.target;
|
|
123
|
+
let node = target;
|
|
124
|
+
while (node && node instanceof HTMLElement) {
|
|
125
|
+
if (node.tagName === 'A') {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
node = node.parentElement;
|
|
129
|
+
}
|
|
130
|
+
const offsetParent = target.offsetParent;
|
|
131
|
+
const offset = offsetParent.classList.contains(exports.PREVIEW_WIDGET_CLASS) ? target.offsetTop : offsetParent.offsetTop;
|
|
132
|
+
this.didDoubleClick(offset);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
getUri() {
|
|
136
|
+
return this.uri;
|
|
137
|
+
}
|
|
138
|
+
getResourceUri() {
|
|
139
|
+
return this.uri;
|
|
140
|
+
}
|
|
141
|
+
createMoveToUri(resourceUri) {
|
|
142
|
+
return this.uri.withPath(resourceUri.path);
|
|
143
|
+
}
|
|
144
|
+
onActivateRequest(msg) {
|
|
145
|
+
super.onActivateRequest(msg);
|
|
146
|
+
this.node.focus();
|
|
147
|
+
this.update();
|
|
148
|
+
}
|
|
149
|
+
onUpdateRequest(msg) {
|
|
150
|
+
super.onUpdateRequest(msg);
|
|
151
|
+
this.performUpdate();
|
|
152
|
+
}
|
|
153
|
+
forceUpdate() {
|
|
154
|
+
this.previousContent = undefined;
|
|
155
|
+
this.update();
|
|
156
|
+
}
|
|
157
|
+
async performUpdate() {
|
|
158
|
+
if (!this.resource) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
const uri = this.resource.uri;
|
|
162
|
+
const document = this.workspace.textDocuments.find(d => d.uri === uri.toString());
|
|
163
|
+
const content = document ? document.getText() : await this.resource.readContents();
|
|
164
|
+
if (content === this.previousContent) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
this.previousContent = content;
|
|
168
|
+
const contentElement = await this.render(content, uri);
|
|
169
|
+
this.node.innerHTML = '';
|
|
170
|
+
if (contentElement) {
|
|
171
|
+
if (this.scrollBeyondLastLine) {
|
|
172
|
+
contentElement.classList.add('scrollBeyondLastLine');
|
|
173
|
+
}
|
|
174
|
+
this.node.appendChild(contentElement);
|
|
175
|
+
if (this.firstUpdate) {
|
|
176
|
+
this.firstUpdate();
|
|
177
|
+
this.firstUpdate = undefined;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
async render(content, originUri) {
|
|
182
|
+
if (!this.previewHandler || !this.resource) {
|
|
183
|
+
return undefined;
|
|
184
|
+
}
|
|
185
|
+
return this.previewHandler.renderContent({ content, originUri });
|
|
186
|
+
}
|
|
187
|
+
revealFragment(uri) {
|
|
188
|
+
if (uri.fragment === '' || !this.previewHandler || !this.previewHandler.findElementForFragment) {
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
const elementToReveal = this.previewHandler.findElementForFragment(this.node, uri.fragment);
|
|
192
|
+
if (elementToReveal) {
|
|
193
|
+
this.preventScrollNotification = true;
|
|
194
|
+
elementToReveal.scrollIntoView();
|
|
195
|
+
window.setTimeout(() => {
|
|
196
|
+
this.preventScrollNotification = false;
|
|
197
|
+
}, 50);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
revealForSourceLine(sourceLine) {
|
|
201
|
+
this.internalRevealForSourceLine(sourceLine);
|
|
202
|
+
}
|
|
203
|
+
get onDidScroll() {
|
|
204
|
+
return this.onDidScrollEmitter.event;
|
|
205
|
+
}
|
|
206
|
+
fireDidScrollToSourceLine(line) {
|
|
207
|
+
this.onDidScrollEmitter.fire(line);
|
|
208
|
+
}
|
|
209
|
+
didScroll(scrollTop) {
|
|
210
|
+
if (!this.previewHandler || !this.previewHandler.getSourceLineForOffset) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
const offset = scrollTop;
|
|
214
|
+
const line = this.previewHandler.getSourceLineForOffset(this.node, offset);
|
|
215
|
+
if (line) {
|
|
216
|
+
this.fireDidScrollToSourceLine(line);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
get onDidDoubleClick() {
|
|
220
|
+
return this.onDidDoubleClickEmitter.event;
|
|
221
|
+
}
|
|
222
|
+
fireDidDoubleClickToSourceLine(line) {
|
|
223
|
+
if (!this.resource) {
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
this.onDidDoubleClickEmitter.fire({
|
|
227
|
+
uri: this.resource.uri.toString(),
|
|
228
|
+
range: vscode_languageserver_protocol_1.Range.create({ line, character: 0 }, { line, character: 0 })
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
didDoubleClick(offsetTop) {
|
|
232
|
+
if (!this.previewHandler || !this.previewHandler.getSourceLineForOffset) {
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
const line = this.previewHandler.getSourceLineForOffset(this.node, offsetTop) || 0;
|
|
236
|
+
this.fireDidDoubleClickToSourceLine(line);
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
exports.PreviewWidget = PreviewWidget;
|
|
240
|
+
exports.PreviewWidget = PreviewWidget = tslib_1.__decorate([
|
|
241
|
+
(0, inversify_1.injectable)(),
|
|
242
|
+
tslib_1.__param(0, (0, inversify_1.inject)(exports.PreviewWidgetOptions)),
|
|
243
|
+
tslib_1.__param(1, (0, inversify_1.inject)(preview_handler_1.PreviewHandlerProvider)),
|
|
244
|
+
tslib_1.__param(2, (0, inversify_1.inject)(theming_1.ThemeService)),
|
|
245
|
+
tslib_1.__param(3, (0, inversify_1.inject)(monaco_workspace_1.MonacoWorkspace)),
|
|
246
|
+
tslib_1.__param(4, (0, inversify_1.inject)(editor_preferences_1.EditorPreferences)),
|
|
247
|
+
tslib_1.__metadata("design:paramtypes", [Object, preview_handler_1.PreviewHandlerProvider,
|
|
248
|
+
theming_1.ThemeService,
|
|
249
|
+
monaco_workspace_1.MonacoWorkspace, Object])
|
|
250
|
+
], PreviewWidget);
|
|
251
|
+
//# sourceMappingURL=preview-widget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-widget.js","sourceRoot":"","sources":["../../src/browser/preview-widget.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,+DAAgE;AAChE,4DAAkE;AAGlE,qDAAyF;AAEzF,mDAAwD;AACxD,uDAA2E;AA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AY;QACZ,kCAAe;GAdjE,aAAa,CA0OzB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { interfaces } from '@theia/core/shared/inversify';
|
|
2
|
+
import { PreferenceService } from '@theia/core/lib/common/preferences/preference-service';
|
|
3
|
+
import { PreferenceProxy } from '@theia/core/lib/common/preferences/preference-proxy';
|
|
4
|
+
import { PreferenceSchema } from '@theia/core/lib/common/preferences/preference-schema';
|
|
5
|
+
export declare const PreviewConfigSchema: PreferenceSchema;
|
|
6
|
+
export interface PreviewConfiguration {
|
|
7
|
+
'preview.openByDefault': boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const PreviewPreferenceContribution: unique symbol;
|
|
10
|
+
export declare const PreviewPreferences: unique symbol;
|
|
11
|
+
export type PreviewPreferences = PreferenceProxy<PreviewConfiguration>;
|
|
12
|
+
export declare function createPreviewPreferences(preferences: PreferenceService, schema?: PreferenceSchema): PreviewPreferences;
|
|
13
|
+
export declare function bindPreviewPreferences(bind: interfaces.Bind): void;
|
|
14
|
+
//# sourceMappingURL=preview-preferences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-preferences.d.ts","sourceRoot":"","sources":["../../src/common/preview-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE1F,OAAO,EAAyB,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAC7G,OAAO,EAA0B,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAEhH,eAAO,MAAM,mBAAmB,EAAE,gBAQjC,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACjC,uBAAuB,EAAE,OAAO,CAAC;CACpC;AAED,eAAO,MAAM,6BAA6B,eAA0C,CAAC;AACrF,eAAO,MAAM,kBAAkB,eAA+B,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAEvE,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAE,gBAAsC,GAAG,kBAAkB,CAE3I;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAQlE"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.bindPreviewPreferences = exports.createPreviewPreferences = exports.PreviewPreferences = exports.PreviewPreferenceContribution = exports.PreviewConfigSchema = void 0;
|
|
19
|
+
const preference_service_1 = require("@theia/core/lib/common/preferences/preference-service");
|
|
20
|
+
const nls_1 = require("@theia/core/lib/common/nls");
|
|
21
|
+
const preference_proxy_1 = require("@theia/core/lib/common/preferences/preference-proxy");
|
|
22
|
+
const preference_schema_1 = require("@theia/core/lib/common/preferences/preference-schema");
|
|
23
|
+
exports.PreviewConfigSchema = {
|
|
24
|
+
properties: {
|
|
25
|
+
'preview.openByDefault': {
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
description: nls_1.nls.localize('theia/preview/openByDefault', 'Open the preview instead of the editor by default.'),
|
|
28
|
+
default: false
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.PreviewPreferenceContribution = Symbol('PreviewPreferenceContribution');
|
|
33
|
+
exports.PreviewPreferences = Symbol('PreviewPreferences');
|
|
34
|
+
function createPreviewPreferences(preferences, schema = exports.PreviewConfigSchema) {
|
|
35
|
+
return (0, preference_proxy_1.createPreferenceProxy)(preferences, schema);
|
|
36
|
+
}
|
|
37
|
+
exports.createPreviewPreferences = createPreviewPreferences;
|
|
38
|
+
function bindPreviewPreferences(bind) {
|
|
39
|
+
bind(exports.PreviewPreferences).toDynamicValue(ctx => {
|
|
40
|
+
const preferences = ctx.container.get(preference_service_1.PreferenceService);
|
|
41
|
+
const contribution = ctx.container.get(exports.PreviewPreferenceContribution);
|
|
42
|
+
return createPreviewPreferences(preferences, contribution.schema);
|
|
43
|
+
}).inSingletonScope();
|
|
44
|
+
bind(exports.PreviewPreferenceContribution).toConstantValue({ schema: exports.PreviewConfigSchema });
|
|
45
|
+
bind(preference_schema_1.PreferenceContribution).toService(exports.PreviewPreferenceContribution);
|
|
46
|
+
}
|
|
47
|
+
exports.bindPreviewPreferences = bindPreviewPreferences;
|
|
48
|
+
//# sourceMappingURL=preview-preferences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-preferences.js","sourceRoot":"","sources":["../../src/common/preview-preferences.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;;;AAGhF,8FAA0F;AAC1F,oDAAiD;AACjD,0FAA6G;AAC7G,4FAAgH;AAEnG,QAAA,mBAAmB,GAAqB;IACjD,UAAU,EAA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ict";
|
|
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 preview_preferences_1 = require("../common/preview-preferences");
|
|
20
|
+
exports.default = new inversify_1.ContainerModule(bind => {
|
|
21
|
+
(0, preview_preferences_1.bindPreviewPreferences)(bind);
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=preview-backend-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-backend-module.js","sourceRoot":"","sources":["../../src/node/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,uEAAuE;AAEvE,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAA,4CAAsB,EAAC,IAAI,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=package.spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.spec.d.ts","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 TypeFox 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
|
+
/* note: this bogus test file is required so that
|
|
17
|
+
we are able to run mocha unit tests on this
|
|
18
|
+
package, without having any actual unit tests in it.
|
|
19
|
+
This way a coverage report will be generated,
|
|
20
|
+
showing 0% coverage, instead of no report.
|
|
21
|
+
This file can be removed once we have real unit
|
|
22
|
+
tests in place. */
|
|
23
|
+
describe('preview package', () => {
|
|
24
|
+
it('support code coverage statistics', () => true);
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=package.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.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;;;;;;qBAMqB;AAErB,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAE7B,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AAEvD,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/preview",
|
|
3
|
-
"version": "1.67.0-next.
|
|
3
|
+
"version": "1.67.0-next.86+03f92ff1d",
|
|
4
4
|
"description": "Theia - Preview Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.67.0-next.
|
|
7
|
-
"@theia/editor": "1.67.0-next.
|
|
8
|
-
"@theia/mini-browser": "1.67.0-next.
|
|
9
|
-
"@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/mini-browser": "1.67.0-next.86+03f92ff1d",
|
|
9
|
+
"@theia/monaco": "1.67.0-next.86+03f92ff1d",
|
|
10
10
|
"@types/highlight.js": "^10.1.0",
|
|
11
11
|
"highlight.js": "10.4.1",
|
|
12
12
|
"tslib": "^2.6.2"
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"nyc": {
|
|
52
52
|
"extends": "../../configs/nyc.json"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "03f92ff1d97dcb199de39b48e60a53535de22808"
|
|
55
55
|
}
|