MCPcopy
hub / github.com/microsoft/vscode-languageserver-node / handleUnregistrationRequest

Function handleUnregistrationRequest

client/src/client.ts:2940–2952  ·  view source on GitHub ↗
(params: UnregistrationParams)

Source from the content-addressed store, hash-verified

2938 }
2939
2940 private handleUnregistrationRequest(params: UnregistrationParams): Thenable<void> {
2941 return new Promise<void>((resolve, reject) => {
2942 for (let unregistration of params.unregisterations) {
2943 const feature = this._dynamicFeatures.get(unregistration.method);
2944 if (!feature) {
2945 reject(new Error(`No feature implementation for ${unregistration.method} found. Unregistration failed.`));
2946 return;
2947 }
2948 feature.unregister(unregistration.id);
2949 };
2950 resolve();
2951 });
2952 }
2953
2954 private handleApplyWorkspaceEdit(params: ApplyWorkspaceEditParams): Thenable<ApplyWorkspaceEditResponse> {
2955 // This is some sort of workaround since the version check should be done by VS Code in the Workspace.applyEdit.

Callers

nothing calls this directly

Calls 4

rejectFunction · 0.85
unregisterMethod · 0.65
resolveFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected