From 67f6a20b27c98788843883c3712c648e110d781f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 20 Nov 2018 18:40:33 +0800 Subject: =?UTF-8?q?=E8=BD=AC=E7=A7=BB=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/textDocument/didClose.lua | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 server/src/method/textDocument/didClose.lua (limited to 'server/src/method/textDocument/didClose.lua') diff --git a/server/src/method/textDocument/didClose.lua b/server/src/method/textDocument/didClose.lua new file mode 100644 index 00000000..d4edb624 --- /dev/null +++ b/server/src/method/textDocument/didClose.lua @@ -0,0 +1,5 @@ +return function (lsp, params) + local doc = params.textDocument + lsp:removeText(doc.uri, doc.version) + return true +end -- cgit v1.2.3