Skip to content

Commit

Permalink
Fix diagnostics for other template engines.
Browse files Browse the repository at this point in the history
  • Loading branch information
faustinoaq committed Aug 2, 2017
1 parent ca1875d commit 25212a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crystalProblemsFinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 25212a1

Please sign in to comment.