question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VS Code loading twice at workspace startup

See original GitHub issue

Describe the bug

When starting a che-code based workspace the IDE gets loaded a first time and shows an error message (Error loading webview) and after a few seconds gets reloaded:

https://user-images.githubusercontent.com/606959/168334199-bb99188d-51eb-414c-b5f7-f6d5eae7bc4e.mov

Che version

next (development version)

Steps to reproduce

Click here (access to Che dogfooding instance is required).

Expected behavior

VS Code is loaded once.

Runtime

OpenShift

Screenshots

No response

Installation method

OperatorHub

Release Notes Text

An extension was used to open the project folder at VS Code startup. The result was VS Code beeing loaded twice in the user browser. This is not necessary anymore as we use the VS Code startup parameter --default-folder that has been (re-)introduced recently.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
azatsarynnyycommented, Oct 19, 2022

Fixed by https://github.com/che-incubator/che-code/pull/131. VS Code is loaded x2 faster now.

1reaction
l0rdcommented, Sep 21, 2022

${PROJECT_SOURCE} should be resolved by the DevWorkspace operator

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode opens twice when starting Workspace · Issue #100276
Steps to Reproduce: Run clear/empty VSCode instance; Run Menu → File → Save Workspace As and save it as test.code-workspace ...
Read more >
Visual studio Code - prevent same file opening twice
It's happened a few times before that I've opened the same file twice and forgotten about it. Meaning I was editing the same...
Read more >
Multi-root Workspaces in Visual Studio Code
Opening workspace files. To reopen a Workspace, you can: Double-click the .code-workspace file in your platform's Explorer. Use the File > Open Workspace...
Read more >
Advanced Visual Studio Code for Python Developers
In this tutorial, you'll learn how you can configure, extend, and optimize Visual Studio Code for a more effective and productive Python development ......
Read more >
How To Enable Linting on Save with Visual Studio Code and ...
Learn how to lint your code on every file save using ESLint rules and VS Code settings.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found