TypeScript: calls through interface members (incl. prototype-installed mixins) produce no CALLS edge to the implementation
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- typescript
- Domaine
- devtools
Piste de recherche
Start by tracing the TypeScript LSP hybrid call resolution path for the lsp_ts_method strategy and how it handles interface member targets that are not graph nodes. Then inspect the graph relationships and module-level calls described in the issue to see how implementations and prototype-installed mixins can be found. Done means interface calls produce edges to implementation candidates, or at minimum retain a CALL_REFERENCE when unresolved; the issue names no test file, so locate the relevant resolver tests.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Bug/feature: TypeScript calls through interface members are not attributed to implementations
Version: codebase-memory-mcp v0.12.1 (linux-amd64-portable), TypeScript project, LSP hybrid resolution
(strategy: lsp_ts_method on edges). Related: #2893 (C#: calls through interfaces / virtual members not
attributed to implementers), #2789 (TypeScript call resolution fixes).
What happens
A method call on a parameter typed with an interface produces no CALLS edge at all. The LSP resolves the
call to the interface member signature, which is not a node, so the edge is dropped silently. trace_path
outbound of the caller therefore misses the real implementation.
Minimal example
// contract.ts
export interface RegistryOperations {
replaceCredential(providerId: string, raw: unknown): Promise<Snapshot>
}
// operations.ts
export const credentialOperations = {
replaceCredential(this: Registry, providerId: string, raw: unknown): Promise<Snapshot> { /* ... */ },
}
// registry.ts
import { credentialOperations } from './operations'
export class Registry { /* state */ }
export interface Registry extends RegistryOperations {}
installOperations(Registry.prototype, credentialOperations) // Object.assign-style mixin
// handler.ts
export async function replaceModelCredential(registry: Registry | undefined, providerId: string, req: Request) {
const input = await req.json()
return registry!.replaceCredential(providerId, input) // <- no CALLS edge
}
Observed:
trace_path(function_name="…replaceModelCredential", direction="outbound")listsreq.jsonstyle callees but
notreplaceCredential.MATCH (f)-[r]->(g) WHERE f.name='replaceModelCredential' RETURN type(r), g.name→ onlyUSAGE Registry
(the type), no call edge; noCALL_REFERENCEeither.- The implementation exists as a
Functionnode (operations.replaceCredential), the class has an
IMPLEMENTSedge toRegistryOperations, and the module-level callinstallOperations(Registry.prototype, …)
is captured as a Module → CALLS edge with its arguments.
Expected
When the LSP target is an interface member, resolve to the implementations: classes with IMPLEMENTS (or
declaration-merged classes of the same name) that define the method; if none, members installed on the
prototype by module-level Object.assign(X.prototype, obj) / mixin helpers (object-literal members of obj).
Several implementations → several edges with a lower confidence (or a candidates count), as the resolver
already does for other ambiguous strategies. At minimum, an unresolved call should leave a CALL_REFERENCE with
the member name so that consumers can resolve it themselves.
- Langage dominant
- C
- Étoiles
- 45.8k
- Forks
- 3.8k
- Merge moyen
- 2 j 18 h
- PR mergées (30 j)
- 108
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de DeusData/codebase-memory-mcp
-
bug ux/behavior
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
DeusData/codebase-memory-mcp#3191 ·
Les mainteneurs répondent en général sous 1 jour
-
documentation enhancement parsing/quality ux/behavior
Difficulté 1/5 1-3 heures Accessibilité débutants 82/100
DeusData/codebase-memory-mcp#3131 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
hook-augment: the five-row cap keeps the first five search_graph rows, so variables and modules displace function definitions (v0.12.1)Peut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertebug editor/integration parsing/quality ux/behavior
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
DeusData/codebase-memory-mcp#3062 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Generated client files (AGENTS.md block, SKILL.md) teach a call syntax no harness can executeOuvertebug documentation editor/integration parsing/quality
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
DeusData/codebase-memory-mcp#3050 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
editor/integration parsing/quality
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
DeusData/codebase-memory-mcp#2286 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de DeusData/codebase-memory-mcp
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Les mainteneurs répondent en général sous 1 jour
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameOuvertegame: 010065A014024000 ios
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
seedds/nxnative#3714 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours