Skip to content

Commit

Permalink
Fix ArgumentTypeMismatch for PublishDiagnosticsParams
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Aug 7, 2023
1 parent b8f3a54 commit 9656be2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/steep/server/type_check_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def handle_job(job)
writer.write(
method: :"textDocument/publishDiagnostics",
params: LSP::Interface::PublishDiagnosticsParams.new(
uri: Steep::PathHelper.to_uri(job.path),
uri: Steep::PathHelper.to_uri(job.path).to_s,
diagnostics: diagnostics.map {|diagnostic| formatter.format(diagnostic) }.uniq
)
)
Expand All @@ -183,7 +183,7 @@ def handle_job(job)
writer.write(
method: :"textDocument/publishDiagnostics",
params: LSP::Interface::PublishDiagnosticsParams.new(
uri: Steep::PathHelper.to_uri(job.path),
uri: Steep::PathHelper.to_uri(job.path).to_s,
diagnostics: diagnostics.map {|diagnostic| formatter.format(diagnostic) }.uniq.compact
)
)
Expand All @@ -202,7 +202,7 @@ def handle_job(job)
writer.write(
method: :"textDocument/publishDiagnostics",
params: LSP::Interface::PublishDiagnosticsParams.new(
uri: Steep::PathHelper.to_uri(job.path),
uri: Steep::PathHelper.to_uri(job.path).to_s,
diagnostics: diagnostics.map {|diagnostic| formatter.format(diagnostic) }.uniq.compact
)
)
Expand Down

0 comments on commit 9656be2

Please sign in to comment.