@theia/core 1.54.0 → 1.55.0-next.14

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.
Files changed (35) hide show
  1. package/README.md +9 -9
  2. package/lib/browser/catalog.json +158 -49
  3. package/lib/browser/frontend-application-module.d.ts.map +1 -1
  4. package/lib/browser/frontend-application-module.js +4 -0
  5. package/lib/browser/frontend-application-module.js.map +1 -1
  6. package/lib/browser/index.d.ts +1 -0
  7. package/lib/browser/index.d.ts.map +1 -1
  8. package/lib/browser/index.js +1 -0
  9. package/lib/browser/index.js.map +1 -1
  10. package/lib/browser/open-with-service.d.ts.map +1 -1
  11. package/lib/browser/open-with-service.js +4 -0
  12. package/lib/browser/open-with-service.js.map +1 -1
  13. package/lib/browser/widget-status-bar-service.d.ts +29 -0
  14. package/lib/browser/widget-status-bar-service.d.ts.map +1 -0
  15. package/lib/browser/widget-status-bar-service.js +81 -0
  16. package/lib/browser/widget-status-bar-service.js.map +1 -0
  17. package/lib/browser/widgets/split-widget.d.ts +2 -3
  18. package/lib/browser/widgets/split-widget.d.ts.map +1 -1
  19. package/lib/browser/widgets/split-widget.js +2 -2
  20. package/lib/browser/widgets/split-widget.js.map +1 -1
  21. package/lib/node/logger-cli-contribution.d.ts.map +1 -1
  22. package/lib/node/logger-cli-contribution.js +10 -8
  23. package/lib/node/logger-cli-contribution.js.map +1 -1
  24. package/package.json +6 -6
  25. package/shared/@parcel/watcher/index.d.ts +2 -0
  26. package/shared/@parcel/watcher/index.js +1 -0
  27. package/src/browser/frontend-application-module.ts +5 -0
  28. package/src/browser/index.ts +1 -0
  29. package/src/browser/open-with-service.ts +4 -0
  30. package/src/browser/style/tabs.css +55 -138
  31. package/src/browser/widget-status-bar-service.ts +84 -0
  32. package/src/browser/widgets/split-widget.ts +1 -2
  33. package/src/node/logger-cli-contribution.ts +10 -8
  34. package/shared/nsfw/index.d.ts +0 -2
  35. package/shared/nsfw/index.js +0 -1
@@ -14,12 +14,11 @@
14
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
- import { Emitter } from 'vscode-languageserver-protocol';
18
17
  import { ApplicationShell, StatefulWidget } from '../shell';
19
18
  import { BaseWidget, Message, PanelLayout, SplitPanel, Widget } from './widget';
20
19
  import { CompositeSaveable, Saveable, SaveableSource } from '../saveable';
21
20
  import { Navigatable } from '../navigatable-types';
22
- import { URI } from '../../common';
21
+ import { Emitter, URI } from '../../common';
23
22
 
24
23
  /**
25
24
  * A widget containing a number of panes in a split layout.
@@ -19,7 +19,7 @@ import { injectable } from 'inversify';
19
19
  import { LogLevel } from '../common/logger';
20
20
  import { CliContribution } from './cli';
21
21
  import * as fs from 'fs-extra';
22
- import * as nsfw from 'nsfw';
22
+ import { subscribe } from '@parcel/watcher';
23
23
  import { Event, Emitter } from '../common/event';
24
24
  import * as path from 'path';
25
25
 
@@ -89,13 +89,17 @@ export class LogLevelCliContribution implements CliContribution {
89
89
  }
90
90
  }
91
91
 
92
- protected watchLogConfigFile(filename: string): Promise<void> {
93
- return nsfw(filename, async (events: nsfw.FileChangeEvent[]) => {
92
+ protected async watchLogConfigFile(filename: string): Promise<void> {
93
+ await subscribe(filename, async (err, events) => {
94
+ if (err) {
95
+ console.log(`Error during log file watching ${filename}: ${err}`);
96
+ return;
97
+ }
94
98
  try {
95
99
  for (const event of events) {
96
- switch (event.action) {
97
- case nsfw.actions.CREATED:
98
- case nsfw.actions.MODIFIED:
100
+ switch (event.type) {
101
+ case 'create':
102
+ case 'update':
99
103
  await this.slurpLogConfigFile(filename);
100
104
  this.logConfigChangedEvent.fire(undefined);
101
105
  break;
@@ -104,8 +108,6 @@ export class LogLevelCliContribution implements CliContribution {
104
108
  } catch (e) {
105
109
  console.error(`Error reading log config file ${filename}: ${e}`);
106
110
  }
107
- }).then((watcher: nsfw.NSFW) => {
108
- watcher.start();
109
111
  });
110
112
  }
111
113
 
@@ -1,2 +0,0 @@
1
- import nsfw = require('nsfw');
2
- export = nsfw;
@@ -1 +0,0 @@
1
- module.exports = require('nsfw');