diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-18 18:03:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-18 18:03:57 +0800 |
commit | 9a560f542311cb5ad5cc82cda8aa526f96f25996 (patch) | |
tree | 41c8f7b70931daff2954b52181976c4adb649262 /script/provider | |
parent | c3ce2f6b7d8da3d992bdbeb808db9ee89a63665b (diff) | |
download | lua-language-server-9a560f542311cb5ad5cc82cda8aa526f96f25996.zip |
some fixs
Diffstat (limited to 'script/provider')
-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 |