Title: CodeLens range not following LSP-spec · Issue #1904 · PowerShell/PowerShellEditorServices · GitHub
Open Graph Title: CodeLens range not following LSP-spec · Issue #1904 · PowerShell/PowerShellEditorServices
X Title: CodeLens range not following LSP-spec · Issue #1904 · 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 Debug extension or see LSP log while it's looking up code lenses for a function definition, ...
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 Debug extension or see LSP log while it's looking up...
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 Debug extension or see LSP log while it's lookin...
Opengraph URL: https://github.com/PowerShell/PowerShellEditorServices/issues/1904
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CodeLens range not following LSP-spec","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\nDebug extension or see LSP log while it's looking up code lenses for a function definition, Pester block etc.\r\n\r\n### Expected behavior\r\n\r\n```console\r\ninterface CodeLens {\r\n\t/**\r\n\t * The range in which this code lens is valid. Should only span a single\r\n\t * line.\r\n\t */\r\n\trange: Range;\r\n...\r\n\r\nSource: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_codeLens\r\n```\r\n\r\n\r\n### Actual behavior\r\n\r\n```console\r\nRange is for full definition, spanning multiple lines.\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.5\r\nPSEdition Core\r\nGitCommitId 7.2.5\r\nOS Linux 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022\r\nPlatform Unix\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.3 preview\r\n\r\n### Visuals\r\n\r\n\r\n","author":{"url":"https://github.com/fflaten","@type":"Person","name":"fflaten"},"datePublished":"2022-08-21T13:58:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1904/PowerShellEditorServices/issues/1904"}
| 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:81a7c41b-8576-2843-a30f-b09d17bdf067 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92CA:111BB1:F216B9:15A537E:6A5A0335 |
| html-safe-nonce | 74153c93d6b1a795d78561e1a7328031e9d51b615744842ad2bb49ca61bde85a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkNBOjExMUJCMTpGMjE2Qjk6MTVBNTM3RTo2QTVBMDMzNSIsInZpc2l0b3JfaWQiOiI4ODg1NTU3ODI0MTI4MTU2NDY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a31ce0ceecd5ff2a9f63e7f3dfb3ca86594616619312a8fed91ee0c79d2fc478 |
| hovercard-subject-tag | issue:1345495594 |
| 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/1904/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f72e8ffa8bf00ff363c4a0ae0d1d850325a5822b5fa0a515bdce382f568a2632/PowerShell/PowerShellEditorServices/issues/1904 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f72e8ffa8bf00ff363c4a0ae0d1d850325a5822b5fa0a515bdce382f568a2632/PowerShell/PowerShellEditorServices/issues/1904 |
| 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 Debug extension or see LSP log while it's looking up... |
| 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 | 4d3f961cfc83a4348ee5be7691cf4ae3515aab3ef5200c13a7e41b048125fb61 |
| 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 | ac4d28603af300ac851b62521abb878ab5d3319a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width