diff options
Diffstat (limited to 'editors/code/src/server.ts')
-rw-r--r-- | editors/code/src/server.ts | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/editors/code/src/server.ts b/editors/code/src/server.ts index 2bb21da6b..5dc8a36bd 100644 --- a/editors/code/src/server.ts +++ b/editors/code/src/server.ts | |||
@@ -15,9 +15,7 @@ export class Server { | |||
15 | public static config = new Config(); | 15 | public static config = new Config(); |
16 | public static client: lc.LanguageClient; | 16 | public static client: lc.LanguageClient; |
17 | 17 | ||
18 | public static async start( | 18 | public static async start() { |
19 | notificationHandlers: Iterable<[string, lc.GenericNotificationHandler]>, | ||
20 | ) { | ||
21 | // '.' Is the fallback if no folder is open | 19 | // '.' Is the fallback if no folder is open |
22 | // TODO?: Workspace folders support Uri's (eg: file://test.txt). It might be a good idea to test if the uri points to a file. | 20 | // TODO?: Workspace folders support Uri's (eg: file://test.txt). It might be a good idea to test if the uri points to a file. |
23 | let folder: string = '.'; | 21 | let folder: string = '.'; |
@@ -92,11 +90,6 @@ export class Server { | |||
92 | }, | 90 | }, |
93 | }; | 91 | }; |
94 | Server.client.registerProposedFeatures(); | 92 | Server.client.registerProposedFeatures(); |
95 | Server.client.onReady().then(() => { | ||
96 | for (const [type, handler] of notificationHandlers) { | ||
97 | Server.client.onNotification(type, handler); | ||
98 | } | ||
99 | }); | ||
100 | Server.client.start(); | 93 | Server.client.start(); |
101 | } | 94 | } |
102 | } | 95 | } |