CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 02:07:35 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/microsoft/TypeScript.git
etag: W/"34c3942b659dc47d8f6f72ebbfe0ab6e"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=85cS%2Fl2WzvqOxxaz%2Bjx7osb9v%2F%2F7hiTZApa7FdtMKMLz%2F0vMlMStLy%2BVpw1O%2BrsR9Ejfmr6NsHdmXEkBPUlSWekE8lPWeCfkcvos5awoAtGV%2Be4l6udHvRpn08EB56JGSNXI9N2QY9zK0iC1TTayufJduLbvKGcRgwIWZ9eSuZ0djtuHugJULnSXL3wXTjBrnTXfnlUx40JVKgsKNe1DF6fLBbi4IXFJ5Uw8I32RXvxTA241jitRw%2BCgOl%2FSUdXKBX35s3A6kfV12u5gYWbdcw%3D%3D--IQjxDK4zODBqVSWN--VtHR%2FLS7bIe484sKT%2BsxxQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1586786134.1752890853; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 02:07:33 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 02:07:33 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A1E2:29B498:29BB5F:3A9263:687AFDE5
Editor support for link tag (#41877) · microsoft/TypeScript@ec77bff · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/compiler/factory/nodeFactory.ts
Copy file name to clipboardExpand all lines: src/compiler/factory/nodeTests.ts
Copy file name to clipboardExpand all lines: src/compiler/utilitiesPublic.ts
Copy file name to clipboardExpand all lines: src/deprecatedCompat/deprecations.ts
Copy file name to clipboardExpand all lines: src/harness/fourslashImpl.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit ec77bff
authored
Editor support for link tag (#41877)
* Initial scribbles
* Compiles but provides spans instead of location pairs
Probably need to fork the services/server types and provide a conversion
with Session.toFileSpan. Not sure where to put the conversion.
* Switch to DocumentSpan
In theory this is already better supported, but not sure practise bears
that out.
* Builds w/protocol types + conversions
* cleanup:better names and scrub TODOs
* fix test harness too
* Misc
1. Simplify protocol after talking to @mjbvz.
2. Add more tests.
3. Initial notes about where to add parsing.
* Parse and store links in the compiler
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.
* more tests and some fixes
* Fix other failing tests
* fix bad merge
* polish parser
* improve names and array types
* slight tweaks
* remove some done TODOs
* more tests + resulting fixes
* add+fix cross-module tests
* Support `@see {@link`
Plus find-all-refs support equivalent to @see's.
* add server test
* Make comments actually part of the AST
* Add span for link.name in language service/protocol
* Make checker optional in getJSDocTags
Also change to JSDocCommentText from JSDocCommentComment
* Use getTokenValue instead of getTokenText
Measure twice, slice once
* Add missing support for top-level links
The language service and protocol were missing support for top-level
links. This commit adds that plumbing.
* add string back to comment type in node constructors
* Full parse of link tags and jsdoc comment text
- Doesn't pass fourslash yet, I'm going to switch to baselines for
failures there.
- Still needs some work on the protocol to convert file+offset to
file+line+offset.
* fix lint
* Fix missing newlines in inferFromUsage codefix
* Parse jsdoc comments as text node/link array
And switch to line+character offsets in the protocol
* Fix fourslash tests
Mostly ones that can't be baselined, but I switched a couple more over
to baselines
* Improve types and documentation
* Test+fix @link emit, scrub other TODOs
* update API baselines
* test that goto-def works with @link
* Split link displaypart into 3
One for link prefix and suffix, one for link name, and one for link
text.
* update baselines
* Provide JSDocTagInfo.text: string to full clients by default
Instead of upgrading them to displayparts.
* Real server tests
* Disambiguate {@link} and @param x {type}
They are ambiguous; previously the parser preferred the type
interpretation, but will now look ahead and parse links instead when the
prefix is `{@link`.
* Add explanatory comment in test
* fix location in richResponse in protocol
* update API baseline
* Address PR comments
1. Add a cross-file goto-def test.
2. Switch from per-message args to UserPreference.
* use arraysEqual from core1 parent 3da5982 commit ec77bffCopy full SHA for ec77bff
File tree
Expand file treeCollapse file tree
155 files changed
+20456
-1602
lines changedFilter options
- src
- compiler
- factory
- deprecatedCompat
- harness
- server
- services
- codefixes
- testRunner
- unittests
- tsserver
- tests
- baselines/reference
- JSDocParsing
- api
- cases
- compiler
- conformance/jsdoc
- fourslash
- server
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
155 files changed
+20456
-1602
lines changed+6-2Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5187 | 5187 |
| |
5188 | 5188 |
| |
5189 | 5189 |
| |
5190 |
| - | |
| 5190 | + | |
5191 | 5191 |
| |
5192 | 5192 |
| |
5193 | 5193 |
| |
| |||
6702 | 6702 |
| |
6703 | 6703 |
| |
6704 | 6704 |
| |
6705 |
| - | |
| 6705 | + | |
6706 | 6706 |
| |
6707 | 6707 |
| |
6708 | 6708 |
| |
| |||
38577 | 38577 |
| |
38578 | 38578 |
| |
38579 | 38579 |
| |
| 38580 | + | |
| 38581 | + | |
| 38582 | + | |
| 38583 | + | |
38580 | 38584 |
| |
38581 | 38585 |
| |
38582 | 38586 |
| |
|
+14-10Lines changed: 14 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3565 | 3565 |
| |
3566 | 3566 |
| |
3567 | 3567 |
| |
3568 |
| - | |
3569 |
| - | |
3570 |
| - | |
3571 |
| - | |
3572 |
| - | |
3573 |
| - | |
3574 |
| - | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
| 3571 | + | |
| 3572 | + | |
| 3573 | + | |
| 3574 | + | |
| 3575 | + | |
| 3576 | + | |
| 3577 | + | |
3575 | 3578 |
| |
3576 | 3579 |
| |
3577 | 3580 |
| |
| |||
3704 | 3707 |
| |
3705 | 3708 |
| |
3706 | 3709 |
| |
3707 |
| - | |
3708 |
| - | |
| 3710 | + | |
| 3711 | + | |
| 3712 | + | |
3709 | 3713 |
| |
3710 |
| - | |
| 3714 | + | |
3711 | 3715 |
| |
3712 | 3716 |
| |
3713 | 3717 |
| |
|
src/compiler/factory/nodeFactory.ts
Copy file name to clipboardExpand all lines: src/compiler/factory/nodeFactory.ts+64-31Lines changed: 64 additions & 31 deletions
Large diffs are not rendered by default.
src/compiler/factory/nodeTests.ts
Copy file name to clipboardExpand all lines: src/compiler/factory/nodeTests.ts+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
770 | 770 |
| |
771 | 771 |
| |
772 | 772 |
| |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
773 | 777 |
| |
774 | 778 |
| |
775 | 779 |
| |
|
+130-62Lines changed: 130 additions & 62 deletions
Large diffs are not rendered by default.
+61-44Lines changed: 61 additions & 44 deletions
Large diffs are not rendered by default.
src/compiler/utilitiesPublic.ts
Copy file name to clipboardExpand all lines: src/compiler/utilitiesPublic.ts+12-1Lines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
896 | 896 |
| |
897 | 897 |
| |
898 | 898 |
| |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
899 | 904 |
| |
900 | 905 |
| |
901 | 906 |
| |
| |||
1860 | 1865 |
| |
1861 | 1866 |
| |
1862 | 1867 |
| |
1863 |
| - | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
1864 | 1875 |
| |
1865 | 1876 |
| |
1866 | 1877 |
| |
|
src/deprecatedCompat/deprecations.ts
Copy file name to clipboardExpand all lines: src/deprecatedCompat/deprecations.ts+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1229 | 1229 |
| |
1230 | 1230 |
| |
1231 | 1231 |
| |
1232 |
| - | |
| 1232 | + | |
1233 | 1233 |
| |
1234 | 1234 |
| |
1235 | 1235 |
| |
| |||
1374 | 1374 |
| |
1375 | 1375 |
| |
1376 | 1376 |
| |
1377 |
| - | |
| 1377 | + |
+12-4Lines changed: 12 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
178 |
| - | |
179 |
| - | |
| 178 | + | |
| 179 | + | |
180 | 180 |
| |
181 | 181 |
| |
182 | 182 |
| |
| |||
536 | 536 |
| |
537 | 537 |
| |
538 | 538 |
| |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
539 | 546 |
| |
540 | 547 |
| |
541 | 548 |
| |
| |||
554 | 561 |
| |
555 | 562 |
| |
556 | 563 |
| |
557 |
| - | |
| 564 | + | |
558 | 565 |
| |
559 |
| - | |
| 566 | + | |
| 567 | + | |
560 | 568 |
| |
561 | 569 |
| |
562 | 570 |
| |
|
src/harness/fourslashImpl.ts
Copy file name to clipboardExpand all lines: src/harness/fourslashImpl.ts+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1583 | 1583 |
| |
1584 | 1584 |
| |
1585 | 1585 |
| |
1586 |
| - | |
| 1586 | + | |
1587 | 1587 |
| |
1588 | 1588 |
| |
1589 | 1589 |
| |
|
You can’t perform that action at this time.
0 commit comments