From 5dfc7e0482da6692a98bc85a104325b59cde7a61 Mon Sep 17 00:00:00 2001 From: Sean Hurley Date: Mon, 30 Aug 2021 20:46:01 -0600 Subject: [PATCH] Add elixir as a language option --- README.md | 2 +- package.json | 13 +++++++++++++ src/shared.ts | 2 ++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ac752c7..140ea09 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ Thanks for [@yihong0618](https://github.com/yihong0618) provided a workaround wh | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | | `leetcode.hideSolved` | Specify to hide the solved problems or not | `false` | | `leetcode.showLocked` | Specify to show the locked problems or not. Only Premium users could open the locked problems | `false` | -| `leetcode.defaultLanguage` | Specify the default language used to solve the problem. Supported languages are: `bash`, `c`, `cpp`, `csharp`, `golang`, `java`, `javascript`, `kotlin`, `mysql`, `php`, `python`,`python3`,`ruby`,`rust`, `scala`, `swift`, `typescript` | `N/A` | +| `leetcode.defaultLanguage` | Specify the default language used to solve the problem. Supported languages are: `bash`, `c`, `cpp`, `csharp`, `elixir`, `golang`, `java`, `javascript`, `kotlin`, `mysql`, `php`, `python`,`python3`,`ruby`,`rust`, `scala`, `swift`, `typescript` | `N/A` | | `leetcode.useWsl` | Specify whether to use WSL or not | `false` | | `leetcode.endpoint` | Specify the active endpoint. Supported endpoints are: `leetcode`, `leetcode-cn` | `leetcode` | | `leetcode.workspaceFolder` | Specify the path of the workspace folder to store the problem files. | `""` | diff --git a/package.json b/package.json index bcdb5c0..64bd0de 100644 --- a/package.json +++ b/package.json @@ -307,6 +307,7 @@ "c", "cpp", "csharp", + "elixir", "golang", "java", "javascript", @@ -476,6 +477,18 @@ }, "minProperties": 1 }, + "elixir": { + "type": "object", + "properties": { + "folder": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "minProperties": 1 + }, "golang": { "type": "object", "properties": { diff --git a/src/shared.ts b/src/shared.ts index 84b529c..d8cd353 100644 --- a/src/shared.ts +++ b/src/shared.ts @@ -24,6 +24,7 @@ export const languages: string[] = [ "c", "cpp", "csharp", + "elixir", "golang", "java", "javascript", @@ -44,6 +45,7 @@ export const langExt: Map = new Map([ ["c", "c"], ["cpp", "cpp"], ["csharp", "cs"], + ["elixir", "ex"], ["golang", "go"], ["java", "java"], ["javascript", "js"],