microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.16k stars 28.54k forks source link

VS Code Duplicate Icons (NOT DUPLICATE of existing Issue steps to replicate tested on separate mac with success) #113955

Closed Sergio16T closed 3 years ago

Sergio16T commented 3 years ago

Duplicate Icons in Dock On Mac OS (This is not an exact duplicate of existing issue - I read through those and they did not have steps to reproduce I was able to replicate it on older mac with same OS and VS code version) Something to do with Shell commands being installed with VS code 1 time in the downloads folder and then reinstalled again in the applications folder to enable the code . command from terminal .

Steps to Reproduce:

  1. VS code is installed in downloads folder
  2. Command P >Shell Command Install Code Command in Path
  3. Move VS Code from downloads folder to applications folder
  4. Code . command from terminal no longer works so I have to repeat step 2 to reinstall the Code Command in Path
  5. Run code . to open a directory with code in it
  6. Change directory to another code base and run code . from terminal again (this leads to duplicate icons in desktop)

Please help. Not sure how to fix not enjoying the duplicate VS code icons.

Screen Shot 2021-01-06 at 11 37 36 PM

Does this issue occur when all extensions are disabled?: Yes/No Yes

Similar to Issue #60579 but this includes steps to reproduce. Hoping to receive guidance if it's having to do with shell command perhaps I can fix it with some commands that I do not know. Otherwise I hope this report is helpful if it's a potential bug fix I imagine the steps to reproduce will help. Not sure it's OS mac bug or VS code bug.

rzhao271 commented 3 years ago

Seems like a duplicate to me, for example https://github.com/microsoft/vscode/issues/60579#issuecomment-732163120 also suggests running code . twice, and I think that's the main issue.

Are you unable to reproduce the issue if you only do steps 5 and 6?