Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call hierarchy shows full file paths #36511

Closed
jrieken opened this issue Jan 29, 2020 · 7 comments
Closed

call hierarchy shows full file paths #36511

jrieken opened this issue Jan 29, 2020 · 7 comments
Assignees
Labels
Bug A bug in TypeScript Rescheduled This issue was previously scheduled to an earlier milestone

Comments

@jrieken
Copy link
Member

jrieken commented Jan 29, 2020

TS Template added by @mjbvz

TypeScript Version: 3.8.0-dev.20200128

Search Terms

  • call hierarchy
  • provideCallHierarchyIncomingCalls

/cc @rbuckton


re microsoft/vscode#89386

  • use ts3.8-beta
  • show callers of mergeSort
  • 🐛 some entries show as full file paths, instead they should be folder/project relative

Screenshot 2020-01-29 at 15 14 00

@mjbvz mjbvz transferred this issue from microsoft/vscode Jan 29, 2020
@mjbvz
Copy link
Contributor

mjbvz commented Jan 29, 2020

Here's the response that causes this:

Trace  - 19:46:11.735] <semantic> Response received: provideCallHierarchyIncomingCalls (138). Request took 120 ms. Success: true 
Result: [
    {
        "from": {
            "name": "/Users/matb/projects/vscode/src/vs/base/test/common/arrays.test.ts",
            "kind": "module",
            "file": "/Users/matb/projects/vscode/src/vs/base/test/common/arrays.test.ts",
            "span": {
                "start": {
                    "line": 1,
                    "offset": 1
                },
                "end": {
                    "line": 347,
                    "offset": 1
                }
            },
            "selectionSpan": {
                "start": {
                    "line": 1,
                    "offset": 1
                },
                "end": {
                    "line": 1,
                    "offset": 1
                }
            }
        },
        "fromSpans": [
            {
                "start": {
                    "line": 49,
                    "offset": 53
                },
                "end": {
                    "line": 49,
                    "offset": 62
                }
            },
            {
                "start": {
                    "line": 55,
                    "offset": 36
                },
                "end": {
                    "line": 56,
                    "offset": 1
                }
            },
            {
                "start": {
                    "line": 68,
                    "offset": 31
                },
                "end": {
                    "line": 68,
                    "offset": 40
                }
            },
            {
                "start": {
                    "line": 70,
                    "offset": 30
                },
                "end": {
                    "line": 70,
                    "offset": 39
                }
            },
            {
                "start": {
                    "line": 99,
                    "offset": 64
                },
                "end": {
                    "line": 99,
                    "offset": 73
                }
            }
        ]
    },
    ...

@mjbvz mjbvz removed their assignment Jan 29, 2020
@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Feb 6, 2020
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 3.9.0 milestone Feb 6, 2020
@rbuckton
Copy link
Member

rbuckton commented Apr 8, 2020

@rbuckton
Copy link
Member

rbuckton commented Apr 8, 2020

Related discussion: #31863 (comment)

@jrieken
Copy link
Member Author

jrieken commented Apr 9, 2020

Yeah, should be... Unsure if the file doesn't match the workspace path because of "path formatting" issues?

@mjbvz
Copy link
Contributor

mjbvz commented Apr 10, 2020

Fixed for me in the current VS code code base using TS 3.9-nightly

Screen Shot 2020-04-09 at 7 34 05 PM

@jrieken Do you still see this issue?

@rbuckton
Copy link
Member

@jrieken, @mjbvz has there been any further investigation on the VSCode side? I haven't been able to repro this on Windows. Was the original case discovered on an *nix operating system?

@RyanCavanaugh RyanCavanaugh added the Rescheduled This issue was previously scheduled to an earlier milestone label May 20, 2020
@andrewbranch
Copy link
Member

Doesn’t repro for me on macOS either. The original screenshot was taken on macOS. Seems like this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Rescheduled This issue was previously scheduled to an earlier milestone
Projects
None yet
Development

No branches or pull requests

6 participants