From a34ac0bde47e7219481e2d20bc8b3b5ea816dddc Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Wed, 25 Oct 2017 11:04:47 -0700 Subject: [PATCH 1/2] chore: fix build --- src/typescript-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typescript-service.ts b/src/typescript-service.ts index 4f99419a4..74d0caad6 100644 --- a/src/typescript-service.ts +++ b/src/typescript-service.ts @@ -1467,7 +1467,7 @@ export class TypeScriptService { // Same score for all .map(item => [1, navigateToItemToSymbolInformation(item, program, this.root)] as [number, SymbolInformation]) } else { - const queryWithoutPackage = query && omit(query, 'package') as SymbolDescriptor + const queryWithoutPackage = query && omit>(query, 'package') // Require at least 2 properties to match (or all if less provided) const minScore = Math.min(2, getPropertyCount(query)) const minScoreWithoutPackage = Math.min(2, getPropertyCount(queryWithoutPackage)) From 5fb0b73b13b3c8364eb33c9e23bc4861aa9b4b32 Mon Sep 17 00:00:00 2001 From: Tom van Ommeren Date: Tue, 31 Oct 2017 18:43:23 +0100 Subject: [PATCH 2/2] fix: add empty handler for initialized notification (#384) --- src/typescript-service.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/typescript-service.ts b/src/typescript-service.ts index 74d0caad6..9d91f5927 100644 --- a/src/typescript-service.ts +++ b/src/typescript-service.ts @@ -1330,6 +1330,16 @@ 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 + } + /** * 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