We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ada513a commit c452f15Copy full SHA for c452f15
1 file changed
src/components/lspInfoDialog/index.js
@@ -11,8 +11,23 @@ let dialogInstance = null;
11
const lspLogs = new Map();
12
const MAX_LOGS = 200;
13
const logListeners = new Set();
14
+const IGNORED_LOG_PATTERNS = [
15
+ /\$\/progress\b/i,
16
+ /\bProgress:/i,
17
+ /\bwindow\/workDoneProgress\/create\b/i,
18
+ /\bAuto-responded to window\/workDoneProgress\/create\b/i,
19
+];
20
+
21
+function shouldIgnoreLog(message) {
22
+ if (typeof message !== "string") return false;
23
+ return IGNORED_LOG_PATTERNS.some((pattern) => pattern.test(message));
24
+}
25
26
function addLspLog(serverId, level, message, details = null) {
27
+ if (shouldIgnoreLog(message)) {
28
+ return;
29
+ }
30
31
if (!lspLogs.has(serverId)) {
32
lspLogs.set(serverId, []);
33
}
0 commit comments