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.

Add support for github.dev

See original GitHub issue

Problem

It would be nice to make the Prisma extension compatible with https://github.dev. So far, there’s no syntax highlighting, formatting, etc. for schema.prisma files.

Screenshot of VS Code showing  tat Prisma is not supported as a web extension

Suggested solution

Make a web extension version. Guide from VS Code docs repo

Alternative

Use GitHub Codespaces where the extension is compatible.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
Jolg42commented, Aug 24, 2022

Found this restriction list https://code.visualstudio.com/api/extension-guides/web-extensions#web-extension-main-file Screen Shot 2021-11-04 at 09 45 58

Here I can see that the most problematic ones are

  • Node.js globals and libraries such as process, os, setImmediate, path, util, url are not available at runtime.
  • Creating child processes or running executables is not possible.

We would need to

  • switch to the WASM build of prisma-fmt
  • check how to remove usage of the Node.js globals listed
  • telemetry is using child_process, so probably disabling it in this context or find another implementation
  • Not sure the file watcher implemented would work, could be disabled in this context.
1reaction
janpiocommented, Feb 11, 2022

I suspect @m-abdelwahab just misunderstood what I wrote. We’ll keep this issue open and around and work on removing the other blockers when we have time and it makes sense from a priority perspective.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The github.dev web-based editor - GitHub Docs
The github.dev editor supports VS Code extensions that have been specifically created or updated to run in the web. These extensions are known...
Read more >
GitHub.dev
No information is available for this page.
Read more >
Fun Things You Can Do With github.dev
With github.dev, you can install the CodeTour extension, which allows you to create and playback guided walkthroughs of a codebase.
Read more >
GitHub integration overview - Azure DevOps - Microsoft Learn
Provides support for inviting GitHub account users to collaborate within an Azure DevOps project. For details, see Invite GitHub ...
Read more >
Collaborate on GitHub - Visual Studio Code
GitHub is a cloud-based service for storing and sharing source code. Using GitHub with Visual Studio Code lets you share your source code...
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