Commit 445cd63
committed
Fixes #5139: Improve YAML error line number extraction for .roomodes files
- Enhanced line number extraction in CustomModesManager to handle multiple YAML error message formats
- Added support for patterns: 'at line X', 'line X', '(line:column)', and 'line:column'
- Ensures robust error reporting when .roomodes files have YAML syntax errors
- Maintains backward compatibility with existing error handling1 parent 3a8ba27 commit 445cd63
1 file changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
139 | 154 | | |
140 | 155 | | |
141 | 156 | | |
| |||
0 commit comments