Skip to content

Commit 3ff6aee

Browse files
robstrykerclaude
andcommitted
Drop redundant manual TypeHierarchyFeature registration
vscode-languageclient's LanguageClient constructor already calls registerBuiltinFeatures(), which registers TypeHierarchyFeature internally. The explicit registration added here is not just redundant, it no longer compiles: the package now restricts its exports map to '.', './node', './browser', so the deep import 'vscode-languageclient/lib/common/typeHierarchy' is no longer a valid module path, and TypeHierarchyFeature isn't re-exported from the public API either. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent f805497 commit 3ff6aee

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎src/standardLanguageClient.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as net from 'net';
44
import * as path from 'path';
55
import { CancellationToken, CodeActionKind, commands, ConfigurationTarget, DocumentSelector, EventEmitter, ExtensionContext, extensions, languages, Location, ProgressLocation, TextEditor, TypeHierarchyItem, Uri, ViewColumn, window, workspace, WorkspaceConfiguration } from "vscode";
66
import { ConfigurationParams, ConfigurationRequest, LanguageClientOptions, Location as LSLocation, MessageType, Position as LSPosition, TextDocumentPositionParams, WorkspaceEdit, StaticFeature, ClientCapabilities, FeatureState, TelemetryEventNotification } from "vscode-languageclient";
7-
import { TypeHierarchyFeature } from 'vscode-languageclient/lib/common/typeHierarchy';
87
import { LanguageClient, StreamInfo } from "vscode-languageclient/node";
98
import { apiManager } from "./apiManager";
109
import * as buildPath from './buildpath';
@@ -110,7 +109,6 @@ export class StandardLanguageClient {
110109
// Create the language client and start the client.
111110
this.languageClient = new TracingLanguageClient('java', extensionName, serverOptions, clientOptions, DEBUG);
112111
this.languageClient.registerFeature(new DisableWillRenameFeature());
113-
this.languageClient.registerFeature(new TypeHierarchyFeature(this.languageClient));
114112

115113
this.registerCommandsForStandardServer(context, jdtEventEmitter);
116114
fileEventHandler.registerFileEventHandlers(this.languageClient, context);

0 commit comments

Comments
 (0)