We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6ca365 commit 1f5271cCopy full SHA for 1f5271c
client/src/commands/dead_code_analysis.ts
@@ -89,7 +89,9 @@ let dceTextToDiagnostics = (
89
// +use is never used
90
// <-- line 2
91
// @dead("+use") let use = (initialState: 'a, handleEvent: ('a, 'b) => 'a) => {
92
+
93
dceText.split("\n\n").forEach((chunk) => {
94
+ let lines = chunk.split("\n").filter((line) => line != "");
95
let [
96
_title,
97
fileInfo,
@@ -99,7 +101,7 @@ let dceTextToDiagnostics = (
99
101
// line that reanalyze might suggest.
100
102
lineNumToReplace,
103
lineContentToReplace,
- ] = chunk.split("\n");
104
+ ] = lines;
105
106
let processedFileInfo = extractFileInfo(fileInfo);
107
0 commit comments