You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Quick fix... > Annotate with type from JSDoc to annotate an arg that is described by keys it is annotated incorrectly:
Before Annotating
/** * Set the font parameter of the context with the object properties or with charStyle * @private * @param {CanvasRenderingContext2D} ctx Context to render on * @param {Object} [charStyle] object with font style properties * @param {String} [charStyle.fontFamily] Font Family * @param {Number} [charStyle.fontSize] Font size in pixels. ( without px suffix ) * @param {String} [charStyle.fontWeight] Font weight * @param {String} [charStyle.fontStyle] Font style (italic|normal) */_setTextStyles(ctx,charStyle,forMeasuring){
After Annotating
/** * Set the font parameter of the context with the object properties or with charStyle * @private * @param {CanvasRenderingContext2D} ctx Context to render on * @param {Object} [charStyle] object with font style properties * @param {String} [charStyle.fontFamily] Font Family * @param {Number} [charStyle.fontSize] Font size in pixels. ( without px suffix ) * @param {String} [charStyle.fontWeight] Font weight * @param {String} [charStyle.fontStyle] Font style (italic|normal) */_setTextStyles(ctx: CanvasRenderingContext2D,charStyle: * @param{String}[charStyle.fontFamily]FontFamily* @param{Number}[charStyle.fontSize]Fontsizeinpixels.(withoutpxsuffix)* @param{String}[charStyle.fontWeight]Fontweight* @param{String}[charStyle.fontStyle]Fontstyle(italic|normal),forMeasuring){
Expected
Should annotate the arg with an object populated with the keys described by JSDoc OR skip annotation
System Info
VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z)
OS version: Windows_NT x64 10.0.19043
Modes:
Sandboxed: No
System Info
Item
Value
CPUs
Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (4 x 2712)
The text was updated successfully, but these errors were encountered:
ShaMan123
changed the title
ts(80004): Quick fix... > Annotate with type from JSDoc
ts(80004): Quick fix... > Annotate with type from JSDoc :: object types
Nov 1, 2022
Uh oh!
There was an error while loading. Please reload this page.
Type: Bug
I love VSCode
Amazing DX
Actual
When using
Quick fix... > Annotate with type from JSDoc
to annotate an arg that is described by keys it is annotated incorrectly:Before Annotating
After Annotating
Expected
Should annotate the arg with an object populated with the keys described by JSDoc OR skip annotation
System Info
VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z)
OS version: Windows_NT x64 10.0.19043
Modes:
Sandboxed: No
System Info
canvas_oop_rasterization: disabled_off
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
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Extensions (32)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: