Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
CG-Tespy opened this issue May 8, 2019 · 1 comment
Closed

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

CG-Tespy opened this issue May 8, 2019 · 1 comment
Assignees
Labels
Duplicate An existing issue was already created

Comments

@CG-Tespy
Copy link

CG-Tespy commented May 8, 2019

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
@mjbvz mjbvz transferred this issue from microsoft/vscode May 8, 2019
@mjbvz
Copy link
Contributor

mjbvz commented May 8, 2019

Duplicate of #14233, #12681, and #14275

@mjbvz mjbvz closed this as completed May 8, 2019
@mjbvz mjbvz added the Duplicate An existing issue was already created label May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants