From 1a475d453578be64ff37902b1c24fc9bd1d580a4 Mon Sep 17 00:00:00 2001 From: Tom van Ommeren Date: Mon, 23 Oct 2017 09:00:41 +0200 Subject: [PATCH 1/2] fix: Empty handler for initialized notification --- src/typescript-service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/typescript-service.ts b/src/typescript-service.ts index 32ace19e8..5cb04f3b8 100644 --- a/src/typescript-service.ts +++ b/src/typescript-service.ts @@ -1324,6 +1324,10 @@ export class TypeScriptService { .startWith({ op: 'add', path: '', value: { changes: {} } as WorkspaceEdit } as Operation) } + public async initialized(): Promise { + // nop + } + /** * The document open notification is sent from the client to the server to signal newly opened * text documents. The document's truth is now managed by the client and the server must not try From 3b463ff1a338ddc6dd0a2f0c1deb8d9d953aa35f Mon Sep 17 00:00:00 2001 From: Tom van Ommeren Date: Thu, 26 Oct 2017 23:52:53 +0200 Subject: [PATCH 2/2] fix: Add documentation --- src/typescript-service.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/typescript-service.ts b/src/typescript-service.ts index 5cb04f3b8..6f288baca 100644 --- a/src/typescript-service.ts +++ b/src/typescript-service.ts @@ -1324,6 +1324,12 @@ export class TypeScriptService { .startWith({ op: 'add', path: '', value: { changes: {} } as WorkspaceEdit } as Operation) } + /** + * The initialized notification is sent from the client to the server after the client received + * the result of the initialize request but before the client is sending any other request or + * notification to the server. The server can use the initialized notification for example to + * dynamically register capabilities. + */ public async initialized(): Promise { // nop }