File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ import {
2
+ Executable ,
3
+ LanguageClient ,
4
+ LanguageClientOptions ,
5
+ ServerOptions ,
6
+ } from 'vscode-languageclient/node' ;
7
+
8
+ const serverOptions : ServerOptions = < Executable > {
9
+ command : "M2-language-server" } ;
10
+
11
+ const clientOptions : LanguageClientOptions = { } ;
12
+
13
+ export default new LanguageClient (
14
+ "macaulay2-language-server" ,
15
+ serverOptions ,
16
+ clientOptions ) ;
Original file line number Diff line number Diff line change 5
5
import * as vscode from 'vscode' ;
6
6
import * as completions from "./completionProviders" ;
7
7
import * as repl from "./repl" ;
8
+ import client from "./client" ;
8
9
9
10
// this method is called when your extension is activated
10
11
// your extension is activated the very first time the command is executed
@@ -16,6 +17,7 @@ export function activate(context: vscode.ExtensionContext) {
16
17
17
18
completions . activate ( context ) ;
18
19
repl . activate ( context ) ;
20
+ client . start ( ) ;
19
21
20
22
}
21
23
You can’t perform that action at this time.
0 commit comments