Skip to content

Commit

Permalink
Relax client attach condition and allow any buftype again
Browse files Browse the repository at this point in the history
Restricting buftype to "" broke support for opening .class files
  • Loading branch information
mfussenegger committed Jul 12, 2024
1 parent 40e8494 commit 6bfd159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/jdtls/setup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function M.start_or_attach(config, opts, start_opts)

local uri = vim.uri_from_bufnr(bufnr)
-- jdtls requires files to exist on the filesystem; it doesn't play well with scratch buffers
if not vim.startswith(uri, "file://") or vim.bo[bufnr].buftype ~= "" then
if not vim.startswith(uri, "file://") then
return
end

Expand Down

0 comments on commit 6bfd159

Please sign in to comment.