@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.
- package/README.md +9 -9
- package/lib/browser/catalog.json +158 -49
- package/lib/browser/frontend-application-module.d.ts.map +1 -1
- package/lib/browser/frontend-application-module.js +4 -0
- package/lib/browser/frontend-application-module.js.map +1 -1
- package/lib/browser/index.d.ts +1 -0
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +1 -0
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/open-with-service.d.ts.map +1 -1
- package/lib/browser/open-with-service.js +4 -0
- package/lib/browser/open-with-service.js.map +1 -1
- package/lib/browser/widget-status-bar-service.d.ts +29 -0
- package/lib/browser/widget-status-bar-service.d.ts.map +1 -0
- package/lib/browser/widget-status-bar-service.js +81 -0
- package/lib/browser/widget-status-bar-service.js.map +1 -0
- package/lib/browser/widgets/split-widget.d.ts +2 -3
- package/lib/browser/widgets/split-widget.d.ts.map +1 -1
- package/lib/browser/widgets/split-widget.js +2 -2
- package/lib/browser/widgets/split-widget.js.map +1 -1
- package/lib/node/logger-cli-contribution.d.ts.map +1 -1
- package/lib/node/logger-cli-contribution.js +10 -8
- package/lib/node/logger-cli-contribution.js.map +1 -1
- package/package.json +6 -6
- package/shared/@parcel/watcher/index.d.ts +2 -0
- package/shared/@parcel/watcher/index.js +1 -0
- package/src/browser/frontend-application-module.ts +5 -0
- package/src/browser/index.ts +1 -0
- package/src/browser/open-with-service.ts +4 -0
- package/src/browser/style/tabs.css +55 -138
- package/src/browser/widget-status-bar-service.ts +84 -0
- package/src/browser/widgets/split-widget.ts +1 -2
- package/src/node/logger-cli-contribution.ts +10 -8
- package/shared/nsfw/index.d.ts +0 -2
- 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
|
|
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
|
-
|
|
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.
|
|
97
|
-
case
|
|
98
|
-
case
|
|
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
|
|
package/shared/nsfw/index.d.ts
DELETED
package/shared/nsfw/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('nsfw');
|