Skip to content

Commit

Permalink
Merge branch 'master' into locales
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Jul 18, 2023
2 parents 6e51ae0 + b8576d2 commit 673b361
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
crystal 1.8.2
crystal 1.9.1
mint 0.18.0
4 changes: 2 additions & 2 deletions shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ shards:

ameba:
git: https://github.com/crystal-ameba/ameba.git
version: 1.4.3
version: 1.4.3+git.commit.8c9d234d0b06d945d0cf841dfa0596734acc715c

backtracer:
git: https://github.com/sija/backtracer.cr.git
Expand All @@ -22,7 +22,7 @@ shards:

exception_page:
git: https://github.com/crystal-loot/exception_page.git
version: 0.3.0
version: 0.3.1

kemal:
git: https://github.com/kemalcr/kemal.git
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies:
development_dependencies:
ameba:
github: crystal-ameba/ameba
version: ~> 1.4.3
branch: master

targets:
mint:
Expand Down
3 changes: 3 additions & 0 deletions src/lsp/protocol/request_message.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ module LSP
abstract class RequestMessage
include JSON::Serializable

# WHY IS THIS NEEDED FOR 1.9.1 and not for 1.8??????
property snippet_support : Bool?

# The request id.
property id : Int32 | String

Expand Down
2 changes: 1 addition & 1 deletion src/type_checkers/case.cr
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ module Mint
if destructurings.empty?
true
else
(1..destructurings.map(&.items.size).max).to_a.all? do |length|
(1..destructurings.max_of(&.items.size)).to_a.all? do |length|
destructurings.any?(&.covers?(length))
end
end
Expand Down
2 changes: 1 addition & 1 deletion src/utils/terminal_snippet.cr
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module Mint
lines[start_line, end_line - start_line]

min_width = {
relevant_lines.map(&.size).max + gutter_width + 5,
relevant_lines.max_of(&.size) + gutter_width + 5,
width,
}.max

Expand Down

0 comments on commit 673b361

Please sign in to comment.