-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Ensure findPrecedingToken recurses into JSDoc children when needed #53487
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
Conversation
@typescript-bot user test tsserver |
Heya @jakebailey, I've started to run the tarball bundle task on this PR at ab2eed3. You can monitor the build here. |
Heya @jakebailey, I've started to run the diff-based top-repos suite (tsserver) on this PR at ab2eed3. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the perf test suite on this PR at ab2eed3. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the diff-based user code test suite (tsserver) on this PR at ab2eed3. You can monitor the build here. Update: The results are in! |
Hey @jakebailey, I've packed this into an installable tgz. You can install it for testing by referencing it in your
and then running There is also a playground for this build and an npm module you can use via |
What caused the regression in the first place? |
#53476 says
I can test 4.9 to double check, though. |
It hangs in 4.9 too, so this isn't a regression in 5.0 as far as I can tell. |
@jakebailey Here are the results of running the user test suite comparing Everything looks good! |
@jakebailey Here they are:
CompilerComparison Report - main..53487
System
Hosts
Scenarios
TSServerComparison Report - main..53487
System
Hosts
Scenarios
StartupComparison Report - main..53487
System
Hosts
Scenarios
Developer Information: |
@jakebailey Here are the results of running the top-repos suite comparing Everything looks good! |
const core = window.Abcd.core; | ||
})();`, ts.ScriptTarget.ESNext, /*setParentNodes*/ true); | ||
// can't use ts.getTokenAtPosition because it returns back the wrong token | ||
const param = ts.forEachChildRecursively(sourceFile, node => node.kind === ts.SyntaxKind.Parameter ? node : undefined)!; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what parameter is there in the example code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, window
??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea, I just copied and pasted the test from the issue...
const sourceFile = ts.createSourceFile("file.ts", `/// <reference path="./compiler.d.ts" /> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you need the triple slash reference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, probably not.
Fixes #53476