Skip to content

Commit

Permalink
Open In Env EDITOR (#127)
Browse files Browse the repository at this point in the history
Uses the Open In Editor button to open in the editor set by `$EDITOR` if
`code` is not valid on your platform.
  • Loading branch information
krazylegz authored and Raathigesh committed Apr 18, 2019
1 parent 11e2b0d commit bb50b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/app/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class AppResolver {

@Mutation(returns => String)
openInEditor(@Arg("path") path: string) {
launch(path, "code", (path: string, err: any) => {
launch(path, process.env.EDITOR || "code", (path: string, err: any) => {
console.log("Failed to open file in editor: ", err);
});

Expand Down

0 comments on commit bb50b40

Please sign in to comment.