Skip to content

Commit

Permalink
Merge pull request #11 from faustinoaq/fix-template-diagnostic
Browse files Browse the repository at this point in the history
Fix template diagnostic
  • Loading branch information
faustinoaq authored Aug 2, 2017
2 parents f2237eb + 25212a1 commit 08faaeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/crystalProblemsFinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ export class CrystalProblemsFinder {
let diagnostic = new vscode.Diagnostic(range, problem.message, vscode.DiagnosticSeverity.Error)
let file: vscode.Uri
if (problem.file.length > 0) {
file = vscode.Uri.file(problem.file)
if (!problem.file.endsWith('.cr')) {
file = vscode.Uri.file(vscode.workspace.rootPath + '/' + problem.file)
} else {
file = vscode.Uri.file(problem.file)
}
} else {
file = uri
}
Expand Down

0 comments on commit 08faaeb

Please sign in to comment.