Git Product home page Git Product logo

vs-code-viewer-extension's Introduction

VS Code Viewer is an unofficial port of VS Code's editor component to a browser extension for automatically viewing programming language files and data files with VS Code's default language support.

Automatic configuration

  • Theme is inferred from your browser/OS theme.
  • Language is automatically inferred from content type and file extension.

Limitations

  • No extension support. Extensions can't be supported until Monaco supports extensions.
  • Allow scripts. The extension is served in an iframe within the parent page, so the page must allow scripts. Some sites (like GitHub) prevent viewing raw code with scripts for security reasons. See #32.

Contributing

  1. Building the package.
npm run clean
npm run build && npm run zip
  1. Side-load the package in edge://extensions/
  2. Test the package by opening https://reqbin.com/echo/get/json.

vs-code-viewer-extension's People

Contributors

chriskuech avatar dependabot[bot] avatar morgdenn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vs-code-viewer-extension's Issues

Support Google Chrome (and their extension store)

Currently the extension cannot be side-loaded in Google Chrome (unlike Microsoft Edge) because Chrome does not like the CSP in our manifest. As such, the Google Chrome extension review team cannot review our extension.

Currently, Chrome store is the only extension store supporting non-Google/non-Microsoft Chromium extensions, so this Issue blocks supporting browsers like Brave.

Automated testing

I'm not sure how to automated test this extension. I would be willing to invest more time in this if someone knows how to add snapshot tests for ensuring the extension loads correctly.

Support `sandbox`ed `Content-Security-Policy`s

Currently, this extension cannot run in GitHub and other sites that have sandbox in their Content-Security-Policy. However, bootstrap.ts does get executed--just not the iframed editor/main.ts. Potentially the logic from editor/main.ts can be moved to bootstrap.ts, but this is likely non-trivial.

Display issue

Hi,
Your extension is very helpful, but on latest Edge release the code displayed in very small window....
Could you please take a look what went wrong?
image

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.