-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote server/TRAMP support (fix #84) #348
Conversation
Hi @FelipeLema this looks good in general. But (as you probably already know)
|
Duh, I meant "new tests" |
yup, I'm using travis as checker for now. This is why I'm doing this as a /draft/ pull request. I wanted this dPR to be visible so no one would be doing the same work twice (visibility).
I'm aware of this. For now, I'm working on unbreaking tests. Once I have that, will work out a way to test this. The way I see it, re-running the same tests using
Please, point them out, so I can address them directly. Naming in this context is real hard.
I noticed that some alignment went different, but it was unintended. I'll add a TODO for them. |
Hope you don't mind someone chiming in on this. Your work might help my case: I run Emacs on Windows, but all the rest of my development environment is in Linux using WSL on the same machine. So it's not remote as such. Right now I'm installing the language server on the Windows side just so eglot and intellisense will work; I'd love to use the Linux-side language server, but there's a filename translation problem. Windows |
Not at all.
This looks like a simpler addition, but at any rate a prerequisite for TRAMP support. You should be able to achieve a bit of this hooking if you We could ask @FelipeLema to split his PR into two parts. One that supplies this indirection, and another one with TRAMP support that will surely use this indirection. However, if that confuses or complicates Felipe's TRAMP goal, I'd rather it waits a bit. |
I guess I could add some code for url and path treatment, but that might end up bloating up the code. @garyo can you open an issue so we can discuss a (quicker) solution to your problem? |
That's probably a good idea, yes. |
Also reordered
* eglot.el (eglot--managed-mode): locally tweak imenu-create-index-function.
* eglot.el (company-tooltip-align-annotations): Forward declare. (eglot--cached-server): Renamed from eglot--cached-current-server. (eglot--managed-mode, eglot-current-server) (eglot--current-server-or-lose) (eglot--maybe-activate-editing-mode): use it. (eglot-completion-at-point): Don't use insertTextFormat.
- use `eglot--executable-find` instead of `executable-find` - `make-temp-file` is not tramp-friendly
Probably should test against "bytes already read" instead of `sit-for`-ing for 1s
previous indentation was caused by prettify-symbols
I have several reasons to not continue with this Pull Request
|
Support remote files / tramp.