CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 10:53:46 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/"e70e46c7518fcae451497d09bd3ae9c6"
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=gjHMKjny1Qz8bslaEe3WrKs9I3vfYfgnEqF8pKFh2jMN%2FBLhCUABuGi6ByPYPqWaXjOMRdaX5Ffwji18s%2B9M7XP2%2F3H1p3FOPBpLt%2FndDAWm1PaIBKkFbmVJeKVM9eP5szzikuhLaCc0s2SRuvwiKTpgS%2Buu0WVGJbJ8QmP128Ac0I30HE1KnlR6pMOI8ZQkAgNJ6bqLeNL%2F8ofiVZH7aFvbgxegdKW9QaAn5ewJs0UC5cKucWDzWMGPPXmDIfOcTcNEaNs4QmoutO84McUEOw%3D%3D--AcPb7H29AHI93T6q--foV4%2FsrPiocBsau1bVXeUg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.939293550.1753268024; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 10:53:44 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 10:53:44 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D6CA:3B93B0:9CD2AB:BCE289:6880BF38
Enable method signature completion for object literals (#48168) · microsoft/TypeScript@e25f04a · GitHub
Copy file name to clipboardExpand all lines: src/harness/fourslashImpl.ts
Copy file name to clipboardExpand all lines: src/harness/fourslashInterfaceImpl.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit e25f04a
authored
Enable method signature completion for object literals (#48168)
* skeleton of new feature
* working prototype
* refactor print and format code into its own function
* minor changes; don't support overloads
* have two completion entries
* get rid of accessor support
* add snippet support
* add formatting
* add trailing comma
* add sourcedisplay
* support auto-imports via completion details
* add user preference option and fix ordering of entries
* cleanup
* don't return code actions for no import fixes
* make sortText lower priority for snippets
* get rid of flag
* use optional member sort text
* update baselines
* don't collect method symbols if insert text is not supported
* remove comment
* return undefined if type is not function type
* only slice if needed
* use union reduction; more test cases
* WIP: modify sort text system
* Improve new sort text system
* add signature and union type check
* re-add flag
* fix tests
* rename sort text helper
* fix test and code for union case
* add new flag to protocol type
* fix spaces
* CR: minor fixes
* CR: more fixes
* CR: restructure main flow
* minor fix1 parent 7ec7d6d commit e25f04aCopy full SHA for e25f04a
File tree
Expand file treeCollapse file tree
31 files changed
+928
-243
lines changedFilter options
- src
- compiler
- harness
- server
- services
- tests
- baselines/reference
- api
- cases/fourslash
Expand file treeCollapse file tree
31 files changed
+928
-243
lines changed+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8752 | 8752 |
| |
8753 | 8753 |
| |
8754 | 8754 |
| |
| 8755 | + | |
8755 | 8756 |
| |
8756 | 8757 |
| |
8757 | 8758 |
| |
|
src/harness/fourslashImpl.ts
Copy file name to clipboardExpand all lines: src/harness/fourslashImpl.ts+12-12Lines changed: 12 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
960 | 960 |
| |
961 | 961 |
| |
962 | 962 |
| |
963 |
| - | |
| 963 | + | |
964 | 964 |
| |
965 | 965 |
| |
966 | 966 |
| |
967 | 967 |
| |
968 | 968 |
| |
969 | 969 |
| |
970 | 970 |
| |
971 |
| - | |
| 971 | + | |
972 | 972 |
| |
973 | 973 |
| |
974 | 974 |
| |
975 | 975 |
| |
976 |
| - | |
977 |
| - | |
| 976 | + | |
| 977 | + | |
978 | 978 |
| |
979 | 979 |
| |
980 |
| - | |
| 980 | + | |
981 | 981 |
| |
982 | 982 |
| |
983 |
| - | |
| 983 | + | |
984 | 984 |
| |
985 | 985 |
| |
986 |
| - | |
987 |
| - | |
988 |
| - | |
989 |
| - | |
990 |
| - | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
991 | 991 |
| |
992 |
| - | |
| 992 | + | |
993 | 993 |
| |
994 | 994 |
| |
995 | 995 |
| |
|
src/harness/fourslashInterfaceImpl.ts
Copy file name to clipboardExpand all lines: src/harness/fourslashInterfaceImpl.ts+30-3Lines changed: 30 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
950 | 950 |
| |
951 | 951 |
| |
952 | 952 |
| |
953 |
| - | |
| 953 | + | |
| 954 | + | |
954 | 955 |
| |
955 | 956 |
| |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
956 | 983 |
| |
957 | 984 |
| |
958 | 985 |
| |
| |||
963 | 990 |
| |
964 | 991 |
| |
965 | 992 |
| |
966 |
| - | |
| 993 | + | |
967 | 994 |
| |
968 | 995 |
| |
969 | 996 |
| |
| |||
992 | 1019 |
| |
993 | 1020 |
| |
994 | 1021 |
| |
995 |
| - | |
| 1022 | + | |
996 | 1023 |
| |
997 | 1024 |
| |
998 | 1025 |
| |
|
+7Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3406 | 3406 |
| |
3407 | 3407 |
| |
3408 | 3408 |
| |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
3409 | 3416 |
| |
3410 | 3417 |
| |
3411 | 3418 |
| |
|
You can’t perform that action at this time.
0 commit comments