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.
    • linpengchengL
      linpengcheng
      last edited by

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

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @linpengcheng
        last edited by

        @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
        • linpengchengL
          linpengcheng
          last edited by linpengcheng

          @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
          • linpengchengL
            linpengcheng
            last edited by

            and syntax checking, error reporting, code validation etc.

            Claudia FrankC 1 Reply Last reply Reply Quote 0
            • Claudia FrankC
              Claudia Frank @linpengcheng
              last edited by

              @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
              • linpengchengL
                linpengcheng
                last edited by

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

                Claudia FrankC 1 Reply Last reply Reply Quote 0
                • Claudia FrankC
                  Claudia Frank @linpengcheng
                  last edited by

                  @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
                  • linpengchengL
                    linpengcheng
                    last edited by

                    @Claudia-Frank Thanks.

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