@codingame/monaco-vscode-log-service-override 10.1.0 → 10.1.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-log-service-override",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.1.
|
|
30
|
-
"@codingame/monaco-vscode-environment-service-override": "10.1.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.1",
|
|
30
|
+
"@codingame/monaco-vscode-environment-service-override": "10.1.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -18,7 +18,7 @@ var SetLogLevelAction_1;
|
|
|
18
18
|
let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
19
19
|
static { SetLogLevelAction_1 = this; }
|
|
20
20
|
static { this.ID = 'workbench.action.setLogLevel'; }
|
|
21
|
-
static { this.TITLE = ( localize2(
|
|
21
|
+
static { this.TITLE = ( localize2(6168, "Set Log Level...")); }
|
|
22
22
|
constructor(id, label, quickInputService, loggerService, outputService, defaultLogLevelsService) {
|
|
23
23
|
super(id, label);
|
|
24
24
|
this.quickInputService = quickInputService;
|
|
@@ -55,19 +55,19 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
const entries = [];
|
|
58
|
-
entries.push({ type: 'separator', label: ( localize(
|
|
58
|
+
entries.push({ type: 'separator', label: ( localize(6169, "All")) });
|
|
59
59
|
entries.push(...this.getLogLevelEntries(defaultLogLevels.default, this.loggerService.getLogLevel(), true));
|
|
60
60
|
if (extensionLogs.length) {
|
|
61
|
-
entries.push({ type: 'separator', label: ( localize(
|
|
61
|
+
entries.push({ type: 'separator', label: ( localize(6170, "Extension Logs")) });
|
|
62
62
|
entries.push(...extensionLogs.sort((a, b) => a.label.localeCompare(b.label)));
|
|
63
63
|
}
|
|
64
|
-
entries.push({ type: 'separator', label: ( localize(
|
|
64
|
+
entries.push({ type: 'separator', label: ( localize(6171, "Logs")) });
|
|
65
65
|
entries.push(...logs.sort((a, b) => a.label.localeCompare(b.label)));
|
|
66
66
|
return (
|
|
67
67
|
(new Promise((resolve, reject) => {
|
|
68
68
|
const disposables = ( (new DisposableStore()));
|
|
69
69
|
const quickPick = disposables.add(this.quickInputService.createQuickPick({ useSeparators: true }));
|
|
70
|
-
quickPick.placeholder = ( localize(
|
|
70
|
+
quickPick.placeholder = ( localize(6172, "Set Log Level"));
|
|
71
71
|
quickPick.items = entries;
|
|
72
72
|
let selectedItem;
|
|
73
73
|
disposables.add(quickPick.onDidTriggerItemButton(e => {
|
|
@@ -99,7 +99,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
99
99
|
(new Promise((resolve, reject) => {
|
|
100
100
|
const disposables = ( (new DisposableStore()));
|
|
101
101
|
const quickPick = disposables.add(this.quickInputService.createQuickPick());
|
|
102
|
-
quickPick.placeholder = logChannel ? ( localize(
|
|
102
|
+
quickPick.placeholder = logChannel ? ( localize(6173, " {0}: Select log level", logChannel?.label)) : ( localize(6174, "Select log level"));
|
|
103
103
|
quickPick.items = entries;
|
|
104
104
|
quickPick.activeItems = entries.filter((entry) => entry.level === this.loggerService.getLogLevel());
|
|
105
105
|
let selectedItem;
|
|
@@ -123,7 +123,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
getLogLevelEntries(defaultLogLevel, currentLogLevel, canSetDefaultLogLevel) {
|
|
126
|
-
const button = canSetDefaultLogLevel ? { iconClass: ThemeIcon.asClassName(Codicon.checkAll), tooltip: ( localize(
|
|
126
|
+
const button = canSetDefaultLogLevel ? { iconClass: ThemeIcon.asClassName(Codicon.checkAll), tooltip: ( localize(6175, "Set as Default Log Level")) } : undefined;
|
|
127
127
|
return [
|
|
128
128
|
{ label: this.getLabel(LogLevel.Trace, currentLogLevel), level: LogLevel.Trace, description: this.getDescription(LogLevel.Trace, defaultLogLevel), buttons: button && defaultLogLevel !== LogLevel.Trace ? [button] : undefined },
|
|
129
129
|
{ label: this.getLabel(LogLevel.Debug, currentLogLevel), level: LogLevel.Debug, description: this.getDescription(LogLevel.Debug, defaultLogLevel), buttons: button && defaultLogLevel !== LogLevel.Debug ? [button] : undefined },
|
|
@@ -138,7 +138,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
138
138
|
return level === current ? `$(check) ${label}` : label;
|
|
139
139
|
}
|
|
140
140
|
getDescription(level, defaultLogLevel) {
|
|
141
|
-
return defaultLogLevel === level ? ( localize(
|
|
141
|
+
return defaultLogLevel === level ? ( localize(6176, "Default")) : undefined;
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
SetLogLevelAction = SetLogLevelAction_1 = ( (__decorate([
|
|
@@ -149,7 +149,7 @@ SetLogLevelAction = SetLogLevelAction_1 = ( (__decorate([
|
|
|
149
149
|
], SetLogLevelAction)));
|
|
150
150
|
(class OpenWindowSessionLogFileAction extends Action {
|
|
151
151
|
static { this.ID = 'workbench.action.openSessionLogFile'; }
|
|
152
|
-
static { this.TITLE = ( localize2(
|
|
152
|
+
static { this.TITLE = ( localize2(6177, "Open Window Log File (Session)...")); }
|
|
153
153
|
constructor(id, label, environmentService, fileService, quickInputService, editorService) {
|
|
154
154
|
super(id, label);
|
|
155
155
|
this.environmentService = environmentService;
|
|
@@ -161,10 +161,10 @@ SetLogLevelAction = SetLogLevelAction_1 = ( (__decorate([
|
|
|
161
161
|
const sessionResult = await this.quickInputService.pick(this.getSessions().then(sessions => ( (sessions.map((s, index) => ({
|
|
162
162
|
id: ( (s.toString())),
|
|
163
163
|
label: basename(s),
|
|
164
|
-
description: index === 0 ? ( localize(
|
|
164
|
+
description: index === 0 ? ( localize(6178, "Current")) : undefined
|
|
165
165
|
}))))), {
|
|
166
166
|
canPickMany: false,
|
|
167
|
-
placeHolder: ( localize(
|
|
167
|
+
placeHolder: ( localize(6179, "Select Session"))
|
|
168
168
|
});
|
|
169
169
|
if (sessionResult) {
|
|
170
170
|
const logFileResult = await this.quickInputService.pick(this.getLogFiles(( (URI.parse(sessionResult.id)))).then(logFiles => ( (logFiles.map((s) => ({
|
|
@@ -172,7 +172,7 @@ SetLogLevelAction = SetLogLevelAction_1 = ( (__decorate([
|
|
|
172
172
|
label: basename(s)
|
|
173
173
|
}))))), {
|
|
174
174
|
canPickMany: false,
|
|
175
|
-
placeHolder: ( localize(
|
|
175
|
+
placeHolder: ( localize(6180, "Select Log file"))
|
|
176
176
|
});
|
|
177
177
|
if (logFileResult) {
|
|
178
178
|
return this.editorService.openEditor({ resource: ( (URI.parse(logFileResult.id))), options: { pinned: true } }).then(() => undefined);
|