Skip to content

"delete all unused declarations" really only deletes declarations #24789

Description

@mjbvz

From alexfung888 on June 8, 2018 4:34

Issue Type: Bug

letuseless=true;useless=false;

VSCode notices that the variable is never read. It will offer to delete the declaration (the first line), but it won't delete the second line. Then user will need to hunt down all the updates, which are now flagged in red as cannot fine name 'useless'

VS Code version: Code 1.24.0 (6a6e02cef0f2122ee1469765b704faf5d0e0d859, 2018-06-06T17:35:40.560Z)
OS version: Windows_NT x64 10.0.17134

System Info
ItemValue
CPUsIntel(R) Core(TM) i7-3770 CPU @ 3.40GHz (8 x 3392)
GPU Status2d_canvas: enabled
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: disabled_software
video_decode: enabled
video_encode: enabled
vpx_decode: unavailable_software
webgl: enabled
webgl2: enabled
Memory (System)7.88GB (1.01GB free)
Process ArgvC:\Program Files\Microsoft VS Code\Code.exe
Screen Readerno
VM0%
Extensions (13)
ExtensionAuthor (truncated)Version
path-intellisensechr1.4.2
githistorydon0.4.1
EditorConfigEdi0.12.4
tslinteg21.0.30
Angular2joh6.1.1
azure-accountms-0.4.0
PowerShellms-1.7.0
debugger-for-chromemsj4.5.0
angular2-inlinenat0.0.17
vscode-dockerPet0.0.27
ejs-language-supportQas0.0.1
vscode-bolt-languagesmk0.0.4
autoimportste1.5.3

Copied from original issue: microsoft/vscode#51416

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: LS: Quick FixesEditor-provided fixes, often called code actions.FixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions