Skip to content

Add elixir as a language option #731

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Uh oh!

There was an error while loading. Please reload this page.

Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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. | `""` |
13 changes: 13 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
2 changes: 2 additions & 0 deletions src/shared.ts
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@ export const languages: string[] = [
"c",
"cpp",
"csharp",
"elixir",
"golang",
"java",
"javascript",
@@ -44,6 +45,7 @@ export const langExt: Map<string, string> = new Map([
["c", "c"],
["cpp", "cpp"],
["csharp", "cs"],
["elixir", "ex"],
["golang", "go"],
["java", "java"],
["javascript", "js"],