@codingame/monaco-vscode-log-service-override 37.3.3 → 37.3.4
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": "37.3.
|
|
3
|
+
"version": "37.3.4",
|
|
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": "37.3.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "37.3.
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.3.4",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "37.3.4"
|
|
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(15802, "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(15803, "{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(15804, "Show Window Log")),
|
|
204
204
|
category: Categories.Developer,
|
|
205
205
|
f1: true
|
|
206
206
|
});
|
|
@@ -22,7 +22,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
22
22
|
this.ID = "workbench.action.setLogLevel";
|
|
23
23
|
}
|
|
24
24
|
static {
|
|
25
|
-
this.TITLE = ( localize2(
|
|
25
|
+
this.TITLE = ( localize2(15805, "Set Log Level..."));
|
|
26
26
|
}
|
|
27
27
|
constructor(
|
|
28
28
|
id,
|
|
@@ -79,7 +79,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
79
79
|
const entries = [];
|
|
80
80
|
entries.push({
|
|
81
81
|
type: "separator",
|
|
82
|
-
label: ( localize(
|
|
82
|
+
label: ( localize(15806, "All"))
|
|
83
83
|
});
|
|
84
84
|
entries.push(
|
|
85
85
|
...this.getLogLevelEntries(defaultLogLevels.default, this.loggerService.getLogLevel(), true)
|
|
@@ -87,13 +87,13 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
87
87
|
if (extensionLogs.length) {
|
|
88
88
|
entries.push({
|
|
89
89
|
type: "separator",
|
|
90
|
-
label: ( localize(
|
|
90
|
+
label: ( localize(15807, "Extension Logs"))
|
|
91
91
|
});
|
|
92
92
|
entries.push(...extensionLogs.sort((a, b) => a.label.localeCompare(b.label)));
|
|
93
93
|
}
|
|
94
94
|
entries.push({
|
|
95
95
|
type: "separator",
|
|
96
|
-
label: ( localize(
|
|
96
|
+
label: ( localize(15808, "Logs"))
|
|
97
97
|
});
|
|
98
98
|
entries.push(...logs.sort((a, b) => a.label.localeCompare(b.label)));
|
|
99
99
|
return (new Promise((resolve, reject) => {
|
|
@@ -101,7 +101,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
101
101
|
const quickPick = disposables.add(this.quickInputService.createQuickPick({
|
|
102
102
|
useSeparators: true
|
|
103
103
|
}));
|
|
104
|
-
quickPick.placeholder = ( localize(
|
|
104
|
+
quickPick.placeholder = ( localize(15809, "Set Log Level"));
|
|
105
105
|
quickPick.items = entries;
|
|
106
106
|
let selectedItem;
|
|
107
107
|
disposables.add(quickPick.onDidTriggerItemButton(e => {
|
|
@@ -131,7 +131,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
131
131
|
return (new Promise((resolve, reject) => {
|
|
132
132
|
const disposables = ( new DisposableStore());
|
|
133
133
|
const quickPick = disposables.add(this.quickInputService.createQuickPick());
|
|
134
|
-
quickPick.placeholder = logChannel ? ( localize(
|
|
134
|
+
quickPick.placeholder = logChannel ? ( localize(15810, " {0}: Select log level", logChannel?.label)) : ( localize(15811, "Select log level"));
|
|
135
135
|
quickPick.items = entries;
|
|
136
136
|
quickPick.activeItems = entries.filter(entry => entry.level === this.loggerService.getLogLevel());
|
|
137
137
|
let selectedItem;
|
|
@@ -156,7 +156,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
156
156
|
getLogLevelEntries(defaultLogLevel, currentLogLevel, canSetDefaultLogLevel) {
|
|
157
157
|
const button = canSetDefaultLogLevel ? {
|
|
158
158
|
iconClass: ThemeIcon.asClassName(Codicon.checkAll),
|
|
159
|
-
tooltip: ( localize(
|
|
159
|
+
tooltip: ( localize(15812, "Set as Default Log Level"))
|
|
160
160
|
} : undefined;
|
|
161
161
|
return [{
|
|
162
162
|
label: this.getLabel(LogLevel.Trace, currentLogLevel),
|
|
@@ -195,7 +195,7 @@ let SetLogLevelAction = class SetLogLevelAction extends Action {
|
|
|
195
195
|
return level === current ? `$(check) ${label}` : label;
|
|
196
196
|
}
|
|
197
197
|
getDescription(level, defaultLogLevel) {
|
|
198
|
-
return defaultLogLevel === level ? ( localize(
|
|
198
|
+
return defaultLogLevel === level ? ( localize(15813, "Default")) : undefined;
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
201
|
SetLogLevelAction = ( __decorate([( __param(2, IQuickInputService)), ( __param(3, ILoggerService)), ( __param(4, IOutputService)), ( __param(5, IDefaultLogLevelsService))], SetLogLevelAction));
|
|
@@ -204,7 +204,7 @@ let OpenWindowSessionLogFileAction = class OpenWindowSessionLogFileAction extend
|
|
|
204
204
|
this.ID = "workbench.action.openSessionLogFile";
|
|
205
205
|
}
|
|
206
206
|
static {
|
|
207
|
-
this.TITLE = ( localize2(
|
|
207
|
+
this.TITLE = ( localize2(15814, "Open Window Log File (Session)..."));
|
|
208
208
|
}
|
|
209
209
|
constructor(
|
|
210
210
|
id,
|
|
@@ -224,10 +224,10 @@ let OpenWindowSessionLogFileAction = class OpenWindowSessionLogFileAction extend
|
|
|
224
224
|
const sessionResult = await this.quickInputService.pick(this.getSessions().then(sessions => sessions.map((s, index) => ({
|
|
225
225
|
id: ( s.toString()),
|
|
226
226
|
label: basename(s),
|
|
227
|
-
description: index === 0 ? ( localize(
|
|
227
|
+
description: index === 0 ? ( localize(15815, "Current")) : undefined
|
|
228
228
|
}))), {
|
|
229
229
|
canPickMany: false,
|
|
230
|
-
placeHolder: ( localize(
|
|
230
|
+
placeHolder: ( localize(15816, "Select Session"))
|
|
231
231
|
});
|
|
232
232
|
if (sessionResult) {
|
|
233
233
|
const logFileResult = await this.quickInputService.pick(this.getLogFiles(( URI.parse(sessionResult.id))).then(logFiles => logFiles.map(s => ({
|
|
@@ -235,7 +235,7 @@ let OpenWindowSessionLogFileAction = class OpenWindowSessionLogFileAction extend
|
|
|
235
235
|
label: basename(s)
|
|
236
236
|
}))), {
|
|
237
237
|
canPickMany: false,
|
|
238
|
-
placeHolder: ( localize(
|
|
238
|
+
placeHolder: ( localize(15817, "Select Log file"))
|
|
239
239
|
});
|
|
240
240
|
if (logFileResult) {
|
|
241
241
|
return this.editorService.openEditor({
|