@opensumi/ide-addons 2.16.13 → 2.17.2

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.
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,91 @@
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
@@ -0,0 +1 @@
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,EAAE,GAAG,EAAE;gBACZ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;oBAClB,IAAI,CAAC,gBAAgB,EAAE,CAAC;iBACzB;YACH,CAAC;SACF,CAAC,CAAC;QAEH,QAAQ,CAAC,eAAe,CAAC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M,EAAC,6BAAmB,CAAC;GACf,yBAAyB,CAwDrC;AAxDY,8DAAyB"}
@@ -1,4 +1,5 @@
1
1
  import { BrowserModule } from '@opensumi/ide-core-browser';
2
+ import { ConnectionRTTBrowserService, ConnectionRTTContribution } from './connection-rtt-contribution';
2
3
  import { FileDropContribution } from './file-drop.contribution';
3
4
  import { FileDropService } from './file-drop.service';
4
5
  import { FileSearchContribution } from './file-search.contribution';
@@ -6,9 +7,12 @@ import { LanguageChangeHintContribution } from './langauge-change.contribution';
6
7
  import { StatusBarContribution } from './status-bar-contribution';
7
8
  import { ToolbarCustomizeContribution } from './toolbar-customize/toolbar-customize.contribution';
8
9
  export declare class ClientAddonModule extends BrowserModule {
9
- providers: (typeof FileDropContribution | typeof FileSearchContribution | typeof LanguageChangeHintContribution | typeof StatusBarContribution | typeof ToolbarCustomizeContribution | {
10
+ providers: (typeof ConnectionRTTContribution | typeof FileDropContribution | typeof FileSearchContribution | typeof LanguageChangeHintContribution | typeof StatusBarContribution | typeof ToolbarCustomizeContribution | {
10
11
  token: symbol;
11
12
  useClass: typeof FileDropService;
13
+ } | {
14
+ token: symbol;
15
+ useClass: typeof ConnectionRTTBrowserService;
12
16
  })[];
13
17
  backServices: {
14
18
  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,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"}
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,EACL,2BAA2B,EAE3B,yBAAyB,EAC1B,MAAM,+BAA+B,CAAC;AACvC,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;AAElG,qBACa,iBAAkB,SAAQ,aAAa;IAClD,SAAS;;;;;;SAeP;IAEF,YAAY;;QAOV;CACH"}
@@ -5,6 +5,7 @@ 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");
8
9
  const file_drop_contribution_1 = require("./file-drop.contribution");
9
10
  const file_drop_service_1 = require("./file-drop.service");
10
11
  const file_search_contribution_1 = require("./file-search.contribution");
@@ -20,15 +21,23 @@ let ClientAddonModule = class ClientAddonModule extends ide_core_browser_1.Brows
20
21
  status_bar_contribution_1.StatusBarContribution,
21
22
  toolbar_customize_contribution_1.ToolbarCustomizeContribution,
22
23
  file_drop_contribution_1.FileDropContribution,
24
+ connection_rtt_contribution_1.ConnectionRTTContribution,
23
25
  {
24
26
  token: common_1.IFileDropFrontendServiceToken,
25
27
  useClass: file_drop_service_1.FileDropService,
26
28
  },
29
+ {
30
+ token: connection_rtt_contribution_1.ConnectionRTTBrowserServiceToken,
31
+ useClass: connection_rtt_contribution_1.ConnectionRTTBrowserService,
32
+ },
27
33
  ];
28
34
  this.backServices = [
29
35
  {
30
36
  servicePath: common_1.FileDropServicePath,
31
37
  },
38
+ {
39
+ servicePath: common_1.ConnectionBackServicePath,
40
+ },
32
41
  ];
33
42
  }
34
43
  };
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";;;;AAAA,qCAA0C;AAC1C,iEAA2D;AAE3D,sCAA0G;AAE1G,+EAIuC;AACvC,qEAAgE;AAChE,2DAAsD;AACtD,yEAAoE;AACpE,iFAAgF;AAChF,uEAAkE;AAClE,uGAAkG;AAGlG,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,gCAAa;IAApD;;QACE,cAAS,GAAG;YACV,6DAA8B;YAC9B,iDAAsB;YACtB,+CAAqB;YACrB,6DAA4B;YAC5B,6CAAoB;YACpB,uDAAyB;YACzB;gBACE,KAAK,EAAE,sCAA6B;gBACpC,QAAQ,EAAE,mCAAe;aAC1B;YACD;gBACE,KAAK,EAAE,8DAAgC;gBACvC,QAAQ,EAAE,yDAA2B;aACtC;SACF,CAAC;QAEF,iBAAY,GAAG;YACb;gBACE,WAAW,EAAE,4BAAmB;aACjC;YACD;gBACE,WAAW,EAAE,kCAAyB;aACvC;SACF,CAAC;IACJ,CAAC;CAAA,CAAA;AA1BY,iBAAiB;IAD7B,IAAA,eAAU,GAAE;GACA,iBAAiB,CA0B7B;AA1BY,8CAAiB"}
@@ -27,4 +27,9 @@ 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
+ }
30
35
  //# 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,eAAqC,CAAC;AAChF,MAAM,WAAW,wBAAwB;IACvC,aAAa,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,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;AAED,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE,eAAO,MAAM,sBAAsB,eAAmC,CAAC;AAEvE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B"}
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IFileDropFrontendServiceToken = exports.IFileDropServiceToken = exports.FileDropServicePath = void 0;
3
+ exports.IConnectionBackService = exports.ConnectionBackServicePath = 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');
7
9
  //# sourceMappingURL=index.js.map
@@ -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;AA4BnE,QAAA,yBAAyB,GAAG,2BAA2B,CAAC;AAExD,QAAA,sBAAsB,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC"}
package/lib/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './node';
1
+ export * from './common';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./node"), exports);
4
+ tslib_1.__exportStar(require("./common"), exports);
5
5
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iDAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB"}
@@ -0,0 +1,5 @@
1
+ import { IConnectionBackService } from '../common';
2
+ export declare class ConnectionRTTBackService implements IConnectionBackService {
3
+ $measure(): Promise<void>;
4
+ }
5
+ //# sourceMappingURL=connection-rtt-service.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,15 @@
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
@@ -0,0 +1 @@
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"}
@@ -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;AAMrD,qBACa,YAAa,SAAQ,UAAU;IAC1C,SAAS,EAAE,QAAQ,EAAE,CAKnB;IAEF,YAAY;;;QAKV;CACH"}
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;AAYrD,qBACa,YAAa,SAAQ,UAAU;IAC1C,SAAS,EAAE,QAAQ,EAAE,CASnB;IAEF,YAAY;;;QASV;CACH"}
package/lib/node/index.js CHANGED
@@ -5,6 +5,7 @@ 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");
8
9
  const file_drop_service_1 = require("./file-drop.service");
9
10
  let AddonsModule = class AddonsModule extends ide_core_node_1.NodeModule {
10
11
  constructor() {
@@ -14,12 +15,20 @@ let AddonsModule = class AddonsModule extends ide_core_node_1.NodeModule {
14
15
  token: common_1.IFileDropServiceToken,
15
16
  useClass: file_drop_service_1.FileDropService,
16
17
  },
18
+ {
19
+ token: common_1.IConnectionBackService,
20
+ useClass: connection_rtt_service_1.ConnectionRTTBackService,
21
+ },
17
22
  ];
18
23
  this.backServices = [
19
24
  {
20
25
  servicePath: common_1.FileDropServicePath,
21
26
  token: common_1.IFileDropServiceToken,
22
27
  },
28
+ {
29
+ servicePath: common_1.ConnectionBackServicePath,
30
+ token: common_1.IConnectionBackService,
31
+ },
23
32
  ];
24
33
  }
25
34
  };
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":";;;;AAAA,qCAAoD;AACpD,2DAAqD;AAErD,sCAKmB;AAEnB,qEAAoE;AACpE,2DAAsD;AAGtD,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,0BAAU;IAA5C;;QACE,cAAS,GAAe;YACtB;gBACE,KAAK,EAAE,8BAAqB;gBAC5B,QAAQ,EAAE,mCAAe;aAC1B;YACD;gBACE,KAAK,EAAE,+BAAsB;gBAC7B,QAAQ,EAAE,iDAAwB;aACnC;SACF,CAAC;QAEF,iBAAY,GAAG;YACb;gBACE,WAAW,EAAE,4BAAmB;gBAChC,KAAK,EAAE,8BAAqB;aAC7B;YACD;gBACE,WAAW,EAAE,kCAAyB;gBACtC,KAAK,EAAE,+BAAsB;aAC9B;SACF,CAAC;IACJ,CAAC;CAAA,CAAA;AAtBY,YAAY;IADxB,IAAA,eAAU,GAAE;GACA,YAAY,CAsBxB;AAtBY,oCAAY"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-addons",
3
- "version": "2.16.13",
3
+ "version": "2.17.2",
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.13",
20
- "@opensumi/ide-core-node": "2.16.13"
19
+ "@opensumi/ide-core-common": "2.17.2",
20
+ "@opensumi/ide-core-node": "2.17.2"
21
21
  },
22
22
  "devDependencies": {
23
- "@opensumi/ide-components": "2.16.13",
24
- "@opensumi/ide-core-browser": "2.16.13",
23
+ "@opensumi/ide-components": "2.17.2",
24
+ "@opensumi/ide-core-browser": "2.17.2",
25
25
  "@opensumi/ide-dev-tool": "^1.3.1",
26
- "@opensumi/ide-editor": "2.16.13",
27
- "@opensumi/ide-file-search": "2.16.13",
28
- "@opensumi/ide-file-service": "2.16.13",
29
- "@opensumi/ide-overlay": "2.16.13",
30
- "@opensumi/ide-quick-open": "2.16.13",
31
- "@opensumi/ide-workspace": "2.16.13",
32
- "@opensumi/ide-workspace-edit": "2.16.13"
26
+ "@opensumi/ide-editor": "2.17.2",
27
+ "@opensumi/ide-file-search": "2.17.2",
28
+ "@opensumi/ide-file-service": "2.17.2",
29
+ "@opensumi/ide-overlay": "2.17.2",
30
+ "@opensumi/ide-quick-open": "2.17.2",
31
+ "@opensumi/ide-workspace": "2.17.2",
32
+ "@opensumi/ide-workspace-edit": "2.17.2"
33
33
  },
34
- "gitHead": "f2e1058b04384f3e8b7c415ef4d022df7d6f56d6"
34
+ "gitHead": "10928ce01fdb11ada05dd7e1938fa3d1c55edd18"
35
35
  }