Comments (9)
我看了看 LSP 的协议 https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#formattingOptions
目前 LSP 协议还不支持指定区域格式化, 因为格式化的调整有可能会调整换行的情况, 目前也没法通过对比LSP Server返回的信息, 在Elisp端精确控制格式化区域。
from lsp-bridge.
from lsp-bridge.
Range Format 协议已经支持
请更新测试, 有任何问题欢迎反馈。
from lsp-bridge.
我用的后端是clangd 18.1,选中区域执行 lsp-bridge-code-format,报错
[LSP-Bridge] Current server not support range format
from lsp-bridge.
那就是clangd lsp server不支持局部格式化这个功能
from lsp-bridge.
通过lsp-mode的诊断来看clangd应该是有这个功能的
from lsp-bridge.
lsp-mode可以支持区域格式化,能否帮忙确认下? 谢谢
from lsp-bridge.
我推送了 dd70010
这是补丁解决不同LSP Server range format返回格式不一致的问题, pyright/ruff 返回的是 documentRangeFormattingProvider/rangesSupport, clangd 返回的是 documentRangeFormattingProvider
from lsp-bridge.
太好了,现在正常工作了
from lsp-bridge.
Related Issues (20)
- lsp-bridge-copilot-login 无法登录 HOT 30
- elisp 开启lsp-bridge,跳转返回时,提示:[LSP-Bridge] No lsp-bridge mark set HOT 3
- code-action无法使用 HOT 1
- Lsp-bridge does not work on doom emacs HOT 3
- lsp-bridge-code-action does not get imports HOT 7
- Cannot start "deno lsp" HOT 7
- 使用lsp-bridge-semantic-tokens-global-scope-face后,C++中的宏和函数的颜色无法区分开 HOT 9
- Rust中函数名不显示 HOT 1
- C++自己写的头文件函数名不显示,标准库可以 HOT 6
- Incorrect response to `window/workDoneProgress/create` HOT 2
- paramiko.ssh_exception.PasswordRequiredException: Private key file is encrypted HOT 3
- 补全自动修改窗口位置 HOT 3
- `lsp-bridge` clogging `org-babel-tangle` when enabled HOT 2
- Dynamically set up `lsp-bridge-get-single-lang-server-by-project` HOT 3
- rust remote server 失败,可能是在远程主机没有启动 tabnine HOT 7
- react jsx 中不支持 tailwindcss HOT 3
- semantic-tokens 渲染modifiers时能否支持combine和override混用 HOT 7
- 调用 multi-server-function的时候,如果当前project 没有git init,则会报错,建议设置当前目录作为缺省值并且打印message提醒一下用户 HOT 1
- `lsp-bridge-find-def` with `pyright` takes to stub file (`.pyi`) instead of code (`.py`). HOT 1
- When I open the vue project, ts doesn't recognize my directory HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsp-bridge.