I'm Dom. Check out my resume to find out more about me.
aberonni / open-in-vscode Goto Github PK
View Code? Open in Web Editor NEWOpen Github and Gitlab links in VSCode
License: MIT License
Open Github and Gitlab links in VSCode
License: MIT License
I'm Dom. Check out my resume to find out more about me.
In January 2023 Manifest v2 will stop working. This extension needs to be migrated before then to continue working.
There is an attempt in a branch (manifest-v3
) but it doesn't work as well as the v2 version. Namely, chrome.windows.create
doesn't seem to work as well as window.open
because it adds an extra prompt before opening VSCode. It seems that this happens because Chrome does not ask "always allow extension to open these kinds of links?" without window.open
.
asking for feature this as an add-on for firefox.
i intend on implementing this, what do you think?
As I understand it, currently, in order to use this extension there has to be an anchor tag on the current page pointing to a Github URL.
I wish that I could open the current page's URL as a file in VSCode by simply clicking the extension!
This could use the activeTab
permissions -- which appears to have been designed for this exact use case!
https://developer.chrome.com/docs/extensions/mv3/manifest/activeTab/#motivation
The activeTab permission gives an extension temporary access to the currently active tab when the user invokes the extension - for example by clicking its action. Access to the tab lasts while the user is on that page, and is revoked when the user navigates away or closes the tab.
...
Motivation
Consider a web clipping extension that has a action and context menu item. This extension may only really need to access tabs when its browser action is clicked, or when its context menu item is executed.
Without activeTab, this extension would need to request full, persistent access to every web site, just so that it could do its work if it happened to be called upon by the user. This is a lot of power to entrust to such a simple extension. And if the extension is ever compromised, the attacker gets access to everything the extension had.
In contrast, an extension with the activeTab permission only obtains access to a tab in response to an explicit user gesture. If the extension is compromised the attacker would need to wait for the user to invoke the extension before obtaining access. And that access only lasts until the tab is navigated or is closed.
what does it means?should I download source code first and then I configure the path of downloaded files?
Heya, thanks for this extension!
I’m trying to open some files on GitLab and it doesn’t fully work. Here’s an example:
If I try to open that file with the extension, I’m getting this error in VS Code:
Path does not exist
The path '~/dev/-/README.md:0:1' does not exist on this computer.
My base path is defined as '/Users/sebastian/dev'
(I also tried with a trailing slash: '/Users/sebastian/dev/'
). The problem seems to be that the repo name isn’t picked up and a dash is used instead (~/dev/-
instead of ~/dev/SwiftWebVC
).
I tried to open a .md file from github. But it fails to create a directory and store that file locally. So, I get an error that "Path does not exist".
When the dev setup is in remote through SSH, open in vscode doesn't work, it shows file path not exists.
Links with query params are not opened correctly.
Change regexp to capture and ignore query parameters.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.