Skip to content

Commit 08681ac

Browse files
committed
Test unreachable code, fix style
1 parent 9784f08 commit 08681ac

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

atest/05_Features/Diagnostics.robot

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ Resource ../Keywords.robot
1010
*** Test Cases ***
1111
Diagnostics with deprecated tag have strike-through decoration
1212
Wait Until Page Contains Element css:.cm-lsp-diagnostic[title*="is deprecated"] timeout=25s
13+
Wait Until Page Contains Element css:.cm-lsp-diagnostic[title*="Unreachable code"] timeout=5s
1314
Page Should Contain Element css:.cm-lsp-diagnostic-tag-Deprecated
15+
Page Should Contain Element css:.cm-lsp-diagnostic-tag-Unnecessary

atest/examples/Diagnostic.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959
"/**\n",
6060
" * @deprecated\n",
6161
" */\n",
62-
"function oldFunc() {}\n",
62+
"function oldFunc(test) { \n",
63+
" return;\n",
64+
" let x = 1;\n",
65+
"}\n",
6366
"oldFunc"
6467
]
6568
}

packages/jupyterlab-lsp/style/highlight.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
text-decoration-skip-ink: none;
1010
}
1111

12-
.cm-lsp-diagnostic-tag-Unused {
12+
.cm-lsp-diagnostic-tag-Unnecessary {
1313
/*
1414
* LSP: "Clients are allowed to render diagnostics with this tag faded out instead of having an error squiggle."
1515
*/
16-
opacity: 0.85;
16+
filter: grayscale(1);
17+
opacity: 0.7;
1718
text-decoration: none !important;
1819
}
1920

0 commit comments

Comments
 (0)