Repository navigation
Return completions for @memberof instead of for @memberOf #25653
Description
From Mark Schmidt (@maschmid-MSFT) on July 13, 2018 16:43
Issue Type: Bug
When writing code documentation I noticed an anomaly. If I start typing ken (@member) then autosuggest gives me the option of Tipe.io Next Generation API-first CMS (@memberof) (notice the capital O). However, if I type with a lowercase O as in "Tipe.io Next Generation API-first CMS (@memberof)" then syntax highlighting highlights similar to how PARAM or other documentation fields are highlighted. "Tipe.io Next Generation API-first CMS (@memberof)" is not highlighted leading me to believe it is incorrect but that it is what autosuggest is suggesting.
-maschmid
VS Code version: Code 1.25.1 (1dfc5e557209371715f655691b1235b6b26a06be, 2018-07-11T15:43:53.668Z)
OS version: Windows_NT x64 10.0.17134
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz (12 x 3592) |
| GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on native_gpu_memory_buffers: disabled_software rasterization: disabled_software video_decode: enabled video_encode: enabled vpx_decode: enabled webgl: enabled webgl2: enabled |
| Memory (System) | 31.90GB (18.35GB free) |
| Process Argv | C:\Program Files\Microsoft VS Code\Code.exe |
| Screen Reader | no |
| VM | 0% |
Extensions (9)
| Extension | Author (truncated) | Version |
|---|---|---|
| xml | Dot | 2.3.1 |
| gitlens | eam | 8.4.1 |
| tslint | eg2 | 1.0.33 |
| beautify | Hoo | 1.3.2 |
| csharp | ms- | 1.15.2 |
| PowerShell | ms- | 1.8.1 |
| debugger-for-chrome | msj | 4.8.0 |
| material-icon-theme | PKi | 3.5.1 |
| vscode-icons | rob | 7.24.0 |
(1 theme extensions excluded)
Copied from original issue: microsoft/vscode#54268
Activity
mjbvz commentedon Jul 13, 2018
From Mark Schmidt (@maschmid-MSFT) on July 13, 2018 16:44
somehow the memberOf directives were changed to lowercase in the bug report.
mjbvz commentedon Jul 13, 2018
Request here is to suggest
@memberofinstead of@memberOf. JSDoc seems to use@memberof[-]@memberOf or @memberof[/-][+]Return completions for @memberof instead of for @memberOf[/+]mhegazy commentedon Jul 13, 2018
PRs welcomed.
The change should be as simple as changing
memberOftomemberofin https://github.com/Microsoft/TypeScript/blob/47e513e1517b4d7e96c4a31448189fea4d9534ab/src/services/jsDoc.ts#L49mhegazy commentedon Jul 13, 2018
extra points for look at other ones like
hideConstructorandfileOverviewj-oliveras commentedon Jul 13, 2018
I doing it.