| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Probably need to fork the services/server types and provide a conversion with Session.toFileSpan. Not sure where to put the conversion.
In theory this is already better supported, but not sure practise bears that out.
The text of the link is still stored in the comment text, but that's now kept in an object instead of just a string. Each link has the parse for the entity reference, if there is one. Needs lots more tests -- this just makes all the existing jsdoc tests pass.
|
Thanks for the PR! It looks like you've changed the TSServer protocol in some way. Please ensure that any changes here don't break consumers of the current TSServer API. For some extra review, we'll ping Sheetal Nandi (@sheetalkamat), Andrew Casey (@amcasey), Matt Bierner (@mjbvz), Mine Starks (@minestarks) for you. Feel free to loop in other consumers/maintainers if necessary |
Sorry, something went wrong.
|
Matt Bierner (@mjbvz) and Andrew Casey (@amcasey), you should maybe also look at this (at least the protocol part) |
Sorry, something went wrong.
|
TypeScript Bot (@typescript-bot) pack this Only thing I’m curious about is if there are some places where JSDoc can go, but otherwise entity names could not go, and therefore might expose a hole in getSymbolAtLocation. |
Sorry, something went wrong.
|
Heya Andrew Branch (@andrewbranch), I've started to run the tarball bundle task on this PR at fce33f1. You can monitor the build here. |
Sorry, something went wrong.
|
Andrew Branch (@andrewbranch) I indeed tried writing more tests and discovered a hole. I'll put up a commit that makes getSymbolAtLocation work with identifiers in links. |
Sorry, something went wrong.
|
The most recent commit avoids breaking VS, and I'm working on tests for all 4 possible combinations of the rich/full matrix. |
Sorry, something went wrong.
|
This is ready for review now. |
Sorry, something went wrong.
There was a problem hiding this comment.
The behavior and interface changes generally LGTM. Some suggestions below.
Sorry, something went wrong.
1. Add a cross-file goto-def test. 2. Switch from per-message args to UserPreference.
|
I think this PR has had enough review to be ready to use. I'll merge it and address any follow-up in subsequent PRs. |
Sorry, something went wrong.
|
Cool! |
Sorry, something went wrong.
This reverts commit ec77bff.
|
Docs can be updated now https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #35524 (80% solution)
This PR makes the parser parse @link tag and the language service offer symbols for entity names found at the beginning of those tags. Links are stored redundantly with comment text, so they're only used to provide (1) a span to an editor to format in some way (2) a symbol for the declaration of the link's target.
Future PRs
Open questions
Resolved questions