denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
97.08k stars 5.36k forks source link

Release GitHub Copilot extension for Deno #25031

Open beingminimal opened 2 months ago

beingminimal commented 2 months ago

Deno is a rapidly growing JavaScript/TypeScript runtime with a huge and thriving ecosystem. Having a dedicated GitHub Copilot extension for Deno would be immensely helpful for the large and active Deno community.

The copilot extension of deno could provide the following features

Developers can use @deno to learn about server-side JavaScript, generate Deno Deploy assets for local development workflows, or leverage Deno's built-in security features for project analysis.

Deno in GitHub Copilot

  1. Generate the right Deno assets for your project: Get help with Deno Deploy and watch it generate the deploy.ts, import_map.json, and configuration files tailored to your project's specific needs: "@deno How would I deploy this project with Deno Deploy?"
  2. Scaffold Fresh or Lume projects: Kickstart your web development projects with boilerplate code for popular frameworks like Fresh or Lume: "@deno Create a new Fresh project with a basic counter component" or "@deno Set up a Lume blog with Markdown support"
  3. Get Deno-specific code suggestions: Streamline your development process with context-aware code completions and snippets optimized for the Deno ecosystem: "@deno Fetch data from an API and display it in a table"
  4. Find and fix project vulnerabilities: The Deno extension integrates with Deno's built-in security features to surface potential issues and provide guidance on resolving them: "@deno Analyze my project for security vulnerabilities"

Additional Information

  1. Docker Copilot Extension as Example
  2. VS Code Blog
BlackAsLight commented 2 months ago

All of these mentioned benefits are dependent on the AI to produce quality code. You're also only mentioned the pros of such an implementation, but what about the cons?

beingminimal commented 2 months ago

All of these mentioned benefits are dependent on the AI to produce quality code. You're also only mentioned the pros of such an implementation, but what about the cons?

I think there will not be cons because either way it is going to be helpful to deno developers & community only.

BlackAsLight commented 2 months ago

I think there will not be cons because either way it is going to be helpful to deno developers & community only.

What about AI's tendency to hallucinate? To produce bloated code, irrelevant code, or code that it claims should work but doesn't? Is there any metrics to say that the code AI produces is of quality? A con of AI is that it allows new developers to become too reliant on it's output, degrading their problem-solving skills and critical thinking skills. Another con of AI is the security concern. Where people blindly trust the output because it works in the ideal environment not realising it's also exposing their infrastructure to attackers.

beingminimal commented 2 months ago

I think there will not be cons because either way it is going to be helpful to deno developers & community only.

What about AI's tendency to hallucinate? To produce bloated code, irrelevant code, or code that it claims should work but doesn't? Is there any metrics to say that the code AI produces is of quality? A con of AI is that it allows new developers to become too reliant on it's output, degrading their problem-solving skills and critical thinking skills. Another con of AI is the security concern. Where people blindly trust the output because it works in the ideal environment not realising it's also exposing their infrastructure to attackers.

Please study these copilot extensions first and try to understand the feature request. I understand you are saying this from the prospecting of ai but to ask copilot about deno ecosystem we can make such copilot extensions.

beingminimal commented 2 months ago

@BlackAsLight i have updated issue description let me know is it clear now or not?