File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change
1
+ # v0.18.1 [ #] ( https://github.com/idleberg/vscode-applescript/releases/tag/v0.18.1 )
2
+
3
+ - improve error handling in ` getLineCol() `
4
+
1
5
# v0.18.0 [ #] ( https://github.com/idleberg/vscode-applescript/releases/tag/v0.18.0 )
2
6
3
7
- add option to convert error range to line/column
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const getLineCol = (lineString: string) => {
16
16
const re = / ^ (?< filePath > [ ^ : ] + ) : (?< rangeFrom > \d + ) : ( (?< rangeTo > \d + ) : ) ? (?< message > .* ) $ / u;
17
17
const result = re . exec ( lineString ) ;
18
18
19
- if ( ! result . groups . rangeFrom ) return false ;
19
+ if ( ! result || ! result . groups . rangeFrom ) return false ;
20
20
21
21
const editorText = window . activeTextEditor . document . getText ( ) ;
22
22
const fileName = window . activeTextEditor . document . fileName ;
You can’t perform that action at this time.
0 commit comments