GNU bug report logs -
#76423
Major-mode provided LSP server for Eglot
Previous Next
Full log
Message #26 received at 76423 <at> debbugs.gnu.org (full text, mbox):
>> (setq-local eglot-server-programs
>> `(bicep-ts-mode . ("dotnet"
>> ,(bicep-langserver-path))))
>
> You mean eglot-server-program, singular (that's what your patch proposes)
Oops, yes.
> Anyway, your patch is more or less what I had in mind altough:
>
> * The name should probably be something less confusable with
> e-s-programs, like eglot-suggested-servers or eglot-preferred-servers
> (note that it can still be "servers!" unless we purposedly cap that
> ability, which we maybe should).
I have no opinion on the name.
> * It's a bit silly to repeat the major-mode symbol in it. So the
> setting in the major-mode function should be something like
>
> (setq eglot-suggested-servers '("dotnet" ,(bicep-langserver-path)))
That's what I started with but then I saw that `eglot--lookup-mode`
returns info that includes part of the `car` of the elements in
`eglot-server-programs` (IIUC it's so as to know which other buffers and
major modes could share the same server), so rather than try and learn
how that part of Eglot really works, I went for a simpler change.
Stefan
This bug report was last modified 113 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.