Title: Function reference not counted in codelens when on same line as definition · Issue #1889 · PowerShell/PowerShellEditorServices · GitHub
Open Graph Title: Function reference not counted in codelens when on same line as definition · Issue #1889 · PowerShell/PowerShellEditorServices
X Title: Function reference not counted in codelens when on same line as definition · Issue #1889 · PowerShell/PowerShellEditorServices
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest version Search the existing issues. Steps to reproduce Create a function and invoke it on the same line. See image. Expected behavior Invocation is...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest version Search the existing issues. Steps to reproduce Create a function and invoke it on the same line. Se...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest version Search the existing issues. Steps to reproduce Create a function and invoke it on the same line. Se...
Opengraph URL: https://github.com/PowerShell/PowerShellEditorServices/issues/1889
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Function reference not counted in codelens when on same line as definition","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the latest version\r\n- [X] Search the existing issues.\r\n\r\n### Steps to reproduce\r\n\r\nCreate a function and invoke it on the same line. See image.\r\n\r\n### Expected behavior\r\n\r\n```console\r\nInvocation is counted in codelens\r\n```\r\n\r\n\r\n### Actual behavior\r\n\r\n```console\r\nInvocation isn't counted in codelense.\r\nGo to reference detects the invocation as expected.\r\n```\r\n\r\n\r\n### Error details\r\n\r\n_No response_\r\n\r\n### Environment data\r\n\r\n```PowerShell\r\nName Value\r\n---- -----\r\nPSVersion 7.2.6\r\nPSEdition Core\r\nGitCommitId 7.2.6\r\nOS Microsoft Windows 10.0.22000\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n\r\n\r\n### Version\r\n\r\n2022.8.2 preview\r\n\r\n### Visuals\r\n\r\n\r\n\r\nThis issue also means this will show 2 references in code lense because it counts the function-name in definition itself:\r\n\r\n```powershell\r\nfunction\r\nfuncNewline {\r\n 'hello'\r\n}\r\n\r\nfuncNewline\r\n```","author":{"url":"https://github.com/fflaten","@type":"Person","name":"fflaten"},"datePublished":"2022-08-14T17:23:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1889/PowerShellEditorServices/issues/1889"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:14bc3832-7cb7-d757-79d3-4852a45f7d1e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D762:3DC1F0:F41495:145200F:6A582A58 |
| html-safe-nonce | 206c789aa5814646527b9ee3abd06c5b913ac67b34b272fe8ddf64a94591085d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzYyOjNEQzFGMDpGNDE0OTU6MTQ1MjAwRjo2QTU4MkE1OCIsInZpc2l0b3JfaWQiOiI5MDE0MzQzOTY4OTgxNzg5MjcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 68aae9ee99c94d96f9921d0e616f4e01c3e49b668a6dc0fd6f5e4d7458813fbb |
| hovercard-subject-tag | issue:1338305963 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShellEditorServices/1889/issue_layout |
| twitter:image | https://opengraph.githubassets.com/062d5faf18590a5b92b17148787ffd8a65c3907f563c2065ccf393f59f4da4a1/PowerShell/PowerShellEditorServices/issues/1889 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/062d5faf18590a5b92b17148787ffd8a65c3907f563c2065ccf393f59f4da4a1/PowerShell/PowerShellEditorServices/issues/1889 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest version Search the existing issues. Steps to reproduce Create a function and invoke it on the same line. Se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fflaten |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShellEditorServices git https://github.com/PowerShell/PowerShellEditorServices.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 36031537 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShellEditorServices |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36031537 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShellEditorServices |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width