Eclipse官方已经在着手做这件事情了,在Oxygen中,Eclipse提供了LSP4E扩展点(language server protocal for eclipse)来支持language server protocal,TM4E(textmate for eclipse)来支持语法高亮。

简单来说,我们可以用一个editor去实现对多种语言的语法补全和高亮显示,就跟VS code的效果一样,是不是很神奇,有木有很惊喜。

下面是官方给的教程,挺简单的,主要原理是利用本机安装的node.js在Eclipse这个平台上运行c#的language server js文件(这个文件在vs code的安装源码里面就能找到)

http://www.eclipse.org/community/eclipse_newsletter/2017/may/article3.php

然后Eclipse Lab里面有一个BlueSky的项目,里面主要是用language server protocol做对各种前段语言的支持。Show u the code:

https://github.com/mickaelistria/eclipse-bluesky

同时附上Microsoft开源的language server protocol库:

https://github.com/Microsoft/language-server-protocol/wiki/Protocol-Implementations

这段时间自己利用language server protocol做了对Groovy的语法补全和高亮支持的Eclipse Plugin,过段时间出一个详细的教程。

下面附上做这个插件时找到的各种资料:

https://www.slideshare.net/mickaelistria/eclipsecon-europe-2016-s-cela-mistria-eclipse-generic-and-extensible-editor-and-language-servers

https://github.com/eclipselabs/lsp4e-python

https://github.com/LucasBullen/LSP4J_Tutorial

转载于:https://www.cnblogs.com/hibou/p/7763267.html

如何把VS Code的Language Server Protocol整合到Eclipse中来相关推荐

  1. 红帽、微软和 Codenvy 联合推出语言服务器协定(Language Server Protocol,LSP)项目

    微软.红帽及容器开发环境供应商Codenvy本周在Red Hat DevNation开放源码大会上宣布将共同发展语言服务器协定(Language Server Protocol,LSP)项目,让不同的 ...

  2. 什么是Language Server protocol(LSP)?

    什么是LSP? 按照官方的定义,"The Language Server Protocol (LSP) defines the protocol used between an editor ...

  3. 浅谈 language server LSIF SARIF Babelfish Semantic Tree-sitter Kythe Glean等

    注:本人做过静态代码分析,也算是做过code intelligence,两者互有交叉,所以这里将涉及到的有意思的东西记录下来,未来有精力再依次对这些项目进行介绍 文章目录 什么是language se ...

  4. C/C++语言的服务器LS调研 (Language Server 实现代码索引 跳转定义 智能提示等功能)

    LS是什么 先说一下LSP(Language Server Protocol),它是语言服务器协议,是一种被用于编辑器或集成开发环境 与 支持比如自动补全,定义跳转,查找所有引用等语言特性的语言服务器 ...

  5. Vetur报错:The Vue Language Server server crashed 5 times in the last 3 minutes.

    今天Vetur莫名奇妙无法启动了.打开工程,.vue文件没有智能提示了. 报错内容为 The Vue Language Server server crashed 5 times in the las ...

  6. MacApp开发Error Domain=NSURLErrorDomain Code=-1003 A server with the specified hostname could not be

    在开发一个Mac端应用插件时,准备进行网络请求, 刚开始遇到错误,我很快明白是需要设置允许http网络, 但是之后一直遇到 finished with error - code: -1003 Erro ...

  7. Received status code 403 from server: ForbiddenDisable Gradle ‘offline mode‘ and sync project

    Could not HEAD 'https://dl.bintray.com/umsdk/release/cn/rongcloud/sdk/im_lib/4.0.3.15/im_lib-4.0.3.1 ...

  8. Visual Studio Code连接SQL SERVER 2019

    Visual Studio Code连接SQL SERVER 2019 Visual Studio Code 是一个运行于 OS X.Windows 和 Linux 之上的多种编程语言支持的IDE,基 ...

  9. SSH putty Disconnected: Server protocol violation: unexpected SSH2_MSG_UNIMPLEMENTED packet

    问题 使用putty 连接公网云服务器时报错如下: Disconnected: Server protocol violation: unexpected SSH2_MSG_UNIMPLEMENTED ...

最新文章

  1. 【Spring】新注解
  2. Oracle Goldengate Windows平台Oracle-Oracle单向复制
  3. 如何解决Bluetooth系统设计的棘手问题
  4. ASP.NET MVC 获取当前访问域名
  5. 关于Fiori应用sandbox JavaScript的两个疑问
  6. linux下面的查找
  7. Android开发常用命令
  8. ajax的理解与工作流程
  9. java处理json_Java处理JSon方法
  10. word中输入带圈字符
  11. Java—筛选法求素数
  12. 强大的excel密码破解网站 解决了忘记excel密码的问题
  13. 幸福工厂(Satisfactory)中文破解版
  14. Found multiple @SpringBootConfiguration annotated classes
  15. cdr非法软件禁用网络弹窗警告提示盗版设置方法
  16. Mysql5.7在上亿级别的存储性能测试报告 Mysql到底可不可以支持单表过亿?要分区么?分表?...
  17. org.apache.coyote.http11.Http11Processor.service 解析 HTTP 请求 header 错误注意:HTTP请求解析错误的进一步发生将记录在DEBUG级别。
  18. 电脑摄像头一会好使一会不好使
  19. 双绞线与PCB差分信号布线
  20. 中国战队Newbee夺DOTA2世界冠军

热门文章

  1. 红黑树(一)之 原理和算法详细介绍---转帖
  2. https的基本原理,看完你的程序员女朋友再也不和你提分手了
  3. Python(17)_urllib下的parse的编码解码函数
  4. Parallel学习
  5. Python基础-----while循环语句
  6. Fibonacci数列时间复杂度之美妙
  7. 【bzoj4176】Lucas的数论 莫比乌斯反演+杜教筛
  8. bzoj1007题解
  9. libgdx学习记录9——FreeType,ttf中文显示
  10. 基本数据类型与表达式5 - 零基础入门学习Delphi06