aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/extras
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/extras')
-rw-r--r--lua/nvim-lsp-installer/extras/tsserver.lua34
-rw-r--r--lua/nvim-lsp-installer/extras/utils.lua12
2 files changed, 0 insertions, 46 deletions
diff --git a/lua/nvim-lsp-installer/extras/tsserver.lua b/lua/nvim-lsp-installer/extras/tsserver.lua
deleted file mode 100644
index 51ba4fc1..00000000
--- a/lua/nvim-lsp-installer/extras/tsserver.lua
+++ /dev/null
@@ -1,34 +0,0 @@
-local extras = require "nvim-lsp-installer.extras.utils"
-local notify = require "nvim-lsp-installer.notify"
-
-local M = {}
-
-notify("tsserver extras has been deprecated. More information: https://git.io/J6San.", vim.log.levels.WARN)
-
--- @deprecated
-function M.rename_file(old, new)
- local old_uri = vim.uri_from_fname(old)
- local new_uri = vim.uri_from_fname(new)
-
- extras.send_client_request("tsserver", "workspace/executeCommand", {
- command = "_typescript.applyRenameFile",
- arguments = {
- {
- sourceUri = old_uri,
- targetUri = new_uri,
- },
- },
- })
-end
-
--- @deprecated
-function M.organize_imports(bufname)
- bufname = bufname or vim.api.nvim_buf_get_name(0)
-
- extras.send_client_request("tsserver", "workspace/executeCommand", {
- command = "_typescript.organizeImports",
- arguments = { bufname },
- })
-end
-
-return M
diff --git a/lua/nvim-lsp-installer/extras/utils.lua b/lua/nvim-lsp-installer/extras/utils.lua
deleted file mode 100644
index c032b5ac..00000000
--- a/lua/nvim-lsp-installer/extras/utils.lua
+++ /dev/null
@@ -1,12 +0,0 @@
-local M = {}
-
--- @deprecated
-function M.send_client_request(client_name, ...)
- for _, client in pairs(vim.lsp.get_active_clients()) do
- if client.name == client_name then
- client.request(...)
- end
- end
-end
-
-return M