• Login
Community
  • Login

Does NPP have any plans to support Microsoft's Language service protocol?

Scheduled Pinned Locked Moved General Discussion
8 Posts 2 Posters 4.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L
    linpengcheng
    last edited by Nov 4, 2017, 9:25 AM

    Does NPP have any plans to support Microsoft’s Opensource Language service protocol?

    C 1 Reply Last reply Nov 4, 2017, 12:19 PM Reply Quote 0
    • C
      Claudia Frank @linpengcheng
      last edited by Nov 4, 2017, 12:19 PM

      @linpengcheng

      may I ask you what exactly you are asking for?
      I assume you meaning Microsoft Language Server Protocol, if this is the case,
      the protocol, as far as I understand, uses json-rpc, so highlighting is already supported
      by using json lexer.

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • L
        linpengcheng
        last edited by linpengcheng Nov 6, 2017, 1:35 PM Nov 6, 2017, 1:32 PM

        @Claudia Frank:
        Microsoft Language Server Protocol can auto complete, goto definition, find all references, syntax analysis, refactoring code

        1 Reply Last reply Reply Quote 0
        • L
          linpengcheng
          last edited by Nov 6, 2017, 1:37 PM

          and syntax checking, error reporting, code validation etc.

          C 1 Reply Last reply Nov 6, 2017, 1:53 PM Reply Quote 0
          • C
            Claudia Frank @linpengcheng
            last edited by Nov 6, 2017, 1:53 PM

            @linpengcheng

            there is a misunderstanding here, the protocol just defines how the communication
            with a languages server has to be. The Language server then does all of the checking
            and report back using the protocol. The main goal is that the IDE hasn’t to know anything
            about the language used instead each used programming language has to offer a server
            component which does all that stuff.

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • L
              linpengcheng
              last edited by Nov 6, 2017, 2:06 PM

              Can NPP be able to use the various Language Server on Vscode by supporting Language Server Protocol?

              C 1 Reply Last reply Nov 6, 2017, 2:11 PM Reply Quote 0
              • C
                Claudia Frank @linpengcheng
                last edited by Nov 6, 2017, 2:11 PM

                @linpengcheng

                out of the box, no.
                But you could use a scripting plugin, like python or lua, to do the communication with the server
                and act accordingly on the server response.

                Caveat, I never used VS language server so I don’t know if it will accept requests from
                a source different than VSCode.

                Cheers
                Claudia

                1 Reply Last reply Reply Quote 0
                • L
                  linpengcheng
                  last edited by Nov 6, 2017, 2:19 PM

                  @Claudia-Frank Thanks.

                  1 Reply Last reply Reply Quote 1
                  5 out of 8
                  • First post
                    5/8
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors