question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable Angular Snippets to run on VS Code on the web

See original GitHub issue

👋 I’m Harald, a PM from the VS Code team, and we recently announced VS Code for the Web at https://vscode.dev/, which provides a free, zero-install Microsoft Visual Studio Code experience running entirely in your browser. You can learn more here.

We’d like to ensure that Angular Snippets can run in the web, and we have a guide for enabling extensions for the web here. As a couple of highlights:

  • In VS Code for the Web, both the UI and extension host run inside the browser.
  • A web extension is structured like a regular extension, but with a different main file: it’s defined by the browser property
  • Access to workspace files needs to go through the VS Code file system API accessible at vscode.workspace.fs
  • There are currently three ways to test a web extension

Feel free to reach out to me if you have questions or if I can help somehow. Thank you

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aeschlicommented, Mar 9, 2022

If the extension has only snippets (using the contribution point contributes.snippets) (or other declarative contributions) it works as both a web and node extension, no changes needed. If the extension has code (a main entry point in package.json) it also needs a browser entry point to work in a web extension host. It can also point to an empty stub.

0reactions
johnpapacommented, Mar 9, 2022

ah. I had forgotten that I have code to create a file in here. I can remove that, thanks.

My original question remains:

How do you enable an extension for the web, when the extension is just snippets? There is no “web” folder in my out / dist folder. The docs say I need this setting, but I see other snippet extensions are available in vscode.dev but they do not have the “browser” set in their package.json files

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular TypeScript Tutorial in Visual Studio Code
Angular TypeScript tutorial showing IntelliSense, debugging, and code navigation support in the Visual Studio Code editor.
Read more >
VS Code Angular Snippets - John Papa
Alternatively, press Ctrl + Space (Windows, Linux) or Cmd + Space (OSX) to activate snippets from within the editor. Use Extension. Tweet ...
Read more >
Boosting Your Workflow with Angular 5 Snippets and VS Code
In this article, we'll focus on how to use Angular 5 snippets in Visual Studio Code to improve our workflow. We'll first start...
Read more >
Building VSCode Extension: Angular Snippets for Dynamic ...
The article demonstrates how to migrate Dynamic Web TWAIN samples from JavaScript to Angular, as well as how to build a vscode extension ......
Read more >
Getting Started with Node.js, Angular, and Visual Studio Code
Navigate to the folder where you want to make your angular app. I went to my C:/ directory in my PowerShell to run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found