Skip to content

Commit 214d9e3

Browse files
committed
WIP for automatic static binary downloads
1 parent 04ce6dc commit 214d9e3

File tree

5 files changed

+490
-169
lines changed

5 files changed

+490
-169
lines changed

.vscode/launch.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
// A launch configuration that compiles the extension and then opens it inside a new window
22
{
3-
"version": "0.1.0",
4-
"configurations": [
5-
{
6-
"name": "Extension",
7-
"type": "extensionHost",
8-
"request": "launch",
9-
"runtimeExecutable": "${execPath}",
10-
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
11-
"stopOnEntry": false,
12-
"sourceMaps": true,
13-
"outFiles": [ "${workspaceRoot}/out/src/**/*.js" ],
14-
"preLaunchTask": "npm: watch"
15-
},
16-
{
17-
"name": "Extension Tests",
18-
"type": "extensionHost",
19-
"request": "launch",
20-
"runtimeExecutable": "${execPath}",
21-
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ],
22-
"stopOnEntry": false,
23-
"sourceMaps": true,
24-
"outFiles": [ "${workspaceRoot}/out/test/**/*.js" ],
25-
"preLaunchTask": "npm: watch"
26-
}
27-
]
3+
"version": "0.1.0",
4+
"configurations": [
5+
{
6+
"name": "Extension",
7+
"type": "extensionHost",
8+
"request": "launch",
9+
"runtimeExecutable": "${execPath}",
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
11+
"stopOnEntry": false,
12+
"sourceMaps": true,
13+
"outFiles": ["${workspaceRoot}/out/src/**/*.js"],
14+
"preLaunchTask": "npm: watch"
15+
},
16+
{
17+
"name": "Extension Tests",
18+
"type": "extensionHost",
19+
"request": "launch",
20+
"runtimeExecutable": "${execPath}",
21+
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test"],
22+
"stopOnEntry": false,
23+
"sourceMaps": true,
24+
"outFiles": ["${workspaceRoot}/out/test/**/*.js"],
25+
"preLaunchTask": "npm: watch"
26+
}
27+
]
2828
}

package-lock.json

Lines changed: 68 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 60 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
"engines": {
99
"vscode": "^1.39.0"
1010
},
11-
"keywords": ["language", "haskell", "lsp", "multi-root ready"],
11+
"keywords": [
12+
"language",
13+
"haskell",
14+
"lsp",
15+
"multi-root ready"
16+
],
1217
"homepage": "https://github.com/alanz/vscode-hie-server",
1318
"repository": {
1419
"type": "git",
@@ -17,25 +22,43 @@
1722
"bugs": {
1823
"url": "https://github.com/alanz/vscode-hie-server/issues"
1924
},
20-
"categories": ["Programming Languages", "Formatters", "Linters", "Other"],
25+
"categories": [
26+
"Programming Languages",
27+
"Formatters",
28+
"Linters",
29+
"Other"
30+
],
2131
"icon": "images/HIE_logo_128.png",
2232
"galleryBanner": {
2333
"color": "#22172A",
2434
"theme": "dark"
2535
},
26-
"activationEvents": ["onLanguage:haskell", "onLanguage:literate haskell"],
36+
"activationEvents": [
37+
"onLanguage:haskell",
38+
"onLanguage:literate haskell"
39+
],
2740
"main": "./dist/extension",
2841
"contributes": {
2942
"languages": [
3043
{
3144
"id": "haskell",
32-
"aliases": ["Haskell", "haskell"],
33-
"extensions": [".hs"]
45+
"aliases": [
46+
"Haskell",
47+
"haskell"
48+
],
49+
"extensions": [
50+
".hs"
51+
]
3452
},
3553
{
3654
"id": "literate haskell",
37-
"aliases": ["Literate Haskell", "literate Haskell"],
38-
"extensions": [".lhs"]
55+
"aliases": [
56+
"Literate Haskell",
57+
"literate Haskell"
58+
],
59+
"extensions": [
60+
".lhs"
61+
]
3962
}
4063
],
4164
"configuration": {
@@ -59,8 +82,7 @@
5982
"scope": "resource",
6083
"type": "boolean",
6184
"default": true,
62-
"description":
63-
"Compute diagnostics continuously as you type. Turn off to only generate diagnostics on file save."
85+
"description": "Compute diagnostics continuously as you type. Turn off to only generate diagnostics on file save."
6486
},
6587
"languageServerHaskell.liquidOn": {
6688
"scope": "resource",
@@ -84,29 +106,39 @@
84106
"languageServerHaskell.formattingProvider": {
85107
"scope": "resource",
86108
"type": "string",
87-
"enum": ["brittany", "floskell", "ormolu", "stylish-haskell", "none"],
109+
"enum": [
110+
"brittany",
111+
"floskell",
112+
"ormolu",
113+
"stylish-haskell",
114+
"none"
115+
],
88116
"default": "brittany",
89117
"description": "The tool to use for formatting requests."
90118
},
91119
"languageServerHaskell.showTypeForSelection.onHover": {
92120
"scope": "resource",
93121
"type": "boolean",
94122
"default": true,
95-
"description":
96-
"If true, when an expression is selected, the hover tooltip will attempt to display the type of the entire expression - rather than just the term under the cursor."
123+
"description": "If true, when an expression is selected, the hover tooltip will attempt to display the type of the entire expression - rather than just the term under the cursor."
97124
},
98125
"languageServerHaskell.showTypeForSelection.command.location": {
99126
"scope": "resource",
100127
"type": "string",
101-
"enum": ["dropdown", "channel"],
128+
"enum": [
129+
"dropdown",
130+
"channel"
131+
],
102132
"default": "dropdown",
103-
"description":
104-
"Determines where the type information for selected text will be shown when the `showType` command is triggered (distinct from automatically showing this information when hover is triggered).\ndropdown: in a dropdown\nchannel: will be revealed in an output channel"
133+
"description": "Determines where the type information for selected text will be shown when the `showType` command is triggered (distinct from automatically showing this information when hover is triggered).\ndropdown: in a dropdown\nchannel: will be revealed in an output channel"
105134
},
106135
"languageServerHaskell.trace.server": {
107136
"scope": "resource",
108137
"type": "string",
109-
"enum": ["off", "messages"],
138+
"enum": [
139+
"off",
140+
"messages"
141+
],
110142
"default": "off",
111143
"description": "Traces the communication between VSCode and the languageServerHaskell service."
112144
},
@@ -119,16 +151,19 @@
119151
"languageServerHaskell.hieVariant": {
120152
"scope": "resource",
121153
"type": "string",
122-
"enum": ["haskell-ide-engine", "haskell-language-server", "ghcide"],
154+
"enum": [
155+
"haskell-ide-engine",
156+
"haskell-language-server",
157+
"ghcide"
158+
],
123159
"default": "haskell-ide-engine",
124160
"description": "Which haskell language server to use."
125161
},
126162
"languageServerHaskell.hieExecutablePath": {
127163
"scope": "resource",
128164
"type": "string",
129165
"default": "",
130-
"description":
131-
"Set the path to your hie executable, if it's not already on your $PATH. Works with ~, ${HOME} and ${workspaceFolder}."
166+
"description": "Set the path to your hie executable, if it's not already on your $PATH. Works with ~, ${HOME} and ${workspaceFolder}."
132167
},
133168
"languageServerHaskell.enableHIE": {
134169
"scope": "resource",
@@ -223,8 +258,7 @@
223258
"tslint": "tslint -p tsconfig.json -c tslint.json --format stylish 'src/**/*.ts'",
224259
"tslint-fix": "tslint --fix -p tsconfig.json -c tslint.json --format stylish 'src/**/*.ts'",
225260
"precommit": "pretty-quick --staged",
226-
"push-tag":
227-
"git tag -a $npm_package_version -m \"Version $npm_package_version\" && git push origin $npm_package_version"
261+
"push-tag": "git tag -a $npm_package_version -m \"Version $npm_package_version\" && git push origin $npm_package_version"
228262
},
229263
"devDependencies": {
230264
"@types/cheerio": "^0.22.17",
@@ -235,17 +269,19 @@
235269
"@types/node": "^8.10.59",
236270
"@types/request-promise-native": "^1.0.17",
237271
"husky": "^0.14.3",
238-
"prettier": "1.11.1",
272+
"prettier": "^2.0.5",
239273
"pretty-quick": "^1.11.1",
240274
"ts-loader": "^6.2.2",
241275
"tslint": "^5.20.1",
242276
"tslint-loader": "^3.5.4",
243-
"typescript": "^3.8.3",
277+
"typescript": "^3.9.5",
244278
"vscode": "^1.1.36",
245279
"webpack": "^4.42.1",
246280
"webpack-cli": "^3.3.11"
247281
},
248-
"extensionDependencies": ["justusadam.language-haskell"],
282+
"extensionDependencies": [
283+
"justusadam.language-haskell"
284+
],
249285
"dependencies": {
250286
"cheerio": "^1.0.0-rc.3",
251287
"extend": ">=3.0.2",

0 commit comments

Comments
 (0)