This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ea71f9
commit 211c910
Showing
5 changed files
with
39 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM crystallang/crystal:0.24.1 | ||
FROM crystallang/crystal:0.25.1 | ||
|
||
RUN apt-get update | ||
RUN apt-get clean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,37 @@ | ||
require "json" | ||
|
||
module Scry | ||
struct Settings | ||
JSON.mapping({ | ||
crystal_config: {type: Customizations, key: /^crystal.*/, default: Customizations.from_json("{}")}, | ||
}) | ||
end | ||
alias Settings = SettingsCrystalIDE | SettingsCrystalLang | ||
|
||
struct Customizations | ||
JSON.mapping({ | ||
max_number_of_problems: {type: Int32, key: "maxNumberOfProblems", default: 100}, | ||
backend: {type: String, default: "scry"}, | ||
custom_command: {type: String, key: "customCommand", default: "scry"}, | ||
custom_command_args: {type: Array(String), key: "customCommandArgs", default: [] of String}, | ||
log_level: {type: String, key: "logLevel", default: "info"}, | ||
}) | ||
include JSON::Serializable | ||
@[JSON::Field(key: "maxNumberOfProblems")] | ||
property max_number_of_problems : Int32 = 100 | ||
@[JSON::Field(key: "scry")] | ||
property backend : String = "scry" | ||
@[JSON::Field(key: "customCommand")] | ||
property custom_command : String = "scry" | ||
@[JSON::Field(key: "customCommandArgs")] | ||
property custom_command_args : Array(String) = [] of String | ||
@[JSON::Field(key: "logLevel")] | ||
property log_level : String = "info" | ||
end | ||
|
||
# Configuration for vscode-crystal-ide | ||
# https://github.com/kofno/crystal-ide | ||
struct SettingsCrystalIDE | ||
include JSON::Serializable | ||
|
||
@[JSON::Field(key: "crystal-ide")] | ||
property crystal_config : Customizations | ||
end | ||
|
||
# Configuration for vscode-crystal-lang | ||
# https://github.com/faustinoaq/vscode-crystal-lang | ||
struct SettingsCrystalLang | ||
include JSON::Serializable | ||
|
||
@[JSON::Field(key: "crystal-lang")] | ||
property crystal_config : Customizations | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters