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.

Go Live button does not appear if an HTML file hasn't been opened in the editor

See original GitHub issue

I’m submitting a…

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

Current behavior

The button to start the server only appears in the bottom-right of VSCode after the user has opened a HTML file in the editor. For example, if you are working on a SPA, the button not appearing while the user is editing a Javascript or Typescript file is annoying.

I noticed and confirmed in the FAQ that you can open the server with the alt+l -> alt+o chord, but some of the members on my team prefer the UI button.

After opening an HTML file once, the Go Live button appears in the bottom as it should.

Expected behavior

If there are live server settings in the Vscode settings file, the button should be displayed regardless of what file is currently being edited.

It used to be this way.

Environment

Browser:

- [ x] Chrome (desktop) version XX

For Tooling issues:

- Live Server: v5.7.4 
- Platform:  Windows
- Visual Studio Code: 1.63.2

Others

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MattBrooks95commented, Jan 26, 2022

I see. Adding typescript as an activation event would be appreciated, but would it be possible to make this configurable in some way?

Is there anything that we can do to make this button appear all the time, without waiting for an update?

I actually do not use VsCode myself, I am speaking on behalf of some of my teammates.

【Update】I was able to achieve the desired behavior by adding in “onLanguage:typescript” to the activationEvents section of the on-disk package.json file

0reactions
ritwickdeycommented, Mar 21, 2022

It’s fixed in last version

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Go Live" is no displayed. · Issue #160 · ritwickdey/vscode-live ...
I do not know the reason why the "Go Live" button is not displayed. It is displayed automatically while editing HTML files, right?...
Read more >
Live Server is Working but button is not showing on vscode?
Right click on the status bar at the bottom and make sure the Live Server (Extension) is selected. That will hide/unhide the 'Go...
Read more >
Chat widget not appearing on website pages
When you set up a live chat or bot, you might find that the chat widget isn't appearing on your website pages as...
Read more >
WordPress Changes Not Showing? Here's How to Fix ... - Kinsta
Let's get started! Table of Contents. How Long Does It Take for WordPress to Update Changes? Why Is My WordPress Site Not Updating ......
Read more >
My changes do not appear online, what can I do? - Elementor
Note: The first thing you should try is to open your website in Incognito Mode and see if your changes appear. If they...
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