Git Product home page Git Product logo

Comments (4)

sumneko avatar sumneko commented on August 22, 2024

请把server/log 目录里的日志发给我看一下。

正常的启动流程应该是:
client启动server
client -> server 初始化请求,server 返回自己注册的功能
client -> server 初始化完成通知
server -> client 请求工作目录,client 返回当前工作目录路径
server -> client 请求配置文件,client 返回配置文件内容
server -> client 注册文件变化与配置变化事件,client 返回成功

其中工作目录与配置文件都是LSP 3.6.0 版本新加的协议,由于VSCode上的语言客户端是我自己准备的,因此我假定总是有这个协议。如果你使用的客户端没有实现该协议,语言服务的一些功能会失效。

from lua-language-server.

shuxiao9058 avatar shuxiao9058 commented on August 22, 2024

是的,我估计是因为没有发初始化请求所致,我用的client作者还没有更新!

from lua-language-server.

sumneko avatar sumneko commented on August 22, 2024

初始化请求没发应该也是能工作的,只是跨文件的功能(全局变量、require等)会失效。如果其他功能也失效了,还是请把日志发给我看一下。

from lua-language-server.

sumneko avatar sumneko commented on August 22, 2024

之前是有一个问题,导致如果没有请求到当前工作目录,那么当前打开的文件会失效,需要关闭重新打开文件才能工作。
这个问题已经在最近的更新中修复了,如果还有其他问题,欢迎再反馈给我!

from lua-language-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.