Change Show FC format to match vscode's expectation

This commit is contained in:
2025-10-11 16:36:23 -07:00
parent c39d1354c8
commit ddc73fb41a
6 changed files with 11 additions and 11 deletions

View File

@@ -109,7 +109,7 @@ export function activate(context: vscode.ExtensionContext) {
console.log("top data", topData);
}
const match = line.match(
/(INFO|WARN|ERROR) at (.*):\((\d+):(\d+)-(\d+):(\d+)\):\s*(.*)/
/(INFO|WARN|ERROR) at (.*):(\d+):(\d+)--(\d+):(\d+):\s*(.*)/
);
if (match) {
let [_full, kind, file, line, column, eline, ecol, message] = match;
@@ -288,12 +288,12 @@ export function activate(context: vscode.ExtensionContext) {
provideCodeActions(document, range, context, token) {
const actions: vscode.CodeAction[] = [];
for (const diagnostic of context.diagnostics) {
let {message,range} = diagnostic
let m = diagnostic.message.match(/missing cases: (.*)/);
let {message,range} = diagnostic;
let m = message.match(/missing cases: (.*)/);
if (m) {
// A lot of this logic would also apply to case split.
let cons = m[1].split(', ');
const line = diagnostic.range.start.line;
const line = range.start.line;
const lineText = document.lineAt(line).text;
let m2 = lineText.match(/(.*=>?)/);
if (!m2) continue;