Skip to content

Commit de13f1b

Browse files
committed
switch back to racket-langserver as language server
1 parent 417d9f2 commit de13f1b

File tree

3 files changed

+189
-184
lines changed

3 files changed

+189
-184
lines changed

package.json

Lines changed: 186 additions & 181 deletions
Original file line numberDiff line numberDiff line change
@@ -1,182 +1,187 @@
11
{
2-
"name": "magic-racket",
3-
"displayName": "Magic Racket",
4-
"description": "Language support for Racket: top notch syntax highlighting and REPL integration.",
5-
"version": "0.4.6",
6-
"activationEvents": [
7-
"onCommand:magic-racket.loadFileIntoNewRepl",
8-
"onCommand:magic-racket.loadFileIntoRepl",
9-
"onCommand:magic-racket.runFile",
10-
"onCommand:magic-racket.executeSelectionInRepl",
11-
"onCommand:magic-racket.openRepl",
12-
"onLanguage:racket"
13-
],
14-
"main": "./out/extension.js",
15-
"galleryBanner": {
16-
"color": "#FFFFFF",
17-
"theme": "light"
18-
},
19-
"icon": "images/icon.png",
20-
"engines": {
21-
"vscode": "^1.39.0"
22-
},
23-
"licence": "SEE LICENSE IN LICENSE",
24-
"homepage": "https://github.com/Eugleo/magic-racket/",
25-
"bugs": {
26-
"url": "https://github.com/Eugleo/magic-racket/issues",
27-
"email": "[email protected]"
28-
},
29-
"repository": {
30-
"type": "git",
31-
"url": "https://github.com/Eugleo/magic-racket.git"
32-
},
33-
"categories": [
34-
"Programming Languages"
35-
],
36-
"keywords": [
37-
"racket",
38-
"drracket",
39-
"lisp",
40-
"scheme",
41-
"repl"
42-
],
43-
"publisher": "evzen-wybitul",
44-
"author": {
45-
"name": "Evžen Wybitul"
46-
},
47-
"contributes": {
48-
"configurationDefaults": {
49-
"[racket]": {
50-
"editor.rulers": [
51-
102
52-
],
53-
"editor.wordSeparators": "()[]{}\",'`;#|"
54-
}
55-
},
56-
"languages": [
57-
{
58-
"id": "racket",
59-
"aliases": [
60-
"Racket",
61-
"racket"
62-
],
63-
"extensions": [
64-
".rkt"
65-
],
66-
"configuration": "language-configuration.json"
67-
}
68-
],
69-
"grammars": [
70-
{
71-
"language": "racket",
72-
"scopeName": "source.racket",
73-
"path": "./syntaxes/racket.tmLanguage.json"
74-
}
75-
],
76-
"configuration": {
77-
"title": "Magic Racket",
78-
"properties": {
79-
"magic-racket.racketPath": {
80-
"type": "string",
81-
"default": "racket",
82-
"description": "The path to the racket executable (used to run the file and open the REPL)."
83-
}
84-
}
85-
},
86-
"commands": [
87-
{
88-
"command": "magic-racket.loadFileIntoRepl",
89-
"title": "Racket: Load file into the current REPL",
90-
"icon": {
91-
"light": "images/repl-light.svg",
92-
"dark": "images/repl-dark.svg"
93-
}
94-
},
95-
{
96-
"command": "magic-racket.loadFileIntoNewRepl",
97-
"title": "Racket: Load file into a new REPL"
98-
},
99-
{
100-
"command": "magic-racket.runFile",
101-
"title": "Racket: Run file in terminal",
102-
"icon": {
103-
"light": "images/run.svg",
104-
"dark": "images/run.svg"
105-
}
106-
},
107-
{
108-
"command": "magic-racket.executeSelectionInRepl",
109-
"title": "Racket: Execute selection in REPL"
110-
},
111-
{
112-
"command": "magic-racket.openRepl",
113-
"title": "Racket: Launch a new repl"
114-
}
115-
],
116-
"menus": {
117-
"editor/title": [
118-
{
119-
"when": "editorLangId == racket",
120-
"command": "magic-racket.runFile",
121-
"group": "navigation"
122-
},
123-
{
124-
"when": "editorLangId == racket",
125-
"command": "magic-racket.loadFileIntoRepl",
126-
"group": "navigation"
127-
}
128-
],
129-
"editor/context": [
130-
{
131-
"when": "resourceLangId == racket && editorHasSelection",
132-
"command": "magic-racket.executeSelectionInRepl",
133-
"group": "z_commands"
134-
}
135-
]
136-
},
137-
"keybindings": [
138-
{
139-
"command": "magic-racket.executeSelectionInRepl",
140-
"key": "Alt+Enter",
141-
"when": "resourceLangId == racket && editorHasSelection"
142-
},
143-
{
144-
"key": "Ctrl+/",
145-
"mac": "Cmd+/",
146-
"command": "editor.action.insertSnippet",
147-
"when": "resourceLangId == racket && editorTextFocus",
148-
"args": {
149-
"langId": "racket",
150-
"name": "lambda"
151-
}
152-
}
153-
],
154-
"snippets": [
155-
{
156-
"language": "racket",
157-
"path": "./snippets/racket.json"
158-
}
159-
]
160-
},
161-
"scripts": {
162-
"vscode:prepublish": "npm run compile",
163-
"compile": "tsc -p ./",
164-
"watch": "tsc -watch -p ./",
165-
"pretest": "npm run compile",
166-
"test": "node ./out/test/runTest.js"
167-
},
168-
"devDependencies": {
169-
"@types/glob": "^7.1.1",
170-
"@types/mocha": "^5.2.6",
171-
"@types/node": "^10.12.21",
172-
"@types/vscode": "^1.39.0",
173-
"glob": "^7.1.4",
174-
"mocha": "^6.1.4",
175-
"typescript": "^3.3.1",
176-
"tslint": "^5.12.1",
177-
"vscode-test": "^1.2.0"
178-
},
179-
"dependencies": {
180-
"vscode-languageclient": "^6.1.3"
181-
}
182-
}
2+
"name": "magic-racket",
3+
"displayName": "Magic Racket",
4+
"description": "Language support for Racket: top notch syntax highlighting and REPL integration.",
5+
"version": "0.4.6",
6+
"activationEvents": [
7+
"onCommand:magic-racket.loadFileIntoNewRepl",
8+
"onCommand:magic-racket.loadFileIntoRepl",
9+
"onCommand:magic-racket.runFile",
10+
"onCommand:magic-racket.executeSelectionInRepl",
11+
"onCommand:magic-racket.openRepl",
12+
"onLanguage:racket"
13+
],
14+
"main": "./out/extension.js",
15+
"galleryBanner": {
16+
"color": "#FFFFFF",
17+
"theme": "light"
18+
},
19+
"icon": "images/icon.png",
20+
"engines": {
21+
"vscode": "^1.39.0"
22+
},
23+
"licence": "SEE LICENSE IN LICENSE",
24+
"homepage": "https://github.com/Eugleo/magic-racket/",
25+
"bugs": {
26+
"url": "https://github.com/Eugleo/magic-racket/issues",
27+
"email": "[email protected]"
28+
},
29+
"repository": {
30+
"type": "git",
31+
"url": "https://github.com/Eugleo/magic-racket.git"
32+
},
33+
"categories": [
34+
"Programming Languages"
35+
],
36+
"keywords": [
37+
"racket",
38+
"drracket",
39+
"lisp",
40+
"scheme",
41+
"repl"
42+
],
43+
"publisher": "evzen-wybitul",
44+
"author": {
45+
"name": "Evžen Wybitul"
46+
},
47+
"contributes": {
48+
"configurationDefaults": {
49+
"[racket]": {
50+
"editor.rulers": [
51+
102
52+
],
53+
"editor.wordSeparators": "()[]{}\",'`;#|"
54+
}
55+
},
56+
"languages": [
57+
{
58+
"id": "racket",
59+
"aliases": [
60+
"Racket",
61+
"racket"
62+
],
63+
"extensions": [
64+
".rkt"
65+
],
66+
"configuration": "language-configuration.json"
67+
}
68+
],
69+
"grammars": [
70+
{
71+
"language": "racket",
72+
"scopeName": "source.racket",
73+
"path": "./syntaxes/racket.tmLanguage.json"
74+
}
75+
],
76+
"configuration": {
77+
"title": "Magic Racket",
78+
"properties": {
79+
"magic-racket.racketPath": {
80+
"type": "string",
81+
"default": "racket",
82+
"description": "The path to the racket executable (used to run the file and open the REPL)."
83+
}
84+
}
85+
},
86+
"commands": [
87+
{
88+
"command": "magic-racket.loadFileIntoRepl",
89+
"title": "Racket: Load file into the current REPL",
90+
"icon": {
91+
"light": "images/repl-light.svg",
92+
"dark": "images/repl-dark.svg"
93+
}
94+
},
95+
{
96+
"command": "magic-racket.loadFileIntoNewRepl",
97+
"title": "Racket: Load file into a new REPL"
98+
},
99+
{
100+
"command": "magic-racket.runFile",
101+
"title": "Racket: Run file in terminal",
102+
"icon": {
103+
"light": "images/run.svg",
104+
"dark": "images/run.svg"
105+
}
106+
},
107+
{
108+
"command": "magic-racket.executeSelectionInRepl",
109+
"title": "Racket: Execute selection in REPL"
110+
},
111+
{
112+
"command": "magic-racket.openRepl",
113+
"title": "Racket: Launch a new repl"
114+
}
115+
],
116+
"menus": {
117+
"editor/title": [
118+
{
119+
"when": "editorLangId == racket",
120+
"command": "magic-racket.runFile",
121+
"group": "navigation"
122+
},
123+
{
124+
"when": "editorLangId == racket",
125+
"command": "magic-racket.loadFileIntoRepl",
126+
"group": "navigation"
127+
}
128+
],
129+
"editor/context": [
130+
{
131+
"when": "resourceLangId == racket && editorHasSelection",
132+
"command": "magic-racket.executeSelectionInRepl",
133+
"group": "z_commands"
134+
}
135+
]
136+
},
137+
"keybindings": [
138+
{
139+
"command": "magic-racket.executeSelectionInRepl",
140+
"key": "Alt+Enter",
141+
"when": "resourceLangId == racket && editorHasSelection"
142+
},
143+
{
144+
"key": "Ctrl+/",
145+
"mac": "Cmd+/",
146+
"command": "editor.action.insertSnippet",
147+
"when": "resourceLangId == racket && editorTextFocus",
148+
"args": {
149+
"langId": "racket",
150+
"name": "lambda"
151+
}
152+
}
153+
],
154+
"snippets": [
155+
{
156+
"language": "racket",
157+
"path": "./snippets/racket.json"
158+
}
159+
]
160+
},
161+
"scripts": {
162+
"vscode:prepublish": "npm run compile",
163+
"compile": "tsc -p ./",
164+
"watch": "tsc -watch -p ./",
165+
"pretest": "npm run compile",
166+
"test": "node ./out/test/runTest.js"
167+
},
168+
"devDependencies": {
169+
"@types/glob": "^7.1.1",
170+
"@types/mocha": "^5.2.6",
171+
"@types/node": "^10.12.21",
172+
"@types/vscode": "^1.39.0",
173+
"glob": "^7.1.4",
174+
"mocha": "^6.1.4",
175+
"typescript": "^3.3.1",
176+
"tslint": "^5.12.1",
177+
"vscode-test": "^1.2.0"
178+
},
179+
"dependencies": {
180+
"vscode-languageclient": "^6.1.3"
181+
},
182+
"__metadata": {
183+
"id": "d8508201-6c73-4091-b44a-f974e541649e",
184+
"publisherDisplayName": "Evzen Wybitul",
185+
"publisherId": "f25363b3-e08b-40fb-9624-561592772d23"
186+
}
187+
}

racket-langserver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 86b55b118973949ef591da8c80307d42f7df47de
1+
Subproject commit 4d5d822edd36e97aa4dcb7cebfaf65318979d4b9

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export function activate(context: vscode.ExtensionContext) {
77
const executable = {
88
command: 'racket',
99
// args: ['--lib', 'racket-langserver'],
10-
// args: [context.asAbsolutePath('racket-langserver/main.rkt')],
11-
args: [context.asAbsolutePath('racket-language-server/main.rkt')],
10+
args: [context.asAbsolutePath('racket-langserver/main.rkt')],
11+
// args: [context.asAbsolutePath('racket-language-server/main.rkt')],
1212
};
1313

1414
// If the extension is launched in debug mode then the debug server options are used

0 commit comments

Comments
 (0)