microsoft / vscode-languageserver-node

Language server protocol implementation for VSCode. This allows implementing language services in JS/TS running on node.js
MIT License
1.41k stars 320 forks source link

Missing 'export TypeHierarchyMiddleware' from api.ts #1468

Closed ljw1004 closed 2 months ago

ljw1004 commented 2 months ago

In client/src/common/api.ts, all middleware types are exported with the exception of TypeHierarchyMiddleware. This looks like an oversight? I think this line should be present:

export { PrepareTypeHierarchySignature, TypeHierarchySupertypesSignature, TypeHierarchySubtypesSignature, TypeHierarchyMiddleware } from './typeHierarchy';

by analogy with the other lines:

export { PrepareCallHierarchySignature, CallHierarchyIncomingCallsSignature, CallHierarchyOutgoingCallsSignature, CallHierarchyMiddleware } from './callHierarchy';
export { ProvideCodeActionsSignature, ResolveCodeActionSignature, CodeActionMiddleware } from './codeAction';
export { ProvideCodeLensesSignature, ResolveCodeLensSignature, CodeLensMiddleware, CodeLensProviderShape } from './codeLens';
...