Giter Site home page Giter Site logo

carlocardella / vscode-virtualrepos Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 1.07 MB

Virtual Repos is a Visual Studio Code extension that allows to open and edit a remote repository (e.g. on GitHub) without cloning, committing or pushing your changes. It all happens automatically

License: MIT License

TypeScript 95.38% JavaScript 4.62%
vscode-extension

vscode-virtualrepos's People

Contributors

carlocardella avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

vscode-virtualrepos's Issues

Explore push on inverval

Similar to pull on interval, explore push changes on a configurable interval rather than on file save.

Delete folder error

2022-11-29 7:5:58:754 - Error: Error reading repo TestRepo: folder is not a file

Handle multiple repos with the same name

Fork a repo then open both the fork and upstream. Both repos will be listed with the same name:

  1. It is not clear which repo one is viewing and potentially modifying (add/remove/update files etc.)
  2. Virtual File System lookup would fail since it would return multiple files

Refresh repo TreeView slow on the web

Files are created or deleted as expected, the TreeView is refreshed (no errors, the refresh can be seen in the Output panel) but the TreeView content does not change. It takes almost a minute for the new file to appear or for a deleted file to disappear.
Browser caching?

The problem affects only the web extension, the desktop version works fine.

Explore drag and drop

  • Reoder repos list
  • Mode files to a different folder (within the same repo, if writable)
  • Move files across repos (assuming both are writable)
  • Add files through drag and drop from the system explorer window

Delete subfolder

Recursively delete a folder in the repo root works, but the same method does not work for a subfolder. No error thrown, GitHub apparently just ignore the deletion (tested with simple Postman calls, same result)

Error when switching tab

2022-12-28 10:44:43.746 [error] The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined: TypeError: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
	at new NodeError (node:internal/errors:371:5)
	at Function.from (node:buffer:325:9)
	at p.getRepoFileContent (c:\Users\carloc\.vscode-insiders\extensions\carlocardella.vscode-virtualrepos-0.0.26\dist\extension-node.js:2:119974)
	at n.readFile (c:\Users\carloc\.vscode-insiders\extensions\carlocardella.vscode-virtualrepos-0.0.26\dist\extension-node.js:2:103337)
	at y.$readFile (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:97:22312)
	at u.N (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:105:11223)
	at u.M (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:105:10941)
	at u.H (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:105:10034)
	at u.G (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:105:9015)
	at c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:105:7803
	at d.invoke (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:63:145)
	at w.deliver (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:63:2029)
	at m.fire (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:63:1667)
	at b.fire (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:72:14899)
	at c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:121:15810
	at d.invoke (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:63:145)
	at w.deliver (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:63:2029)
	at m.fire (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:63:1667)
	at b.fire (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:72:14899)
	at MessagePortMain.<anonymous> (c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:121:13935)
	at MessagePortMain.emit (node:events:526:28)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:5:364)

Improve startup performance

Starred repositories call can take a long time to return if a user has a lot of them.
It might be worth caching the list in globalState and update it asynchronously after the extension is fully loaded

Upload multiple files

Error: Error reading repo FoamTest: is at 4658c5c0167b345c0b589b90666275b799b018e8 but expected 156f1c15e7966823f2b748085d8ea8ff1be72301

Error when creating new file under a folder (/folder/newfile.md)

  • Backslash (\) is not a valid character, should not be accepted
    Forward slash (/) is the path separator to use
  • Using forward slash the new file is created properly but cannot be opened in the editor, even if the resource uri seems correct:
2022-12-31 9:49:58:100 - Info: File journal/pippo/pluto.md created or updated
2022-12-31 9:49:58:100 - Info: Refreshing repos
2022-12-31 9:49:58:186 - Debug: waiting
2022-12-31 9:49:58:686 - Debug: waiting
2022-12-31 9:49:59:189 - Debug: waiting
2022-12-31 9:49:59:690 - Debug: Open github-repo://carlocardella/reponame/pippo/pluto.md

Refreshing the treeview does not help, the extension (VSCode) must be reloaded. The problem may be due to an invalid object in our local store

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.