Deprecated ruby methods do not have strikethrough
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 2k
- Forks
- 281
- Avg merge
- 2h 14m
- Merged PRs (30d)
- 6
Description
Operating System
macOS Sonoma 14.1.1
Ruby version
ruby 3.2.2 (2023-03-30 revision e51014f9c0) +YJIT [arm64-darwin22]
Project has a bundle
- Has bundle
Ruby version manager being used
rbenv
Description
Type: Bug
I tried two ways of deprecating a method in ruby, and neither shows up as a strikethrough
- heredoc
# @deprecated
def my_method
end
- Rail's Deprecation
def my_method
ActiveSupport::Deprecation.warn('my_method is deprecated, use X instead')
end
The expected output would be
company.~my_method~
VS Code version: Code 1.84.2 (Universal) (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:52:33.687Z)
OS version: Darwin arm64 23.1.0
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Apple M1 Pro (8 x 24) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled |
| Load (avg) | 6, 6, 7 |
| Memory (System) | 32.00GB (0.07GB free) |
| Process Argv | --crash-reporter-id 44edb388-cd1b-44e3-a0d8-121365572d89 |
| Screen Reader | no |
| VM | 0% |
Extensions (10)
| Extension | Author (truncated) | Version |
|---|---|---|
| vscode-eslint | dba | 2.4.2 |
| prettier-vscode | esb | 10.1.0 |
| workbench-vscode | gus | 0.0.4 |
| code-ownership-vscode | Gus | 0.0.7 |
| packwerk-vscode | Gus | 0.0.5 |
| vscode-docker | ms- | 1.28.0 |
| remote-containers | ms- | 0.321.0 |
| vscode-rubocop | rub | 0.7.0 |
| ruby-lsp | Sho | 0.4.19 |
| sorbet-vscode-extension | sor | 0.3.26 |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263cf:30880073
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
3biah626:30602489
f6dab269:30613381
a9j8j154:30646983
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
welcomedialogc:30887144
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30869155
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30871694
pythonregdiag2:30871582
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementst:30887150
dsvsc016:30886110
dsvsc017cf:30886113
dsvsc018:30886114
aa_t_chat:30882232
I tried disabling these extensions just to be safe...
code-ownership-vscode
packwerk-vscode
vscode-docker
sorbet-vscode-extension
vscode-rubocop
Originally posted https://github.com/microsoft/vscode/issues/198886
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two reported deprecation examples in VS Code with Ruby LSP, using the supplied Ruby snippets and checking whether company.~my_method~ is rendered. The payload names no repository files or tests; done means deprecated methods are shown with strikethrough without affecting other method rendering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100