diff --git a/src/typescript-service.ts b/src/typescript-service.ts index 4f99419a4..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 @@ -1467,7 +1477,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))