MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / unregister

Function unregister

static/codelens-handler.ts:74–82  ·  view source on GitHub ↗
(compilerId: number)

Source from the content-addressed store, hash-verified

72}
73
74export function unregister(compilerId: number): void {
75 const item = _.find(registeredCodelenses, (item: RegisteredCodeLens): boolean => {
76 return item.compilerId === compilerId;
77 });
78
79 if (item) {
80 registeredCodelenses = _.without(registeredCodelenses, item);
81 }
82}
83
84export function registerProviderForLanguage(language: string): void {
85 if (!(language in providersPerLanguage)) {

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected