jdtls: Use Get-Command in script (#5643)

This commit is contained in:
Hsiao-nan Cheung 2024-03-25 19:52:39 +08:00 committed by GitHub
parent 54b74290c6
commit f612116c30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@
"url": "https://download.eclipse.org/jdtls/snapshots/jdt-language-server-1.34.0-202403200828.tar.gz", "url": "https://download.eclipse.org/jdtls/snapshots/jdt-language-server-1.34.0-202403200828.tar.gz",
"hash": "11467f999b38eda6f3f6fe0a9dfdd7bd5daf4b98e5dfe983237176c0f8018db5", "hash": "11467f999b38eda6f3f6fe0a9dfdd7bd5daf4b98e5dfe983237176c0f8018db5",
"installer": { "installer": {
"script": "shim (search_in_path python.exe) $global jdtls \"$dir\\bin\\jdtls\"" "script": "shim (Get-Command 'python.exe').Source $global jdtls \"$dir\\bin\\jdtls\""
}, },
"uninstaller": { "uninstaller": {
"script": "rm_shim jdtls (shimdir $global) jdtls" "script": "rm_shim jdtls (shimdir $global) jdtls"