@opensumi/ide-addons 2.16.8 → 2.16.9
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 +1 -5
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +0 -9
- package/lib/browser/index.js.map +1 -1
- package/lib/common/index.d.ts +0 -5
- package/lib/common/index.d.ts.map +1 -1
- package/lib/common/index.js +1 -3
- package/lib/common/index.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/index.js +0 -9
- package/lib/node/index.js.map +1 -1
- package/package.json +13 -13
- package/lib/browser/connection-rtt-contribution.d.ts +0 -18
- package/lib/browser/connection-rtt-contribution.d.ts.map +0 -1
- package/lib/browser/connection-rtt-contribution.js +0 -91
- package/lib/browser/connection-rtt-contribution.js.map +0 -1
- package/lib/node/connection-rtt-service.d.ts +0 -5
- package/lib/node/connection-rtt-service.d.ts.map +0 -1
- package/lib/node/connection-rtt-service.js +0 -15
- package/lib/node/connection-rtt-service.js.map +0 -1
package/lib/browser/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BrowserModule } from '@opensumi/ide-core-browser';
|
|
2
|
-
import { ConnectionRTTBrowserService, ConnectionRTTContribution } from './connection-rtt-contribution';
|
|
3
2
|
import { FileDropContribution } from './file-drop.contribution';
|
|
4
3
|
import { FileDropService } from './file-drop.service';
|
|
5
4
|
import { FileSearchContribution } from './file-search.contribution';
|
|
@@ -7,12 +6,9 @@ import { LanguageChangeHintContribution } from './langauge-change.contribution';
|
|
|
7
6
|
import { StatusBarContribution } from './status-bar-contribution';
|
|
8
7
|
import { ToolbarCustomizeContribution } from './toolbar-customize/toolbar-customize.contribution';
|
|
9
8
|
export declare class ClientAddonModule extends BrowserModule {
|
|
10
|
-
providers: (typeof
|
|
9
|
+
providers: (typeof FileDropContribution | typeof FileSearchContribution | typeof LanguageChangeHintContribution | typeof StatusBarContribution | typeof ToolbarCustomizeContribution | {
|
|
11
10
|
token: symbol;
|
|
12
11
|
useClass: typeof FileDropService;
|
|
13
|
-
} | {
|
|
14
|
-
token: symbol;
|
|
15
|
-
useClass: typeof ConnectionRTTBrowserService;
|
|
16
12
|
})[];
|
|
17
13
|
backServices: {
|
|
18
14
|
servicePath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAI3D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAI3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAGlG,qBACa,iBAAkB,SAAQ,aAAa;IAClD,SAAS;;;SAUP;IAEF,YAAY;;QAIV;CACH"}
|
package/lib/browser/index.js
CHANGED
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const di_1 = require("@opensumi/di");
|
|
6
6
|
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const connection_rtt_contribution_1 = require("./connection-rtt-contribution");
|
|
9
8
|
const file_drop_contribution_1 = require("./file-drop.contribution");
|
|
10
9
|
const file_drop_service_1 = require("./file-drop.service");
|
|
11
10
|
const file_search_contribution_1 = require("./file-search.contribution");
|
|
@@ -21,23 +20,15 @@ let ClientAddonModule = class ClientAddonModule extends ide_core_browser_1.Brows
|
|
|
21
20
|
status_bar_contribution_1.StatusBarContribution,
|
|
22
21
|
toolbar_customize_contribution_1.ToolbarCustomizeContribution,
|
|
23
22
|
file_drop_contribution_1.FileDropContribution,
|
|
24
|
-
connection_rtt_contribution_1.ConnectionRTTContribution,
|
|
25
23
|
{
|
|
26
24
|
token: common_1.IFileDropFrontendServiceToken,
|
|
27
25
|
useClass: file_drop_service_1.FileDropService,
|
|
28
26
|
},
|
|
29
|
-
{
|
|
30
|
-
token: connection_rtt_contribution_1.ConnectionRTTBrowserServiceToken,
|
|
31
|
-
useClass: connection_rtt_contribution_1.ConnectionRTTBrowserService,
|
|
32
|
-
},
|
|
33
27
|
];
|
|
34
28
|
this.backServices = [
|
|
35
29
|
{
|
|
36
30
|
servicePath: common_1.FileDropServicePath,
|
|
37
31
|
},
|
|
38
|
-
{
|
|
39
|
-
servicePath: common_1.ConnectionBackServicePath,
|
|
40
|
-
},
|
|
41
32
|
];
|
|
42
33
|
}
|
|
43
34
|
};
|
package/lib/browser/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";;;;AAAA,qCAA0C;AAC1C,iEAA2D;AAE3D,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";;;;AAAA,qCAA0C;AAC1C,iEAA2D;AAE3D,sCAA+E;AAE/E,qEAAgE;AAChE,2DAAsD;AACtD,yEAAoE;AACpE,iFAAgF;AAChF,uEAAkE;AAClE,uGAAkG;AAIlG,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,gCAAa;IAApD;;QACE,cAAS,GAAG;YACV,6DAA8B;YAC9B,iDAAsB;YACtB,+CAAqB;YACrB,6DAA4B;YAC5B,6CAAoB;YACpB;gBACE,KAAK,EAAE,sCAA6B;gBACpC,QAAQ,EAAE,mCAAe;aAC1B;SACF,CAAC;QAEF,iBAAY,GAAG;YACb;gBACE,WAAW,EAAE,4BAAmB;aACjC;SACF,CAAC;IACJ,CAAC;CAAA,CAAA;AAlBY,iBAAiB;IAD7B,IAAA,eAAU,GAAE;GACA,iBAAiB,CAkB7B;AAlBY,8CAAiB"}
|
package/lib/common/index.d.ts
CHANGED
|
@@ -27,9 +27,4 @@ export interface IWebkitDataTransferItemEntry {
|
|
|
27
27
|
export interface IWebkitDataTransferItemEntryReader {
|
|
28
28
|
readEntries(resolve: (file: IWebkitDataTransferItemEntry[]) => void, reject: () => void): void;
|
|
29
29
|
}
|
|
30
|
-
export declare const ConnectionBackServicePath = "ConnectionBackServicePath";
|
|
31
|
-
export declare const IConnectionBackService: unique symbol;
|
|
32
|
-
export interface IConnectionBackService {
|
|
33
|
-
$measure(): Promise<void>;
|
|
34
|
-
}
|
|
35
30
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD,eAAO,MAAM,qBAAqB,eAA6B,CAAC;AAEhE,MAAM,WAAW,uBAAuB;IACtC,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACvE,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7G;AAED,eAAO,MAAM,6BAA6B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;CAC7G;AAED,eAAO,MAAM,6BAA6B,eAAqC,CAAC;AAChF,MAAM,WAAW,wBAAwB;IACvC,aAAa,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC3C;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,uBAAuB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,uBAAuB;IACtC,gBAAgB,IAAI,4BAA4B,CAAC;CAClD;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,EAAE,MAAM,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAC9D,YAAY,IAAI,kCAAkC,CAAC;CACpD;AAED,MAAM,WAAW,kCAAkC;IACjD,WAAW,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,4BAA4B,EAAE,KAAK,IAAI,EAAE,MAAM,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;CAChG"}
|
package/lib/common/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.IFileDropFrontendServiceToken = exports.IFileDropServiceToken = exports.FileDropServicePath = void 0;
|
|
4
4
|
exports.FileDropServicePath = 'FileDropServicePath';
|
|
5
5
|
exports.IFileDropServiceToken = Symbol('IFileDropService');
|
|
6
6
|
exports.IFileDropFrontendServiceToken = Symbol('IFileDropFrontendService');
|
|
7
|
-
exports.ConnectionBackServicePath = 'ConnectionBackServicePath';
|
|
8
|
-
exports.IConnectionBackService = Symbol('IConnectionBackService');
|
|
9
7
|
//# sourceMappingURL=index.js.map
|
package/lib/common/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAE5C,QAAA,qBAAqB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAOnD,QAAA,6BAA6B,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAE5C,QAAA,qBAAqB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAOnD,QAAA,6BAA6B,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './node';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
package/lib/index.js
CHANGED
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iDAAuB"}
|
package/lib/node/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAMrD,qBACa,YAAa,SAAQ,UAAU;IAC1C,SAAS,EAAE,QAAQ,EAAE,CAKnB;IAEF,YAAY;;;QAKV;CACH"}
|
package/lib/node/index.js
CHANGED
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const di_1 = require("@opensumi/di");
|
|
6
6
|
const ide_core_node_1 = require("@opensumi/ide-core-node");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
-
const connection_rtt_service_1 = require("./connection-rtt-service");
|
|
9
8
|
const file_drop_service_1 = require("./file-drop.service");
|
|
10
9
|
let AddonsModule = class AddonsModule extends ide_core_node_1.NodeModule {
|
|
11
10
|
constructor() {
|
|
@@ -15,20 +14,12 @@ let AddonsModule = class AddonsModule extends ide_core_node_1.NodeModule {
|
|
|
15
14
|
token: common_1.IFileDropServiceToken,
|
|
16
15
|
useClass: file_drop_service_1.FileDropService,
|
|
17
16
|
},
|
|
18
|
-
{
|
|
19
|
-
token: common_1.IConnectionBackService,
|
|
20
|
-
useClass: connection_rtt_service_1.ConnectionRTTBackService,
|
|
21
|
-
},
|
|
22
17
|
];
|
|
23
18
|
this.backServices = [
|
|
24
19
|
{
|
|
25
20
|
servicePath: common_1.FileDropServicePath,
|
|
26
21
|
token: common_1.IFileDropServiceToken,
|
|
27
22
|
},
|
|
28
|
-
{
|
|
29
|
-
servicePath: common_1.ConnectionBackServicePath,
|
|
30
|
-
token: common_1.IConnectionBackService,
|
|
31
|
-
},
|
|
32
23
|
];
|
|
33
24
|
}
|
|
34
25
|
};
|
package/lib/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":";;;;AAAA,qCAAoD;AACpD,2DAAqD;AAErD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":";;;;AAAA,qCAAoD;AACpD,2DAAqD;AAErD,sCAAuE;AAEvE,2DAAsD;AAGtD,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,0BAAU;IAA5C;;QACE,cAAS,GAAe;YACtB;gBACE,KAAK,EAAE,8BAAqB;gBAC5B,QAAQ,EAAE,mCAAe;aAC1B;SACF,CAAC;QAEF,iBAAY,GAAG;YACb;gBACE,WAAW,EAAE,4BAAmB;gBAChC,KAAK,EAAE,8BAAqB;aAC7B;SACF,CAAC;IACJ,CAAC;CAAA,CAAA;AAdY,YAAY;IADxB,IAAA,eAAU,GAAE;GACA,YAAY,CAcxB;AAdY,oCAAY"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-addons",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.9",
|
|
4
4
|
"files": [
|
|
5
5
|
"lib"
|
|
6
6
|
],
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
"url": "git@github.com:opensumi/core.git"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@opensumi/ide-core-common": "2.16.
|
|
20
|
-
"@opensumi/ide-core-node": "2.16.
|
|
19
|
+
"@opensumi/ide-core-common": "2.16.9",
|
|
20
|
+
"@opensumi/ide-core-node": "2.16.9"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@opensumi/ide-components": "2.16.
|
|
24
|
-
"@opensumi/ide-core-browser": "2.16.
|
|
23
|
+
"@opensumi/ide-components": "2.16.9",
|
|
24
|
+
"@opensumi/ide-core-browser": "2.16.9",
|
|
25
25
|
"@opensumi/ide-dev-tool": "^1.3.1",
|
|
26
|
-
"@opensumi/ide-editor": "2.16.
|
|
27
|
-
"@opensumi/ide-file-search": "2.16.
|
|
28
|
-
"@opensumi/ide-file-service": "2.16.
|
|
29
|
-
"@opensumi/ide-overlay": "2.16.
|
|
30
|
-
"@opensumi/ide-quick-open": "2.16.
|
|
31
|
-
"@opensumi/ide-workspace": "2.16.
|
|
32
|
-
"@opensumi/ide-workspace-edit": "2.16.
|
|
26
|
+
"@opensumi/ide-editor": "2.16.9",
|
|
27
|
+
"@opensumi/ide-file-search": "2.16.9",
|
|
28
|
+
"@opensumi/ide-file-service": "2.16.9",
|
|
29
|
+
"@opensumi/ide-overlay": "2.16.9",
|
|
30
|
+
"@opensumi/ide-quick-open": "2.16.9",
|
|
31
|
+
"@opensumi/ide-workspace": "2.16.9",
|
|
32
|
+
"@opensumi/ide-workspace-edit": "2.16.9"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "a11152c8d7d183cb5099685c04ef5ce778a357b2"
|
|
35
35
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IStatusBarService } from '@opensumi/ide-core-browser/lib/services';
|
|
2
|
-
import { CommandContribution, CommandRegistry } from '@opensumi/ide-core-common/lib/command';
|
|
3
|
-
import { IConnectionBackService } from '../common';
|
|
4
|
-
export declare const ConnectionRTTBrowserServiceToken: unique symbol;
|
|
5
|
-
export declare class ConnectionRTTBrowserService {
|
|
6
|
-
protected readonly connectionBackService: IConnectionBackService;
|
|
7
|
-
measure(): Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
export declare class ConnectionRTTContribution implements CommandContribution {
|
|
10
|
-
protected readonly statusBarService: IStatusBarService;
|
|
11
|
-
protected readonly rttService: ConnectionRTTBrowserService;
|
|
12
|
-
private interval?;
|
|
13
|
-
private statusBar?;
|
|
14
|
-
static INTERVAL: number;
|
|
15
|
-
registerCommands(commands: CommandRegistry): void;
|
|
16
|
-
private startRTTInterval;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=connection-rtt-contribution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection-rtt-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/connection-rtt-contribution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAA8C,MAAM,yCAAyC,CAAC;AACxH,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAI7F,OAAO,EAA6B,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAiB9E,eAAO,MAAM,gCAAgC,eAAwC,CAAC;AAEtF,qBACa,2BAA2B;IAEtC,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,sBAAsB,CAAC;IAE3D,OAAO;CAGd;AAED,qBACa,yBAA0B,YAAW,mBAAmB;IAEnE,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;IAGvD,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,2BAA2B,CAAC;IAE3D,OAAO,CAAC,QAAQ,CAAC,CAAiB;IAClC,OAAO,CAAC,SAAS,CAAC,CAAyB;IAE3C,MAAM,CAAC,QAAQ,SAAQ;IAEvB,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;IAuBjD,OAAO,CAAC,gBAAgB;CAqBzB"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var ConnectionRTTContribution_1;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ConnectionRTTContribution = exports.ConnectionRTTBrowserService = exports.ConnectionRTTBrowserServiceToken = void 0;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const di_1 = require("@opensumi/di");
|
|
7
|
-
const services_1 = require("@opensumi/ide-core-browser/lib/services");
|
|
8
|
-
const command_1 = require("@opensumi/ide-core-common/lib/command");
|
|
9
|
-
const di_helper_1 = require("@opensumi/ide-core-common/lib/di-helper");
|
|
10
|
-
const localize_1 = require("@opensumi/ide-core-common/lib/localize");
|
|
11
|
-
const common_1 = require("../common");
|
|
12
|
-
const START_CONNECTION_RTT_COMMAND = {
|
|
13
|
-
id: 'connection.start.rtt',
|
|
14
|
-
label: (0, localize_1.localize)('connection.start.rtt', '开发人员工具:查看通信延迟'),
|
|
15
|
-
};
|
|
16
|
-
const STOP_CONNECTION_RTT_COMMAND = {
|
|
17
|
-
id: 'connection.stop.rtt',
|
|
18
|
-
label: (0, localize_1.localize)('connection.stop.rtt', '开发人员工具:关闭通信延迟检查'),
|
|
19
|
-
};
|
|
20
|
-
const statusBarOption = {
|
|
21
|
-
alignment: services_1.StatusBarAlignment.LEFT,
|
|
22
|
-
priority: Infinity - 1,
|
|
23
|
-
};
|
|
24
|
-
exports.ConnectionRTTBrowserServiceToken = Symbol('ConnectionRTTBrowserService');
|
|
25
|
-
let ConnectionRTTBrowserService = class ConnectionRTTBrowserService {
|
|
26
|
-
async measure() {
|
|
27
|
-
await this.connectionBackService.$measure();
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
tslib_1.__decorate([
|
|
31
|
-
(0, di_1.Autowired)(common_1.ConnectionBackServicePath),
|
|
32
|
-
tslib_1.__metadata("design:type", Object)
|
|
33
|
-
], ConnectionRTTBrowserService.prototype, "connectionBackService", void 0);
|
|
34
|
-
ConnectionRTTBrowserService = tslib_1.__decorate([
|
|
35
|
-
(0, di_1.Injectable)()
|
|
36
|
-
], ConnectionRTTBrowserService);
|
|
37
|
-
exports.ConnectionRTTBrowserService = ConnectionRTTBrowserService;
|
|
38
|
-
let ConnectionRTTContribution = ConnectionRTTContribution_1 = class ConnectionRTTContribution {
|
|
39
|
-
registerCommands(commands) {
|
|
40
|
-
commands.registerCommand(START_CONNECTION_RTT_COMMAND, {
|
|
41
|
-
execute: () => {
|
|
42
|
-
if (!this.interval) {
|
|
43
|
-
this.startRTTInterval();
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
commands.registerCommand(STOP_CONNECTION_RTT_COMMAND, {
|
|
48
|
-
execute: () => {
|
|
49
|
-
if (!this.interval) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
global.clearInterval(this.interval);
|
|
53
|
-
if (this.statusBar) {
|
|
54
|
-
this.statusBar.dispose();
|
|
55
|
-
this.statusBar = undefined;
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
startRTTInterval() {
|
|
61
|
-
this.interval = global.setInterval(async () => {
|
|
62
|
-
const start = Date.now();
|
|
63
|
-
await this.rttService.measure();
|
|
64
|
-
const rtt = Date.now() - start;
|
|
65
|
-
const option = {
|
|
66
|
-
text: `${rtt}ms`,
|
|
67
|
-
};
|
|
68
|
-
if (!this.statusBar) {
|
|
69
|
-
const element = this.statusBarService.addElement('connection-rtt', Object.assign(Object.assign({}, option), statusBarOption));
|
|
70
|
-
this.statusBar = element;
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
this.statusBar.update(Object.assign(Object.assign({}, option), statusBarOption));
|
|
74
|
-
}
|
|
75
|
-
}, ConnectionRTTContribution_1.INTERVAL);
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
ConnectionRTTContribution.INTERVAL = 1000;
|
|
79
|
-
tslib_1.__decorate([
|
|
80
|
-
(0, di_1.Autowired)(services_1.IStatusBarService),
|
|
81
|
-
tslib_1.__metadata("design:type", Object)
|
|
82
|
-
], ConnectionRTTContribution.prototype, "statusBarService", void 0);
|
|
83
|
-
tslib_1.__decorate([
|
|
84
|
-
(0, di_1.Autowired)(exports.ConnectionRTTBrowserServiceToken),
|
|
85
|
-
tslib_1.__metadata("design:type", ConnectionRTTBrowserService)
|
|
86
|
-
], ConnectionRTTContribution.prototype, "rttService", void 0);
|
|
87
|
-
ConnectionRTTContribution = ConnectionRTTContribution_1 = tslib_1.__decorate([
|
|
88
|
-
(0, di_helper_1.Domain)(command_1.CommandContribution)
|
|
89
|
-
], ConnectionRTTContribution);
|
|
90
|
-
exports.ConnectionRTTContribution = ConnectionRTTContribution;
|
|
91
|
-
//# sourceMappingURL=connection-rtt-contribution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection-rtt-contribution.js","sourceRoot":"","sources":["../../src/browser/connection-rtt-contribution.ts"],"names":[],"mappings":";;;;;AAAA,qCAAqD;AACrD,sEAAwH;AACxH,mEAA6F;AAC7F,uEAAiE;AACjE,qEAAkE;AAElE,sCAA8E;AAE9E,MAAM,4BAA4B,GAAG;IACnC,EAAE,EAAE,sBAAsB;IAC1B,KAAK,EAAE,IAAA,mBAAQ,EAAC,sBAAsB,EAAE,eAAe,CAAC;CACzD,CAAC;AAEF,MAAM,2BAA2B,GAAG;IAClC,EAAE,EAAE,qBAAqB;IACzB,KAAK,EAAE,IAAA,mBAAQ,EAAC,qBAAqB,EAAE,iBAAiB,CAAC;CAC1D,CAAC;AAEF,MAAM,eAAe,GAAG;IACtB,SAAS,EAAE,6BAAkB,CAAC,IAAI;IAClC,QAAQ,EAAE,QAAQ,GAAG,CAAC;CACvB,CAAC;AAEW,QAAA,gCAAgC,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC;AAGtF,IAAa,2BAA2B,GAAxC,MAAa,2BAA2B;IAItC,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,CAAC,qBAAqB,CAAC,QAAQ,EAAE,CAAC;IAC9C,CAAC;CACF,CAAA;AALC;IADC,IAAA,cAAS,EAAC,kCAAyB,CAAC;;0EAC4B;AAFtD,2BAA2B;IADvC,IAAA,eAAU,GAAE;GACA,2BAA2B,CAOvC;AAPY,kEAA2B;AAUxC,IAAa,yBAAyB,iCAAtC,MAAa,yBAAyB;IAYpC,gBAAgB,CAAC,QAAyB;QACxC,QAAQ,CAAC,eAAe,CAAC,4BAA4B,EAAE;YACrD,OAAO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GAAG,IAAI,CAAC;AARvB;IADC,IAAA,cAAS,EAAC,4BAAiB,CAAC;;mEAC0B;AAGvD;IADC,IAAA,cAAS,EAAC,wCAAgC,CAAC;sCACb,2BAA2B;6DAAC;AALhD,yBAAyB;IADrC,IAAA,kBAAM,EAAC,6BAAmB,CAAC;GACf,yBAAyB,CAwDrC;AAxDY,8DAAyB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection-rtt-service.d.ts","sourceRoot":"","sources":["../../src/node/connection-rtt-service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAEnD,qBACa,wBAAyB,YAAW,sBAAsB;IACrE,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAG1B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConnectionRTTBackService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const di_1 = require("@opensumi/di");
|
|
6
|
-
let ConnectionRTTBackService = class ConnectionRTTBackService {
|
|
7
|
-
$measure() {
|
|
8
|
-
return Promise.resolve();
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
ConnectionRTTBackService = tslib_1.__decorate([
|
|
12
|
-
(0, di_1.Injectable)()
|
|
13
|
-
], ConnectionRTTBackService);
|
|
14
|
-
exports.ConnectionRTTBackService = ConnectionRTTBackService;
|
|
15
|
-
//# sourceMappingURL=connection-rtt-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection-rtt-service.js","sourceRoot":"","sources":["../../src/node/connection-rtt-service.ts"],"names":[],"mappings":";;;;AAAA,qCAA0C;AAK1C,IAAa,wBAAwB,GAArC,MAAa,wBAAwB;IACnC,QAAQ;QACN,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF,CAAA;AAJY,wBAAwB;IADpC,IAAA,eAAU,GAAE;GACA,wBAAwB,CAIpC;AAJY,4DAAwB"}
|