From ee86a18b12702ad2a102603f4b4fac2a80b8a142 Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Tue, 12 Dec 2023 17:54:01 -0800 Subject: [PATCH] Strip line breaks and other spaces from symbol names --- packages/symbols-view/lib/symbols-view.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/symbols-view/lib/symbols-view.js b/packages/symbols-view/lib/symbols-view.js index 2d69a9b32c..3c716b20df 100644 --- a/packages/symbols-view/lib/symbols-view.js +++ b/packages/symbols-view/lib/symbols-view.js @@ -335,6 +335,7 @@ class SymbolsView { symbol.directory = `${parts.dir}${Path.sep}`; symbol.file = parts.base; } + symbol.name = symbol.name.replace(/[\n\r\t]/, ' '); allSymbols.push(symbol); } }