diff options
Diffstat (limited to 'script/provider/diagnostic.lua')
-rw-r--r-- | script/provider/diagnostic.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua index b155a591..1d8b779d 100644 --- a/script/provider/diagnostic.lua +++ b/script/provider/diagnostic.lua @@ -64,6 +64,9 @@ end local function buildDiagnostic(uri, diag) local lines = files.getLines(uri) local text = files.getText(uri) + if not text or not lines then + return + end local relatedInformation if diag.related then |