Skip to content

Commit

Permalink
Update server to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed Apr 6, 2024
1 parent 8f7668d commit 9a1f949
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 31 deletions.
8 changes: 8 additions & 0 deletions LSP-julia.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,13 @@
"julia.lint.typeparam": true,
// Check that all declared arguments are used within the function body.
"julia.lint.useoffuncargs": true,
// Enable display of static inlay hints. Please note that inlay hints also
// need to be enabled in the LSP package settings ("show_inlay_hints": true).
"julia.inlayHints.static.enabled": true,
// Enable type hints for variable definitions.
"julia.inlayHints.static.variableTypes.enabled": true,
// Enable name hints for function parameters.
// Valid values: "none", "literals", "all"
"julia.inlayHints.static.parameterNames.enabled": "literals",
}
}
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"1.2.0": "messages/1.2.0.txt",
"1.3.0": "messages/1.3.0.txt",
"1.4.0": "messages/1.4.0.txt",
"1.4.3": "messages/1.4.3.txt"
"1.4.3": "messages/1.4.3.txt",
"1.4.4": "messages/1.4.4.txt"
}
11 changes: 11 additions & 0 deletions messages/1.4.4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Version 1.4.4 (2024-??-??)
--------------------------

* Updated the language server to the latest version.

* The language server now supports inlay hints, which can show the types of
variables and function parameters. To enable them, you need to set
"show_inlay_hints" to true in the LSP settings ("Preferences: LSP Settings"
from the command palette). Inlay hints are disabled by default because there
are a few known bugs and limitations. More specific options for inlay hints
are available in the LSP-julia settings.
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def default_julia_environment(cls) -> str:

@classmethod
def server_version(cls) -> str:
return "199a176" # LanguageServer v4.5.0
return "1cc14a9" # LanguageServer v4.5.1

@classmethod
def needs_update_or_installation(cls) -> bool:
Expand Down
63 changes: 34 additions & 29 deletions server/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

[[CSTParser]]
deps = ["Tokenize"]
git-tree-sha1 = "1dd0361befc505b9c6db4b5ab7eb874837de0569"
git-tree-sha1 = "b544d62417a99d091c569b95109bc9d8c223e9e3"
uuid = "00ebfdb7-1f24-5e51-bd34-a7502290713f"
version = "3.4.0"
version = "3.4.2"

[[CommonMark]]
deps = ["Crayons", "JSON", "PrecompileTools", "URIs"]
Expand All @@ -23,10 +23,10 @@ uuid = "a80b9123-70ca-4bc0-993e-6e3bcb318db6"
version = "0.8.12"

[[Compat]]
deps = ["UUIDs"]
git-tree-sha1 = "886826d76ea9e72b35fcd000e535588f7b60f21d"
deps = ["TOML", "UUIDs"]
git-tree-sha1 = "c955881e3c981181362ae4088b35995446298b80"
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
version = "4.10.1"
version = "4.14.0"

[Compat.extensions]
CompatLinearAlgebraExt = "LinearAlgebra"
Expand All @@ -42,9 +42,9 @@ version = "4.1.1"

[[DataStructures]]
deps = ["Compat", "InteractiveUtils", "OrderedCollections"]
git-tree-sha1 = "ac67408d9ddf207de5cfa9a97e114352430f01ed"
git-tree-sha1 = "0f4b5d62a88d8f59003e43c25a8a90de9eb76317"
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
version = "0.18.16"
version = "0.18.18"

[[Dates]]
deps = ["Printf"]
Expand Down Expand Up @@ -81,36 +81,41 @@ version = "1.3.6"

[[JuliaFormatter]]
deps = ["CSTParser", "CommonMark", "DataStructures", "Glob", "Pkg", "PrecompileTools", "Tokenize"]
git-tree-sha1 = "8f5295e46f594ad2d8652f1098488a77460080cd"
git-tree-sha1 = "e57262abcc8463dc8676b4bcc2ef07df40e4986a"
uuid = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
version = "1.0.45"
version = "1.0.55"

[[LanguageServer]]
deps = ["CSTParser", "JSON", "JSONRPC", "JuliaFormatter", "Logging", "Markdown", "Pkg", "PrecompileTools", "REPL", "StaticLint", "SymbolServer", "TestItemDetection", "Tokenize", "URIs", "UUIDs"]
git-tree-sha1 = "5ea9a0def045202eb5d25a087252e19aa1f94ee8"
repo-rev = "199a176ea85221b2499c6977b4ba05d64f2b3be3"
git-tree-sha1 = "549e75d55c88aa5a07430c032b0aa3e5c2e9a2c6"
repo-rev = "1cc14a9eceda14802d929de5eb0cd448aa3f3279"
repo-url = "https://github.com/julia-vscode/LanguageServer.jl.git"
uuid = "2b0e0bc5-e4fd-59b4-8912-456d1b03d8d7"
version = "4.5.0"
version = "4.5.1"

[[LibCURL]]
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
version = "0.6.3"
version = "0.6.4"

[[LibCURL_jll]]
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"]
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
version = "7.84.0+0"
version = "8.4.0+0"

[[LibGit2]]
deps = ["Base64", "NetworkOptions", "Printf", "SHA"]
deps = ["Base64", "LibGit2_jll", "NetworkOptions", "Printf", "SHA"]
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"

[[LibGit2_jll]]
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll"]
uuid = "e37daf67-58a4-590a-8e99-b0245dd2ffc5"
version = "1.6.4+0"

[[LibSSH2_jll]]
deps = ["Artifacts", "Libdl", "MbedTLS_jll"]
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
version = "1.10.2+0"
version = "1.11.0+1"

[[Libdl]]
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
Expand All @@ -125,14 +130,14 @@ uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
[[MbedTLS_jll]]
deps = ["Artifacts", "Libdl"]
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
version = "2.28.2+0"
version = "2.28.2+1"

[[Mmap]]
uuid = "a63ad114-7e13-5084-954f-fe012c677804"

[[MozillaCACerts_jll]]
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
version = "2022.10.11"
version = "2023.1.10"

[[NetworkOptions]]
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
Expand All @@ -152,19 +157,19 @@ version = "2.8.1"
[[Pkg]]
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
version = "1.9.2"
version = "1.10.0"

[[PrecompileTools]]
deps = ["Preferences"]
git-tree-sha1 = "03b4c25b43cb84cee5c90aa9b5ea0a78fd848d2f"
git-tree-sha1 = "5aa36f7049a63a1528fe8f7c3f2113413ffd4e1f"
uuid = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
version = "1.2.0"
version = "1.2.1"

[[Preferences]]
deps = ["TOML"]
git-tree-sha1 = "00805cd429dcb4870060ff49ef443486c262e38e"
git-tree-sha1 = "9306f6085165d270f7e3db02af26a400d580f5c6"
uuid = "21216c6a-2e73-6563-6e65-726566657250"
version = "1.4.1"
version = "1.4.3"

[[Printf]]
deps = ["Unicode"]
Expand All @@ -175,7 +180,7 @@ deps = ["InteractiveUtils", "Markdown", "Sockets", "Unicode"]
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"

[[Random]]
deps = ["SHA", "Serialization"]
deps = ["SHA"]
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[[SHA]]
Expand All @@ -190,9 +195,9 @@ uuid = "6462fe0b-24de-5631-8697-dd941f90decc"

[[StaticLint]]
deps = ["CSTParser", "Serialization", "SymbolServer"]
git-tree-sha1 = "151af6c1d50b549a0032bd037ef59bffc7daa44a"
git-tree-sha1 = "97d2de3a91eebf1f613c5b944363af98d880c655"
uuid = "b3cc710f-9c33-5bdb-a03d-a94903873e97"
version = "8.2.0"
version = "8.2.1"

[[SymbolServer]]
deps = ["InteractiveUtils", "LibGit2", "Markdown", "Pkg", "REPL", "SHA", "Serialization", "Sockets", "UUIDs"]
Expand Down Expand Up @@ -236,14 +241,14 @@ uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
[[Zlib_jll]]
deps = ["Libdl"]
uuid = "83775a58-1f1d-513f-b197-d71354ab007a"
version = "1.2.13+0"
version = "1.2.13+1"

[[nghttp2_jll]]
deps = ["Artifacts", "Libdl"]
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d"
version = "1.48.0+0"
version = "1.52.0+1"

[[p7zip_jll]]
deps = ["Artifacts", "Libdl"]
uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0"
version = "17.4.0+0"
version = "17.4.0+2"
16 changes: 16 additions & 0 deletions sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,22 @@
"type": "boolean",
"default": true
},
"julia.inlayHints.static.enabled": {
"markdownDescription": "Enable display of static inlay hints.\n\nPlease note that you also need to enable inlay hints in the LSP package settings (*Preferences: LSP Settings* from the command palette): `\"show_inlay_hints\": true`",
"type": "boolean",
"default": true
},
"julia.inlayHints.static.variableTypes.enabled": {
"markdownDescription": "Enable type hints for variable definitions:\n\n```julia\nfoo #= ::Int64 =# = 42\n```",
"type": "boolean",
"default": true
},
"julia.inlayHints.static.parameterNames.enabled": {
"markdownDescription": "Enable name hints for function parameters:\n\n```julia\nfoo(#= bar: =# 42)\n```",
"type": "string",
"default": "literals",
"enum": ["none", "literals", "all"]
},
"julia.format.calls": {
"$ref": "#/$defs/format_deprecated"
},
Expand Down

0 comments on commit 9a1f949

Please sign in to comment.