omit This case is unused messages from KVSCode error navigation options

This commit is contained in:
2021-11-29 16:25:50 -07:00
parent 260cc3d52a
commit 05f72a20c1

View File

@@ -94,7 +94,7 @@
errorMessage)]
{
(Vscode.window.showErrorMessage errorMessage)
(awaitLet [chosen (quickPickMap (for match compileErrors =>match.match match))]
(awaitLet [chosen (quickPickMap (for match (filter compileErrors ->match (= -1 (match.match.indexOf "This case is unused"))) =>match.match match))]
(executeCommand "workbench.action.quickOpen" (substr (chosen.namedGroup "file") 0 -1)))
}
(Vscode.window.showErrorMessage errorMessage)))