Skip to content

Commit

Permalink
chore: update typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Erichsen committed Dec 12, 2024
1 parent 9f88c97 commit c9b2abc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class IdeProtocolClient(
"getTags" -> {
val artifactId = Gson().fromJson(
dataElement.toString(),
String::class.java
getTagsParams::class.java
)
val tags = ide.getTags(artifactId)
respond(tags)
Expand Down Expand Up @@ -392,11 +392,11 @@ class IdeProtocolClient(
}

"openUrl" -> {
val params = Gson().fromJson(
val url = Gson().fromJson(
dataElement.toString(),
OpenUrlParams::class.java
OpenUrlParam::class.java
)
ide.openUrl(params.url)
ide.openUrl(url)
respond(null)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ data class ShowVirtualFileParams(

data class OpenFileParams(val path: String)

data class OpenUrlParams(val url: String)
typealias OpenUrlParam = String

typealias getTagsParams = String

data class GetSearchResultsParams(val query: String)

Expand Down

0 comments on commit c9b2abc

Please sign in to comment.