-
Notifications
You must be signed in to change notification settings - Fork 44
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
templates don't work with Visual Studio Code #11
Comments
Does that work with the |
Well VS works well with git and other programs that uses the EDITOR
environment variable. I haven’t had any issues doing code <file path>.
Anyway, I haven’t looked but um must be invoking the editor differently
than programs like git.
…On Fri, Aug 24, 2018 at 14:01 Sinclair Target ***@***.***> wrote:
um is pretty dumb and it launches the editor
<https://github.com/sinclairtarget/um/blob/master/libexec/um-edit.rb#L59>
by invoking the editor and passing the file path as the first argument.
Does that work with the code executable? It could be that Visual Studio
Code expects you to pass the file argument differently.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHVLdpNK6NMboFnRock-CJF85GapUTjks5uUD9_gaJpZM4WLpyh>
.
|
Is this still a concern / issue? With regards to git - it seems there's a difference in the way the editor is invoked, yet not too material: While um writes a shell invocation directly through the system command ( It would be nice to know what file VisualStudio Code has opened when it renders a blank. |
For the record, specifying Workaround for VS Code .deb package on LinuxOn Ubuntu 18.something (elementaryOS 5.1.x Hera), I was able to find a workaround for problem noted here, by pointing directly at VS Code's main executable:
It should be noted that there is also Now, that's assuming that you've used the VS Code .deb. RPMs, tarballs, snaps, and flatpaks, and all the other whatnot may put the However, I don't think this is um's problem (any more than if um had trouble opening a new page in an editor inside a flatpak), and this issue could be closed. |
I am using Visual Studio Code as my editor which is on my path. My config looks like:
When doing
just brings up a blank editor. HOWEVER, setting the editor to vi brings up what you'd expect (a the template file).
The text was updated successfully, but these errors were encountered: