Closed
Description
TS Template added by @mjbvz
TypeScript Version: 4.1.0-dev.20200811
Search Terms
- deprecated
- jsdoc
Repo code
from @IllusionMH
import { of, SchedulerLike } from 'rxjs';
declare const arr: number[];
declare const scheduler: SchedulerLike;
of(arr); // has @deprecated but only in comment
of(arr, scheduler); // marked as deprecated, has @deprecated in comment
Issue Type: Bug
In a Typescript source file, import 'of' from 'rxjs';
type a statement that includes 'of(someArray);
Hover near 'of', it shows a deprecation notice, however the actual deprecation is for a different overload of 'of'.
The same happens on any @deprecated annotations with multiple overloads
VS Code version: Code 1.47.3 (91899dcef7b8110878ea59626991a18c8a6a1b3e, 2020-07-23T13:08:29.692Z)
OS version: Darwin x64 19.6.0
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2700) |
GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: enabled webgl2: enabled |
Load (avg) | 16, 11, 8 |
Memory (System) | 16.00GB (7.20GB free) |
Process Argv | --disable-extensions |
Screen Reader | no |
VM | 0% |