Skip to content

fix: keep same-named functions of different files apart in the stack view - #55

Open
Arthurvroum wants to merge 1 commit into
mainfrom
42-stack-same-name-functions
Open

Arthurvroum wants to merge 1 commit into
mainfrom
42-stack-same-name-functions

Conversation

@Arthurvroum

@Arthurvroum Arthurvroum commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Merging the stack reports of a workspace indexed functions by name: two files each defining a static helper became one row, mixing the location of one with the stack size of the other. The CodeLens and the sidebar lookups used the name too.

  • A function is identified by its name and the file defining it. Names defined in a single file keep their name as id; the others get name@file. Functions without a known file are still merged by name.
  • Calls are resolved within the file that made them, then to the only definition of that name elsewhere; an ambiguous name is not linked.
  • The CodeLens shows and focuses the definition of its own file, and the sidebar shows the file next to names that several functions share.

Fixes #42

…view

Merging the stack reports of a workspace indexed functions by name: two
files each defining a static helper became one row, mixing the location
of one with the stack size of the other. The CodeLens and the sidebar
lookups used the name too.

- A function is identified by its name and the file defining it. Names
  defined in a single file keep their name as id; the others get
  name@file. Functions without a known file are still merged by name.
- Calls are resolved within the file that made them, then to the only
  definition of that name elsewhere; an ambiguous name is not linked.
- The CodeLens shows and focuses the definition of its own file, and the
  sidebar shows the file next to names that several functions share.

Fixes #42
@Arthurvroum Arthurvroum changed the title fix: keep same-named functions of different files apart in the stack … fix: keep same-named functions of different files apart in the stack view Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stack view merges same-named functions from different translation units

1 participant