VscodeAdblockSyntax icon indicating copy to clipboard operation
VscodeAdblockSyntax copied to clipboard

Add support for web-based VSCode

Open scripthunter7 opened this issue 1 year ago • 1 comments

VSCode has a web version. A typical use case for this is github.dev, accessed by pressing the . hotkey in any repo. AGLint supports the browser environment, however, project scanning should be solved with another API, since it is not possible to use Node.js specific API in the browser environment. In the package.json file, we should specify a browser entry point in addition to main.

References:

  • GitHub dev: https://github.com/github/dev / https://github.dev
  • Documentation: https://code.visualstudio.com/api/extension-guides/web-extensions
  • Sample: https://github.com/microsoft/vscode-extension-samples/tree/main/lsp-web-extension-sample
  • Testing: https://github.com/microsoft/vscode-test-web

scripthunter7 avatar May 02 '23 07:05 scripthunter7

Currently, the extension cannot be used on github.dev, so we need at least a blank browser entry point to make the syntax highlighter work again (currently only the main entry point is specified).

image

scripthunter7 avatar May 02 '23 08:05 scripthunter7