koog1000 / vscode-fossil

Integrated Fossil source control for Visual Studio Code
Other
68 stars 8 forks source link

Feature request: integrate webui #41

Closed tidux closed 4 months ago

tidux commented 2 years ago

A button to launch the results of fossil ui in a simple webview would allow the entire Fossil workflow to be done without leaving VSCode.

senyai commented 2 years ago

Has anyone seen any extensions implementing something similar?

tidux commented 2 years ago

https://marketplace.visualstudio.com/items?itemName=ms-vscode.live-server does a dynamic webview connected to a backend server process.

senyai commented 2 years ago

Even though showing web ui in vscode is a nice idea, vscode itself wasn't designed to handle this case (yet). In command palette there's 'Simple Browser: show' command that never worked for me - just shows white screen for any url. The docs hint that website hosting shouldn't be done. Not only that, more questions must be answered: who shows browser ui (back/forward/url bar)? How to handle webview when it is hosted in a browser (code-serever)? How should it work in a remote-container case? I though there must be a way to do it, (ideally using cgi backend) but alas I haven't found it yet.

alensiljak commented 9 months ago

A button to launch the results of fossil ui in a simple webview would allow the entire Fossil workflow to be done without leaving VSCode.

Why not simply launch the default browser? What is the benefit of integrating this into a code editor vs using tools specialized for doing it?

senyai commented 4 months ago

Fossil does not allow the opening of its web pages within an iframe (X-Frame-Options: SAMEORIGIN) and that is why I'm closing this issue as "not planned". Use command palette to run "Fossil: Open web UI" command, it will execute fossil ui in a separate terminal, which is pretty convenient.