Why can not I see my codes result lively in VSCODE? Live server has problem I think - visual-studio-code

I have installed extensions offline through VSIX file format, because I could not download online due to an unexpected error. My problem is when I would type codes, the result would not appear in browser as live, and if I want see my result I must either close and reopen my browser or switch live server off then on
I have done only either close and reopen my browser or switch live server off then on

Related

Live server vs code is not working and any of the solutions work

I have downloaded live server but it is not working. It doesn't show me any error messages like it does to others. I tried reinstalling it, I tried reinstalling vs code too, but nothing happened. I see from people which have it working that it displays on the tab of the IDE but for me it’s not there. I try to open it with right-clicking on one of the HTML files but nothing happens. I also checked my default browser and added it to the json.file.
I just decided to install an earlier version of the live server extension and it worked.

How to open browser from vscode api, close it after response received and then return back to vscode application

I am developing a plugin in VSCODE and here is what I am trying to figure out
From within plugin, open the browser with a url, do a sign in and get the response in vscode plugin and then close the browser.
I could do this by using
vscode.window.createWebviewPanel - This will need a lot of duplicate code to be done on vscode plugin side.
OR could try below
Use open lib npm - open the browser, but the challenge is I am not sure on how to close the browser and send response to VSOCODE plugin. Is it even possible in vs code ?

github login and sync failure in updated vscode linux version

recently I installed a fresh version of the KDE neon user edition and I updated it and works fine.
I also installed the vscode Debian version and nothing is wrong.
but when I want to login with my GitHub account in vscode for configs sync it opens a firefox tab that I log in to my GitHub and authorizes the vscode and it succeeds and gets back to vscode and instead of signing in and syncing the configs it opens an empty unsaved file named something like this:
did-authenticate\?windowid\=1\&code\=6beea2fcb8a47e0ea49e\&state\=2efc5efd-9c68-4735-a4a0-fd690dd7aec0
in this path : "~/vscode:/vscode.GitHub-authentication"
and after a few seconds canceled notification appears.
I've installed vscode for Debian version 1.63.2 which people in this Github issue had the same problem in version 1.62.2 and they are saying that this problem is fixed for them in version 1.62.3.
I don't have this problem with the Microsoft account sign-in.
what am I missing?
Update:
for testing, I tried to install an extension for vscode and I pasted the URL with vscode protocol in a web browser like this (vscode:extension/GitHub.vscode-pull-request-github), and instead of opening the vscode extensions tab, it goes back to vscode and opens an empty file in the same directory ("~/vscode:/vscode.GitHub-authentication").
so this is vscodes fault that cant handle the vscode: URLs.
I found out what the problem is but I don't know how to fix it
for the record I've updated the vscode today to the 1.64.1 version and still have the problem.
enter image description here
First, you need to get the GitHub Pull Requests and Issues and GitHub extensions together. Then go to the section specified in the photo and give the details of the account and repository you are using. And then it will be fixed.
I ran into this issue myself and discovered that it's because the VS Code command-line application isn't designed to handle URLs, but local file paths. VS Code registers the vscode:// URL scheme with XDG using an appropriate *.desktop file and these URLs should be opened using the command-line program xdg-open. In Firefox, if you have not yet set a default application for vscode:// URLs, then it will ask you for a program to open it with, select /usr/bin/xdg-open. If you have already set it to a different default, you can change it as follows: go to the Menu -> Settings -> General -> Applications -> vscode -> Use other... -> Select /usr/bin/xdg-open as the program for vscode.
With the default for vscode:// URLs set to use xdg-open, then any future integration with VS Code should work naturally to open it as expected.

Failed to open browser while using line server in VScode

I am getting "Server is started at 5500 but failed to open browser. Try to change the CustomBrowser settings." in VScode while using line server. I have tried to change default settings but i still can't solve it.
In VScode go to extension (ctrl+shift+x) and search for live server, on live server go to manage > extension setting, then look for Live Server > Settings:Use Browser Preview section in the settings.
If the checkbox is checked, uncheck it.

How to stop VS Code from opening browser

I'm running a local server on localhost through VS Code using nodemon on my mac. So everytime I save, the server restarts and updates. My problem is that VS Code always switches window to my browser when the server restarts, so my flow gets interrupted. There must be a way to prohibit VS Code from opening my browser, or at least not doing it at every restart of server?
Look into script your nodemon runs when it's watcher detects change and locate call that starts the browser there: presumably you have one in your "start server" script.
It would probably involve your local server address and call like require('child_process').exec(); see How to use nodejs to open default browser and navigate to a specific URL.
I kind of solved it by adding "BROWSER=none" so my start script (which otherwise only said "nodemon server.js"). But then the browser won't refresh automatically and I'm still curious what's causing it.