Remove repl from elixir
This commit is contained in:
parent
1ec7c7c424
commit
68d360e5e9
|
@ -233,7 +233,7 @@ export class Session {
|
||||||
this.logBadMessage(msg);
|
this.logBadMessage(msg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
await this.runCode(msg.code + "\x04", msg.expectedOutput);
|
await this.runCode(msg.code, msg.expectedOutput);
|
||||||
break;
|
break;
|
||||||
case "formatCode":
|
case "formatCode":
|
||||||
if (typeof msg.code !== "string") {
|
if (typeof msg.code !== "string") {
|
||||||
|
@ -291,12 +291,12 @@ export class Session {
|
||||||
this.config;
|
this.config;
|
||||||
if (this.term) {
|
if (this.term) {
|
||||||
try {
|
try {
|
||||||
process.kill(this.term.pty.pid, 'SIGKILL');
|
process.kill(this.term.pty.pid, "SIGKILL");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.send({
|
this.send({
|
||||||
event: 'error doing process.kill',
|
event: "error doing process.kill",
|
||||||
err
|
err,
|
||||||
})
|
});
|
||||||
// process might have already exited
|
// process might have already exited
|
||||||
}
|
}
|
||||||
// Signal to terminalOutput message generator using closure.
|
// Signal to terminalOutput message generator using closure.
|
||||||
|
@ -313,7 +313,7 @@ export class Session {
|
||||||
} else if (repl) {
|
} else if (repl) {
|
||||||
cmdline = repl;
|
cmdline = repl;
|
||||||
} else {
|
} else {
|
||||||
cmdline = `echo '${name} has no REPL, press Run to see it in action'`;
|
cmdline = `Press Run to see your code in action!`;
|
||||||
}
|
}
|
||||||
if (code === undefined) {
|
if (code === undefined) {
|
||||||
code = createEmpty !== undefined ? createEmpty : template + "\n";
|
code = createEmpty !== undefined ? createEmpty : template + "\n";
|
||||||
|
@ -333,7 +333,7 @@ export class Session {
|
||||||
// Capture term in closure so that we don't keep sending output
|
// Capture term in closure so that we don't keep sending output
|
||||||
// from the old pty even after it's been killed (see ghci).
|
// from the old pty even after it's been killed (see ghci).
|
||||||
if (term.live) {
|
if (term.live) {
|
||||||
const output = data.toString();
|
const output = data.toString("utf8");
|
||||||
|
|
||||||
this.send({
|
this.send({
|
||||||
event: "terminalOutput",
|
event: "terminalOutput",
|
||||||
|
|
|
@ -17,8 +17,6 @@ install:
|
||||||
unzip -d "${pkg}/opt/elixir-ls" elixir-ls.zip
|
unzip -d "${pkg}/opt/elixir-ls" elixir-ls.zip
|
||||||
ln -s /opt/elixir-ls/language_server.sh "${pkg}/usr/local/bin/elixir-ls"
|
ln -s /opt/elixir-ls/language_server.sh "${pkg}/usr/local/bin/elixir-ls"
|
||||||
|
|
||||||
repl: |
|
|
||||||
iex
|
|
||||||
input: |
|
input: |
|
||||||
DELAY: 1
|
DELAY: 1
|
||||||
123 * 234
|
123 * 234
|
||||||
|
|
Loading…
Reference in New Issue