File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 31
31
from pylsp .workspace import Document , Workspace
32
32
33
33
line_pattern = re .compile (
34
- r"^(?P<file>.+):(?P<start_line>\d+):(?P<start_col>\d*):(?P<end_line>\d*):(?P<end_col>\d*): (?P<severity>\w+): (?P<message>.+?)(?: +\[(?P<code>.+)\])?$"
34
+ (
35
+ r"^(?P<file>.+):(?P<start_line>\d+):(?P<start_col>\d*):(?P<end_line>\d*):(?P<end_col>\d*): "
36
+ r"(?P<severity>\w+): (?P<message>.+?)(?: +\[(?P<code>.+)\])?$"
37
+ )
35
38
)
36
39
37
40
log = logging .getLogger (__name__ )
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def test_parse_note_line(workspace):
91
91
assert diag ["range" ]["start" ] == {"line" : 123 , "character" : 0 }
92
92
assert diag ["range" ]["end" ] == {"line" : 128 , "character" : 77 }
93
93
assert diag ["severity" ] == 3
94
- assert diag ["code" ] == None
94
+ assert diag ["code" ] is None
95
95
96
96
97
97
def test_multiple_workspaces (tmpdir , last_diagnostics_monkeypatch ):
You can’t perform that action at this time.
0 commit comments