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.

"Open a folder or workspace... (File -> Open Folder)" when "> Live Server: Open with Live Server" without a folder being open

See original GitHub issue

I’m submitting a…

[ ] Regression (a behavior that used to work and stopped working in a new release)
[X ] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[X ] Feature request
[ X] Documentation issue or request
[ ] Other: <!-- Please describe: -->

Current behavior

With a HTML page open, I hit Ctrl+Shift+P and type Live Server: Open with Live Server but I get a error saying Open a folder or workspace… (File -> Open Folder)

Expected behavior

Should open a standalone HTML file.

Environment

Browser: 

- [ ] Chrome (desktop) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [X ] IE version 11
- [ ] Edge version XX

For Tooling issues:

- Live Server: Latest 
- Platform: Windows
- Visual Studio Code: 1.29.1

Others

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:64

github_iconTop GitHub Comments

390reactions
Pihu01commented, Jun 6, 2019

Wow! I got the solution, whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click. thank you

57reactions
maks1981commented, Jan 9, 2019

Guys hello, i have the same problem but i could not solve it. When i press Open with live server below message appears “Open a folder or workspace… (File -> Open Folder)”, I opened any html file there many times but nothing about live server works ,guys how can i solve this?please any help Kind Regards

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is VS code live server opening a directory instead of ...
Once it points to the right file then simply right-click and select "open with LiveServer." It should work. Share.
Read more >
Multi-root Workspaces in Visual Studio Code
The File > Add Folder to Workspace command brings up an Open Folder dialog to select the new folder. Add Root Folder. Once...
Read more >
Changelog | Live Server | VSCode Extension - Ritwick Dey
(BTW, More update comming… :smile:) — [New Shortcut #17] Explorer Context Menu shortcut added. Just right click on a a HTML file &...
Read more >
Installing and Using VS Code Live Share
Live Share, Live Server, and Live Share Audio Instructions ... Open your project folder through VS Code. Open VS Code; Select File >...
Read more >
Visual Studio Code Live Server Not Working - freeCodeCamp
Then, reopen VSCode and try again – go to the HTML file you want to view, right click, and select "Open with Live...
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