diff --git a/src/crystalProblemsFinder.ts b/src/crystalProblemsFinder.ts index 32671ed..8e3fd67 100644 --- a/src/crystalProblemsFinder.ts +++ b/src/crystalProblemsFinder.ts @@ -34,7 +34,7 @@ export class CrystalProblemsFinder { let diagnostic = new vscode.Diagnostic(range, problem.message, vscode.DiagnosticSeverity.Error) let file: vscode.Uri if (problem.file.length > 0) { - if (problem.file.endsWith('.ecr') || problem.file.endsWith('.slang')) { + if (!problem.file.endsWith('.cr')) { file = vscode.Uri.file(vscode.workspace.rootPath + '/' + problem.file) } else { file = vscode.Uri.file(problem.file)