Skip to content

Some JSDoc tags aren't properly caught in VS Code #31313

Closed

Description

@CG-Tespy

Issue Type: Bug

Create a new file, and copy-paste the following code:


/**
 * @namespace Foo
 */
var Foo;

/**
 * @type {number[]}
 */
var Working;

/**
 * @function Bar
 */
var Bar;

/**
 * @class Bar2
 */
var Bar2;

Now under that code in the file, try typing out the names of the variables. Intellisense will note the tags, but still classify the variables as undefined. That is, except for the var named "Working"; Intellisense sees that as the specified type, despite the actual value being undefined like the rest.

VS Code version: Code 1.33.1 (51b0b28134d51361cf996d2f0a1c698247aeabd8, 2019-04-11T08:27:14.102Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
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: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.86GB (7.42GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (16)
Extension Author (truncated) Version
shaderlabvscodefree aml 1.1.3
vscode-eslint dba 1.8.2
godot-tools gee 0.3.7
gc-excelviewer Gra 2.1.32
csharpextensions jch 1.3.0
vscode-csharp-snippets jor 0.3.1
docomment k-- 0.1.6
python ms- 2019.4.12954
cpptools ms- 0.23.0
csharp ms- 1.19.1
debugger-for-chrome msj 4.11.3
java red 0.44.0
vsc-nwjs rua 1.0.17
shader sle 1.1.4
unity-tools Tob 1.1.0
unity-debug Uni 2.7.2

Activity

  1. mjbvz commented on May 8, 2019

    @mjbvz
    Contributor

    Duplicate of #14233, #12681, and #14275

  2. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

DuplicateAn existing issue was already created

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions