Merge branch 'raxod502:master' into master

This commit is contained in:
Philip London 2021-10-04 08:32:35 -04:00 committed by GitHub
commit ba21821df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 41 additions and 12 deletions

View File

@ -3,9 +3,6 @@ on:
push: push:
branches: branches:
- master - master
pull_request:
branches:
- master
concurrency: deploy concurrency: deploy
jobs: jobs:
deploy: deploy:

View File

@ -309,7 +309,7 @@ export class Session {
code = createEmpty !== undefined ? createEmpty : template + "\n"; code = createEmpty !== undefined ? createEmpty : template + "\n";
} }
if (code && suffix) { if (code && suffix) {
code += suffix + "\n"; code += "\n" + suffix + "\n";
} }
await this.writeCode(code); await this.writeCode(code);
const termArgs = this.privilegedPty(cmdline); const termArgs = this.privilegedPty(cmdline);

View File

@ -0,0 +1,27 @@
Riju :: $81.55
EC2 :: $57.02
Data Transfer :: $0.02
EBS Snapshot :: $1.97
EBS Volume :: $26.82
EBS Volume :: $26.82
gp2 :: $1.01
gp3 :: $25.81
Instance :: $28.21
t3.medium :: $19.01
t3.small :: $9.21
ECR :: $5.09
Storage :: $5.09
ELB :: $19.32
Data Transfer :: $0.22
LCUs :: $0.06
Load Balancer :: $19.04
S3 :: $0.12
COMMENTARY: We're starting to look pretty stable from month to month.
Naturally the costs are higher because we were operating the
infrastructure for the entire month this time, instead of being down
for half of it, but I think this cost is about what we should expect
to see going forward until changes are made.
I did realize, by the way, that we can't use Lambda to replace the
ELB, because that wouldn't support websockets. Oh well.

View File

@ -180,6 +180,11 @@ async function main() {
break; break;
} }
return; return;
case "langConfig":
// We could use this message instead of hardcoding the
// language config into the HTML page returned from the
// server, but for now we just ignore it.
return;
default: default:
console.error("Unexpected message from server:", message); console.error("Unexpected message from server:", message);
return; return;

View File

@ -14,7 +14,7 @@ install:
wget https://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz wget https://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz
tar -xf jdt-language-server-latest.tar.gz -C "${pkg}/opt/jdt" tar -xf jdt-language-server-latest.tar.gz -C "${pkg}/opt/jdt"
main: "Main.java" main: "src/Main.java"
template: | template: |
public class Main { public class Main {
public static void main(String[] args) { public static void main(String[] args) {
@ -23,9 +23,9 @@ template: |
} }
compile: | compile: |
javac Main.java javac src/Main.java
run: | run: |
java Main java -cp src Main
format: format:
run: | run: |
@ -41,9 +41,9 @@ format:
lsp: lsp:
setup: | setup: |
rm -rf jdt && cp -RT /opt/jdt/config_linux jdt rm -rf "$HOME/jdt-config" && cp -RT /opt/jdt/config_linux "$HOME/jdt-config"
start: | start: |
java -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.level=ALL -noverify -Xmx1G -jar /opt/jdt/plugins/org.eclipse.equinox.launcher_*.jar -configuration "$PWD/jdt" -data "$PWD" --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED java -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.level=ALL -noverify -Xmx1G -jar /opt/jdt/plugins/org.eclipse.equinox.launcher_*.jar -configuration "$HOME/jdt-config" -data "$HOME/jdt-data" --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED
init: init:
settings: settings:
java: java:

View File

@ -1164,9 +1164,9 @@ ajv@^6.1.0, ajv@^6.10.2, ajv@^6.12.4, ajv@^6.12.5:
uri-js "^4.2.2" uri-js "^4.2.2"
ansi-regex@^5.0.0: ansi-regex@^5.0.0:
version "5.0.0" version "5.0.1"
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
ansi-styles@^3.2.1: ansi-styles@^3.2.1:
version "3.2.1" version "3.2.1"