@codingame/monaco-vscode-log-service-override 29.1.1 → 30.0.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-log-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "30.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - log service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "30.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "30.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -40,7 +40,7 @@ registerAction2(class extends Action2 {
|
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: "workbench.action.setDefaultLogLevel",
|
|
43
|
-
title: ( localize2(
|
|
43
|
+
title: ( localize2(10222, "Set Default Log Level")),
|
|
44
44
|
category: Categories.Developer
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -147,7 +147,7 @@ let LogOutputChannels = class LogOutputChannels extends Disposable {
|
|
|
147
147
|
}
|
|
148
148
|
const hasToAppendRemote = existingChannel && logger.resource.scheme === Schemas.vscodeRemote;
|
|
149
149
|
const id = hasToAppendRemote ? `${logger.id}.remote` : logger.id;
|
|
150
|
-
const label = hasToAppendRemote ? ( localize(
|
|
150
|
+
const label = hasToAppendRemote ? ( localize(10223, "{0} (Remote)", logger.name ?? logger.id)) : logger.name ?? logger.id;
|
|
151
151
|
this.outputChannelRegistry.registerChannel({
|
|
152
152
|
id,
|
|
153
153
|
label,
|
|
@@ -200,7 +200,7 @@ let LogOutputChannels = class LogOutputChannels extends Disposable {
|
|
|
200
200
|
constructor() {
|
|
201
201
|
super({
|
|
202
202
|
id: showWindowLogActionId,
|
|
203
|
-
title: ( localize2(
|
|
203
|
+
title: ( localize2(10224, "Show Window Log")),
|
|
204
204
|
category: Categories.Developer,
|
|
205
205
|
f1: true
|
|
206
206
|
});
|
|
@@ -20,7 +20,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
20
20
|
this.ID = "workbench.action.setLogLevel";
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
|
-
this.TITLE = ( localize2(
|
|
23
|
+
this.TITLE = ( localize2(10225, "Set Log Level..."));
|
|
24
24
|
}
|
|
25
25
|
constructor(
|
|
26
26
|
id,
|
|
@@ -77,7 +77,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
77
77
|
const entries = [];
|
|
78
78
|
entries.push({
|
|
79
79
|
type: "separator",
|
|
80
|
-
label: ( localize(
|
|
80
|
+
label: ( localize(10226, "All"))
|
|
81
81
|
});
|
|
82
82
|
entries.push(
|
|
83
83
|
...this.getLogLevelEntries(defaultLogLevels.default, this.loggerService.getLogLevel(), true)
|
|
@@ -85,13 +85,13 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
85
85
|
if (extensionLogs.length) {
|
|
86
86
|
entries.push({
|
|
87
87
|
type: "separator",
|
|
88
|
-
label: ( localize(
|
|
88
|
+
label: ( localize(10227, "Extension Logs"))
|
|
89
89
|
});
|
|
90
90
|
entries.push(...extensionLogs.sort((a, b) => a.label.localeCompare(b.label)));
|
|
91
91
|
}
|
|
92
92
|
entries.push({
|
|
93
93
|
type: "separator",
|
|
94
|
-
label: ( localize(
|
|
94
|
+
label: ( localize(10228, "Logs"))
|
|
95
95
|
});
|
|
96
96
|
entries.push(...logs.sort((a, b) => a.label.localeCompare(b.label)));
|
|
97
97
|
return (new Promise((resolve, reject) => {
|
|
@@ -99,7 +99,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
99
99
|
const quickPick = disposables.add(this.quickInputService.createQuickPick({
|
|
100
100
|
useSeparators: true
|
|
101
101
|
}));
|
|
102
|
-
quickPick.placeholder = ( localize(
|
|
102
|
+
quickPick.placeholder = ( localize(10229, "Set Log Level"));
|
|
103
103
|
quickPick.items = entries;
|
|
104
104
|
let selectedItem;
|
|
105
105
|
disposables.add(quickPick.onDidTriggerItemButton(e => {
|
|
@@ -129,7 +129,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
129
129
|
return (new Promise((resolve, reject) => {
|
|
130
130
|
const disposables = ( new DisposableStore());
|
|
131
131
|
const quickPick = disposables.add(this.quickInputService.createQuickPick());
|
|
132
|
-
quickPick.placeholder = logChannel ? ( localize(
|
|
132
|
+
quickPick.placeholder = logChannel ? ( localize(10230, " {0}: Select log level", logChannel?.label)) : ( localize(10231, "Select log level"));
|
|
133
133
|
quickPick.items = entries;
|
|
134
134
|
quickPick.activeItems = entries.filter(entry => entry.level === this.loggerService.getLogLevel());
|
|
135
135
|
let selectedItem;
|
|
@@ -154,7 +154,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
154
154
|
getLogLevelEntries(defaultLogLevel, currentLogLevel, canSetDefaultLogLevel) {
|
|
155
155
|
const button = canSetDefaultLogLevel ? {
|
|
156
156
|
iconClass: ThemeIcon.asClassName(Codicon.checkAll),
|
|
157
|
-
tooltip: ( localize(
|
|
157
|
+
tooltip: ( localize(10232, "Set as Default Log Level"))
|
|
158
158
|
} : undefined;
|
|
159
159
|
return [{
|
|
160
160
|
label: this.getLabel(LogLevel.Trace, currentLogLevel),
|
|
@@ -193,7 +193,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
193
193
|
return level === current ? `$(check) ${label}` : label;
|
|
194
194
|
}
|
|
195
195
|
getDescription(level, defaultLogLevel) {
|
|
196
|
-
return defaultLogLevel === level ? ( localize(
|
|
196
|
+
return defaultLogLevel === level ? ( localize(10233, "Default")) : undefined;
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
SetLogLevelAction = ( __decorate([( __param(2, IQuickInputService)), ( __param(3, ILoggerService)), ( __param(4, IOutputService)), ( __param(5, IDefaultLogLevelsService))], SetLogLevelAction));
|
|
@@ -202,7 +202,7 @@ SetLogLevelAction = ( __decorate([( __param(2, IQuickInputService)), ( __param(3
|
|
|
202
202
|
this.ID = "workbench.action.openSessionLogFile";
|
|
203
203
|
}
|
|
204
204
|
static {
|
|
205
|
-
this.TITLE = ( localize2(
|
|
205
|
+
this.TITLE = ( localize2(10234, "Open Window Log File (Session)..."));
|
|
206
206
|
}
|
|
207
207
|
constructor(
|
|
208
208
|
id,
|
|
@@ -222,10 +222,10 @@ SetLogLevelAction = ( __decorate([( __param(2, IQuickInputService)), ( __param(3
|
|
|
222
222
|
const sessionResult = await this.quickInputService.pick(this.getSessions().then(sessions => ( sessions.map((s, index) => ({
|
|
223
223
|
id: ( s.toString()),
|
|
224
224
|
label: basename(s),
|
|
225
|
-
description: index === 0 ? ( localize(
|
|
225
|
+
description: index === 0 ? ( localize(10235, "Current")) : undefined
|
|
226
226
|
})))), {
|
|
227
227
|
canPickMany: false,
|
|
228
|
-
placeHolder: ( localize(
|
|
228
|
+
placeHolder: ( localize(10236, "Select Session"))
|
|
229
229
|
});
|
|
230
230
|
if (sessionResult) {
|
|
231
231
|
const logFileResult = await this.quickInputService.pick(this.getLogFiles(( URI.parse(sessionResult.id))).then(logFiles => ( logFiles.map(s => ({
|
|
@@ -233,7 +233,7 @@ SetLogLevelAction = ( __decorate([( __param(2, IQuickInputService)), ( __param(3
|
|
|
233
233
|
label: basename(s)
|
|
234
234
|
})))), {
|
|
235
235
|
canPickMany: false,
|
|
236
|
-
placeHolder: ( localize(
|
|
236
|
+
placeHolder: ( localize(10237, "Select Log file"))
|
|
237
237
|
});
|
|
238
238
|
if (logFileResult) {
|
|
239
239
|
return this.editorService.openEditor({
|