diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-29 16:43:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-29 16:43:41 +0800 |
commit | 647a225f4b95d8fddc47d151261c52851b3eb9f2 (patch) | |
tree | 7a65b6fde66da6441d8a8419eeea72cf7d9908fe /script/provider | |
parent | a3fa029fa38f107ef288d602f2939b1a95268c30 (diff) | |
download | lua-language-server-647a225f4b95d8fddc47d151261c52851b3eb9f2.zip |
fix #879
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/provider.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index addfe320..df2a95f2 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -918,7 +918,7 @@ m.register 'textDocument/onTypeFormatting' { m.register '$/cancelRequest' { function (params) - proto.close(params.id, define.ErrorCodes.RequestCancelled) + proto.close(params.id, define.ErrorCodes.RequestCancelled, 'Request cancelled.') end } @@ -1021,7 +1021,7 @@ files.watch(function (ev, uri) for id, p in pairs(proto.holdon) do if m.attributes[p.method].abortByFileUpdate then log.debug('close proto(ContentModified):', id, p.method) - proto.close(id, define.ErrorCodes.ContentModified) + proto.close(id, define.ErrorCodes.ContentModified, 'Content modified.') end end end |