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

Forced strikethrough on the word 'name' in console.log statement #117392

Closed
RyanFoli opened this issue Feb 23, 2021 · 3 comments
Closed

Forced strikethrough on the word 'name' in console.log statement #117392

RyanFoli opened this issue Feb 23, 2021 · 3 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@RyanFoli
Copy link

RyanFoli commented Feb 23, 2021

BUG

When I type this code into MY vs code:

const name = 'Roger'
console.log(name)

When I type that code into MY vs code, vs code forces the word 'name' in the console.log statement to have a strike through. It only happens with the word 'name'. I can type any other word and no strikethrough.

Now, even though this happens, it still prints the output fine. So the output for the above code in my vs code is:

Roger

So the statement prints to the console fine, but I dont understand why only MY vs code is bahaving this way. I am the only student in the class with this problem and the teacher was unable to reproduce my problem in their mac vs code.

When I put the cursor on the word 'name' with the strikethrough in the console.log statement, intellisense says:

const name: void
@deprecated
'name' is deprecated ts (6385)
no quick fixes available

UPDATE: I have no extensions on my vs code

VS Code version: Code 1.53.2 (622cb03, 2021-02-11T11:48:04.245Z)
OS version: Windows_NT x64 10.0.19042

System Info
Item Value
CPUs Intel(R) Core(TM) i3-7020U CPU @ 2.30GHz (4 x 2304)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.84GB (3.34GB free)
Process Argv --crash-reporter-id 114602c5-cb15-4f19-beaa-bd8f41681a75
Screen Reader no
VM 0%
Extensions: none
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt617cf:30253240
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244cf:30256637
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30259475

@gjsjohnmurray
Copy link
Contributor

Try using the Extension Bisect command to investigate whether the problem is being caused by one of your extensions.

@IllusionMH
Copy link
Contributor

/duplicate of #114725 and related to microsoft/TypeScript#18433

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants
@IllusionMH @gjsjohnmurray @RyanFoli and others