@opensumi/ide-addons 3.0.2-next-1715852509.0 → 3.0.2-next-1715860290.0

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.
@@ -2,6 +2,7 @@ import { ClientAppContribution } from '@opensumi/ide-core-browser';
2
2
  import { WithEventBus } from '@opensumi/ide-core-common';
3
3
  export declare class StatusBarContribution extends WithEventBus implements ClientAppContribution {
4
4
  private readonly commandService;
5
+ private readonly logger;
5
6
  onStart(): void;
6
7
  handleBrowserConnectionOpen(): void;
7
8
  handleBrowserConnectionClose(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"status-bar-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/status-bar-contribution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAML,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,qBACa,qBAAsB,SAAQ,YAAa,YAAW,qBAAqB;IAEtF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAEhD,OAAO;IAGP,2BAA2B;IAK3B,4BAA4B;CAG7B"}
1
+ {"version":3,"file":"status-bar-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/status-bar-contribution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAOL,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,qBACa,qBAAsB,SAAQ,YAAa,YAAW,qBAAqB;IAEtF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAGhD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAU;IAEjC,OAAO;IAGP,2BAA2B;IAM3B,4BAA4B;CAI7B"}
@@ -9,15 +9,21 @@ let StatusBarContribution = class StatusBarContribution extends ide_core_common_
9
9
  onStart() { }
10
10
  handleBrowserConnectionOpen() {
11
11
  this.commandService.executeCommand('statusbar.changeBackgroundColor', 'var(--statusBar-background)');
12
+ this.logger.log('Browser connection open, change status bar background color');
12
13
  }
13
14
  handleBrowserConnectionClose() {
14
15
  this.commandService.executeCommand('statusbar.changeBackgroundColor', 'var(--kt-statusbar-offline-background)');
16
+ this.logger.log('Browser connection close, change status bar background color');
15
17
  }
16
18
  };
17
19
  tslib_1.__decorate([
18
20
  (0, di_1.Autowired)(ide_core_common_1.CommandService),
19
21
  tslib_1.__metadata("design:type", Object)
20
22
  ], StatusBarContribution.prototype, "commandService", void 0);
23
+ tslib_1.__decorate([
24
+ (0, di_1.Autowired)(ide_core_common_1.ILogger),
25
+ tslib_1.__metadata("design:type", Object)
26
+ ], StatusBarContribution.prototype, "logger", void 0);
21
27
  tslib_1.__decorate([
22
28
  (0, ide_core_common_1.OnEvent)(ide_core_common_1.BrowserConnectionOpenEvent),
23
29
  tslib_1.__metadata("design:type", Function),
@@ -1 +1 @@
1
- {"version":3,"file":"status-bar-contribution.js","sourceRoot":"","sources":["../../src/browser/status-bar-contribution.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AACzC,iEAAmE;AACnE,+DAOmC;AAG5B,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,8BAAY;IAIrD,OAAO,KAAI,CAAC;IAGZ,2BAA2B;QACzB,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,iCAAiC,EAAE,6BAA6B,CAAC,CAAC;IACvG,CAAC;IAGD,4BAA4B;QAC1B,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,iCAAiC,EAAE,wCAAwC,CAAC,CAAC;IAClH,CAAC;CACF,CAAA;AAdC;IAAC,IAAA,cAAS,EAAC,gCAAc,CAAC;;6DACsB;AAIhD;IAAC,IAAA,yBAAO,EAAC,4CAA0B,CAAC;;;;wEAGnC;AAED;IAAC,IAAA,yBAAO,EAAC,6CAA2B,CAAC;;;;yEAGpC;AAdU,qBAAqB;IADjC,IAAA,wBAAM,EAAC,wCAAqB,CAAC;GACjB,qBAAqB,CAejC;AAfY,sDAAqB"}
1
+ {"version":3,"file":"status-bar-contribution.js","sourceRoot":"","sources":["../../src/browser/status-bar-contribution.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AACzC,iEAAmE;AACnE,+DAQmC;AAG5B,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,8BAAY;IAOrD,OAAO,KAAI,CAAC;IAGZ,2BAA2B;QACzB,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,iCAAiC,EAAE,6BAA6B,CAAC,CAAC;QACrG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;IAGD,4BAA4B;QAC1B,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,iCAAiC,EAAE,wCAAwC,CAAC,CAAC;QAChH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,8DAA8D,CAAC,CAAC;IAClF,CAAC;CACF,CAAA;AAnBC;IAAC,IAAA,cAAS,EAAC,gCAAc,CAAC;;6DACsB;AAEhD;IAAC,IAAA,cAAS,EAAC,yBAAO,CAAC;;qDACc;AAIjC;IAAC,IAAA,yBAAO,EAAC,4CAA0B,CAAC;;;;wEAInC;AAED;IAAC,IAAA,yBAAO,EAAC,6CAA2B,CAAC;;;;yEAIpC;AAnBU,qBAAqB;IADjC,IAAA,wBAAM,EAAC,wCAAqB,CAAC;GACjB,qBAAqB,CAoBjC;AApBY,sDAAqB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-addons",
3
- "version": "3.0.2-next-1715852509.0",
3
+ "version": "3.0.2-next-1715860290.0",
4
4
  "files": [
5
5
  "lib",
6
6
  "src"
@@ -17,20 +17,20 @@
17
17
  "url": "git@github.com:opensumi/core.git"
18
18
  },
19
19
  "dependencies": {
20
- "@opensumi/ide-core-common": "3.0.2-next-1715852509.0",
21
- "@opensumi/ide-core-node": "3.0.2-next-1715852509.0"
20
+ "@opensumi/ide-core-common": "3.0.2-next-1715860290.0",
21
+ "@opensumi/ide-core-node": "3.0.2-next-1715860290.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@opensumi/ide-components": "3.0.2-next-1715852509.0",
25
- "@opensumi/ide-core-browser": "3.0.2-next-1715852509.0",
26
- "@opensumi/ide-dev-tool": "3.0.2-next-1715852509.0",
27
- "@opensumi/ide-editor": "3.0.2-next-1715852509.0",
28
- "@opensumi/ide-file-search": "3.0.2-next-1715852509.0",
29
- "@opensumi/ide-file-service": "3.0.2-next-1715852509.0",
30
- "@opensumi/ide-overlay": "3.0.2-next-1715852509.0",
31
- "@opensumi/ide-quick-open": "3.0.2-next-1715852509.0",
32
- "@opensumi/ide-workspace": "3.0.2-next-1715852509.0",
33
- "@opensumi/ide-workspace-edit": "3.0.2-next-1715852509.0"
24
+ "@opensumi/ide-components": "3.0.2-next-1715860290.0",
25
+ "@opensumi/ide-core-browser": "3.0.2-next-1715860290.0",
26
+ "@opensumi/ide-dev-tool": "3.0.2-next-1715860290.0",
27
+ "@opensumi/ide-editor": "3.0.2-next-1715860290.0",
28
+ "@opensumi/ide-file-search": "3.0.2-next-1715860290.0",
29
+ "@opensumi/ide-file-service": "3.0.2-next-1715860290.0",
30
+ "@opensumi/ide-overlay": "3.0.2-next-1715860290.0",
31
+ "@opensumi/ide-quick-open": "3.0.2-next-1715860290.0",
32
+ "@opensumi/ide-workspace": "3.0.2-next-1715860290.0",
33
+ "@opensumi/ide-workspace-edit": "3.0.2-next-1715860290.0"
34
34
  },
35
- "gitHead": "b9909c18c2f917ee73f6e19fdc2f5f33dbc616c7"
35
+ "gitHead": "418f55493d415886a27e873ccff118e41bb3df36"
36
36
  }
@@ -5,6 +5,7 @@ import {
5
5
  BrowserConnectionOpenEvent,
6
6
  CommandService,
7
7
  Domain,
8
+ ILogger,
8
9
  OnEvent,
9
10
  WithEventBus,
10
11
  } from '@opensumi/ide-core-common';
@@ -14,15 +15,20 @@ export class StatusBarContribution extends WithEventBus implements ClientAppCont
14
15
  @Autowired(CommandService)
15
16
  private readonly commandService: CommandService;
16
17
 
18
+ @Autowired(ILogger)
19
+ private readonly logger: ILogger;
20
+
17
21
  onStart() {}
18
22
 
19
23
  @OnEvent(BrowserConnectionOpenEvent)
20
24
  handleBrowserConnectionOpen() {
21
25
  this.commandService.executeCommand('statusbar.changeBackgroundColor', 'var(--statusBar-background)');
26
+ this.logger.log('Browser connection open, change status bar background color');
22
27
  }
23
28
 
24
29
  @OnEvent(BrowserConnectionCloseEvent)
25
30
  handleBrowserConnectionClose() {
26
31
  this.commandService.executeCommand('statusbar.changeBackgroundColor', 'var(--kt-statusbar-offline-background)');
32
+ this.logger.log('Browser connection close, change status bar background color');
27
33
  }
28
34
  }