Title: no unused binding warnings in watch or test expressions · Issue #6124 · unisonweb/unison · GitHub
Open Graph Title: no unused binding warnings in watch or test expressions · Issue #6124 · unisonweb/unison
X Title: no unused binding warnings in watch or test expressions · Issue #6124 · unisonweb/unison
Description: Describe and demonstrate the bug The LSP unused binding diagnostic are super helpful, but they don't trigger when the unused binding is within a watch or test expression. I could see an argument for not including these in watch expressio...
Open Graph Description: Describe and demonstrate the bug The LSP unused binding diagnostic are super helpful, but they don't trigger when the unused binding is within a watch or test expression. I could see an argument fo...
X Description: Describe and demonstrate the bug The LSP unused binding diagnostic are super helpful, but they don't trigger when the unused binding is within a watch or test expression. I could see an argumen...
Opengraph URL: https://github.com/unisonweb/unison/issues/6124
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"no unused binding warnings in watch or test expressions","articleBody":"**Describe and demonstrate the bug**\n\nThe LSP unused binding diagnostic are super helpful, but they don't trigger when the unused binding is within a watch or test expression.\n\nI could see an argument for not including these in watch expressions, since they are often ephemeral code that isn't going to make it into \"production\".\n\nBut I think that they should probably trigger for test expressions. Tests in the project are pretty-printed with the `test\u003e` prefix, and if you have an unused binding in your test you might not be testing the thing that you intend to test.\n\n```\n\u003e let\n x = 3\n [Ok \"passed\"]\n\ntest\u003e footest =\n x = 3\n [Ok \"passed\"]\n\nfooNotTest =\n x = 3 ■ Unused binding \"x\". Use the binding, or prefix it with an _ to dismiss this warning.\n [Ok \"passed\"]\n```\n\n\u003cimg width=\"1213\" height=\"337\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/9ec3c7e5-7d05-4539-9d72-bb1666a49783\" /\u003e\n\n**Environment (please complete the following information):**\n - `ucm --version` a88caa264","author":{"url":"https://github.com/ceedubs","@type":"Person","name":"ceedubs"},"datePublished":"2026-01-15T21:30:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6124/unison/issues/6124"}
| 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:9771daad-da59-70e0-69ee-8b05e9a05929 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C734:6E8AA:3982346:4B8706E:6992DF89 |
| html-safe-nonce | a4aa9d2cc121ced27280ebd2dd121e4cce68f647eadbb1708e1070107baee88d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzM0OjZFOEFBOjM5ODIzNDY6NEI4NzA2RTo2OTkyREY4OSIsInZpc2l0b3JfaWQiOiI5MTQ1OTY3NTM2NzIyMDc1NTI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3432d8df2f26d5f9daf6a0347822949cba6f055f7775f267120534581ff1013f |
| hovercard-subject-tag | issue:3819246577 |
| 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/unisonweb/unison/6124/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea7aef0b3dd5d0f183e37bb4713de55ea55f38d12a6b50f355c055f5e4f56e7b/unisonweb/unison/issues/6124 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea7aef0b3dd5d0f183e37bb4713de55ea55f38d12a6b50f355c055f5e4f56e7b/unisonweb/unison/issues/6124 |
| og:image:alt | Describe and demonstrate the bug The LSP unused binding diagnostic are super helpful, but they don't trigger when the unused binding is within a watch or test expression. I could see an argument fo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ceedubs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/unisonweb/unison git https://github.com/unisonweb/unison.git |
| octolytics-dimension-user_id | 7087133 |
| octolytics-dimension-user_login | unisonweb |
| octolytics-dimension-repository_id | 35164952 |
| octolytics-dimension-repository_nwo | unisonweb/unison |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35164952 |
| octolytics-dimension-repository_network_root_nwo | unisonweb/unison |
| 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 | 84dcb133269e3cfe6e0296cc85fbacb92cae92bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width