Live-share: [VS Code] Live Share seems to be forcing the Explorer activity into view when it loads

Created on 6 Sep 2018  路  5Comments  路  Source: MicrosoftDocs/live-share

Product and Version [VS/VSCode]: Code - Insiders 1.27.0-insider (7b9afc4, 2018-09-03T09:14:29.879Z)
OS Version [macOS/Windows]: Windows_NT x64 10.0.17751
Live Share Extension Version: 0.3.623
Target Platform or Language [e.g. Node.js]: any

See https://github.com/Microsoft/vscode/issues/57980#issuecomment-419136305

Steps to Reproduce / Scenario:

  1. Open vscode to a folder and switch to the explorer activity
  2. Close vscode
  3. Open vscode to the same folder and while its loading switch to the source control activity
  4. :bug: While it will switch, once vscode loads fully it will switch back to the explorer activity.
acquisition and activation bug vscode

All 5 comments

@eamodio Interesting! We definitely need to look into this. I鈥檓 guessing this occurs as a side-effect of some init code, since we don鈥檛 intentionally modify the active activity (is there even an API to do that?).

@lostintangent I'm pretty sure it is because of this call:

vscode.commands.executeCommand('workbench.files.action.refreshFilesExplorer');

in fileSystemManager.[j|t]s

@eamodio Nice find 馃榿 That definitely looks like the culprit. We鈥檒l take a look at how to prevent this behavior, especially outside the context of an actual Live Share session.

This has been resolved in the latest Live Share release 馃憤

Thanks @lostintangent 馃槂

Was this page helpful?
0 / 5 - 0 ratings