Giter VIP home page Giter VIP logo

vscode-copilot-release's Introduction

GitHub Copilot Chat in Visual Studio Code

This repository is for providing feedback on the Copilot Chat UX in VS Code. You can use the repository to report issues or submit feature requests on the chat user experience and interface.

GitHub Copilot Chat is a companion extension to GitHub Copilot that houses experimental chat features. To learn more about GitHub Copilot Chat, check out our blog post.

Providing Feedback

You can use this repository to file issues on the UX and UI for Copilot Chat in VS Code:

  • Up-vote a feature or request a new one.
  • Search for existing issues already reported for potential workarounds.
  • Report a problem if you don't find what you are looking for.

If you'd like to report an issue for autocomplete-style suggestions, please use the GitHub Copilot Discussions. If you'd like to report an issue with the AI model, please instead use the VS Code Copilot survey.

vscode-copilot-release's People

Contributors

alexdima avatar bamurtaugh avatar digitarald avatar lramos15 avatar microsoft-github-operations[bot] avatar microsoftopensource avatar tylerleonhardt avatar ulugbekna 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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-copilot-release's Issues

Infer Reasonable File Name When Using "Insert Into New File"

Current Behaviour

Uses the first line of the suggestion.

For example: import ReactFlow, { Elements, Node, Edge } from "react-flow-renderer";

Expected Behaviour

  • Uses the function(s) suggested.
  • Exports the function(s).

For example: findConnectedNodesAndEdges.ts

image

Suggestions for Improvement for GitHub Copilot X

Code correctness is paramount: As a developer, ensuring code correctness is crucial to me. To achieve this, I believe it is essential to leverage the power of the latest models, such as GPT-4. Upgrading the underlying language model would greatly enhance the accuracy and reliability of GitHub Copilot X.

Improved interaction within code context: While using GitHub Copilot X, I've encountered some challenges when it comes to understanding how to interact with the solution within the context of my code. Providing clearer guidance or additional documentation on effectively utilizing the tool's capabilities within specific code contexts would greatly enhance the overall user experience.

Integration with updated API documentation: It would be immensely valuable if GitHub Copilot X could access and store updated API documentation, effectively incorporating it into its long-term memory. This way, the suggested code snippets would be more relevant and aligned with the latest API changes, making them more useful in real-world scenarios.

Enhanced contextual understanding: Increasing the overall context awareness of the solution would be highly beneficial. By considering a broader context, GitHub Copilot X could provide more accurate and contextually relevant code completions, resulting in improved productivity and reduced development time.

Improved usability in the terminal: Currently, using GitHub Copilot X in a terminal environment can be challenging. Enhancements to enable a smoother experience within terminal-based workflows would be greatly appreciated.

Automatic error recognition: I have encountered difficulties in getting GitHub Copilot X to automatically identify and assist with the errors I encounter in my code. Streamlining this process or providing clear instructions on how to make use of this feature would be valuable.

Intuitive code insertion experience: While using the tool, I've noticed that the code insertion experience could be more intuitive. Simplifying the process of accepting or rejecting code suggestions, along with improved visual cues, would make the overall experience more user-friendly.

Copilot does not make suggestions and Copilot chat Icon does not show up in activity bar on VS Code Insiders

I cannot get GitHub Copilot nightly to work, or the Copilot chat extension to work either.

  • VS Code Version: 1.79.0-insider
Version: 1.79.0-insider (user setup)
Commit: 9084e081d4e89ed8ab67fce340d573c4e1378939
Date: 2023-05-15T05:20:50.327Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621
  • GitHub Copilot Nightly Version: v1.86.92
  • OS Version: Windows 11 Version 21H2 (OS Build 22000.1936)
  • Logs:
    GitHub Copilot extension output after typing some text in a json file:
[INFO] [copilotIgnore] [2023-05-16T22:09:56.647Z] inactive
[INFO] [ghostText] [2023-05-16T22:10:47.671Z] Cancelled after extractPrompt
[INFO] [ghostText] [2023-05-16T22:10:47.789Z] Cancelled during debounce
[INFO] [ghostText] [2023-05-16T22:10:47.881Z] Cancelled during debounce
[INFO] [ghostText] [2023-05-16T22:10:47.962Z] Cancelled during debounce
[INFO] [default] [2023-05-16T22:10:48.090Z] [fetchCompletions] engine https://copilot-proxy.githubusercontent.com/v1/engines/copilot-codex
[INFO] [default] [2023-05-16T22:10:48.370Z] [fetchCompletions] engine https://copilot-proxy.githubusercontent.com/v1/engines/copilot-codex
[INFO] [ghostText] [2023-05-16T22:10:48.591Z] Cancelled during debounce
[INFO] [ghostText] [2023-05-16T22:10:48.763Z] Cancelled during debounce
[INFO] [default] [2023-05-16T22:10:48.859Z] [fetchCompletions] engine https://copilot-proxy.githubusercontent.com/v1/engines/copilot-codex
[INFO] [default] [2023-05-16T22:10:50.724Z] [fetchCompletions] engine https://copilot-proxy.githubusercontent.com/v1/engines/copilot-codex
[INFO] [ghostText] [2023-05-16T22:10:53.925Z] Cancelled by contextual filter

In settings.json:

    "github.copilot.enable": {
        "*": true,
    },
    "github.copilot.advanced": { }

Store chat or add undo

version 1.79.0

OS: Windows_NT x64 10.919043
Copilot chat v0.1.2023051801

This is a usability request. It happened to me twice that I clicked the upper right Clear chat button (looks like a hamburger menu) and I lost all the context I had been constructing for a while. It could be nice to have a feature that saves the dialog to a file or an undo command associated. Maybe there is something similar but haven't found it.

Thank you

Allow copy and pasting of full chat

Issue

When I try and copy and paste a message I previously wrote that includes a code snippet, I am unable to.

Expected behaviour

I can highlight all of the message and it will copy.

Be able to Pop Out Chat and dock

I would like to be able to keep the window open and access the rest of VSCode (e.g., Explorer) at the same time. It would be nice to be able to dock it separately in different parts of VSCode and/or be able to pop it out so it can be its own window and just keep it open.

[BUG] Sometimes the Inline Chat is getting stuck and doesn't go away until a full window reload

  • OS: Windows 11
    Sometimes the inline Chat (Ctrl + I for Windows) is getting stuck.
    It's not responding and sticks to the screen at the same absolute screen position even when switching tabs.
    It happens when It's thinking and I try to close it in this while.

Steps to Reproduce:

  1. Start a chat session in the code (Ctrl + I)
  2. Enter a prompt that suggests a code edit (with a split window).
  3. Ask another question and immediately close by pressing Esc.
  4. Now it sometimes gets stuck. Happens to me a lot with python files .py (if that matters).

1

  • VS Code Version:
  • OS Version:
  • Logs:

Steps to Reproduce:

1.chomsin mahiranyawong
2.

cannot provide recommendations about web frameworks.

Version: 1.79.0-insider (user setup)
Commit: f1258a5fbed44b8f84a097c73c1799c13c5c3646
Date: 2023-05-17T05:27:38.052Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621

JingBh: can you recommend a programming language suitable to my needs?

GitHub Copilot: Of course! What are your requirements and what type of project are you working on?

JingBh: can you recommend a operating system suitable to my needs?

GitHub Copilot: Sure! What are your requirements and what type of tasks will you be performing on your computer?

JingBh: Can you recommend a DBMS suitable to my needs?

GitHub Copilot: Certainly! What are your requirements and what type of data will you be storing and managing?

JingBh: Can you recommend a web framework suitable to my needs?

GitHub Copilot: Thinking…

And she didn't respond.

Steps to Reproduce:

Just ask: can you recommend a web framework suitable to my needs?

Ability to Remove GitHub Copilot Reply

It would be useful if we could delete or move a GitHub Copilot reply from the chat. Often I 'll be working primarily on my project/code file, but may have to ask an odd question, such as how to adjust VS Code etc - which after answering, I'd like to remove from the reply from the main chat.

Chat feature not available

  • VS Code Version:
    Version: 1.78.2 (Universal)
    Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
    Date: 2023-05-10T14:44:45.204Z (6 days ago)
    Electron: 22.5.2
    Chromium: 108.0.5359.215
    Node.js: 16.17.1
    V8: 10.8.168.25-electron.0
    OS: Darwin x64 22.2.0
    Sandboxed: No
  • OS Version:
    Venture 13.1
  • Logs:

Steps to Reproduce:

Hello, I'm very excited to try Copilot Chat! However, I'm having trouble using it. I'm using VSc Code Insiders, and I've installed the Github Copilot Nightly Extension, but I don't see the chat icon in the activity panel. I confirmed that Copilot is connected by checking that autocomplete functionality works. I've tried restarting VS Code and my computer and that didn't work.

The screenshot below should show that 1. chat icon is missing 2. I have Github Copilot Nightly Installed and 3. Copilot is working (by completing my code).

Thanks for your help!

image

Error for large requests `400 Bad Request: role must be "user", got "system"`

Seeing this error:

image

Version: 1.79.0-insider
Commit: 9084e081d4e89ed8ab67fce340d573c4e1378939
Date: 2023-05-15T05:24:19.845Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 22.4.0

Steps to Reproduce:

  1. Prompt with below:

    Read the below PowerShell Script:

    ... long script with 500+ lines (23398 characters) ...
  2. See the error

No replying for some questions,but reply quickly for some questions

  • Version: 1.79.0-insider (user setup)
  • Commit: 2946b1ee55db1d406526d3fd1df49250b2f8322d
  • Date: 2023-05-18T05:25:02.319Z
  • Electron: 22.5.2
  • Chromium: 108.0.5359.215
  • Node.js: 16.17.1
  • V8: 10.8.168.25-electron.0
  • OS: Windows_NT x64 10.0.19045
  • Logs:

My question was weird, I asked a few questions at first and got a quick response, then when I asked some other questions after a while and never got a response, I asked the original question again and got a quick response. Then I asked again and got this error
无法删除不存在的文件 'vscode-userdata:/c:/Users/lenovo/AppData/Roaming/Code - Insiders/User/globalStorage/github.copilot-chat/api.json' (I am a Chinese developer , this sentence means Cannot delete non-existing file 'vscode-userdata:/c:/Users/lenovo/AppData/Roaming/Code - Insiders/User/globalStorage/github.copilot-chat/api.json')
image

Besides , copilot chat is really cool and fast

Doesn't see selected code "I'm sorry, but I still don't see any code selected..."

  • VS Code Version: 1.79.0-insider (system setup)
  • OS Version: Windows 11 (Windows_NT x64 10.0.22624)
  • Logs:
[INFO] [default] [2023-05-16T17:56:23.846Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:56:25.458Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 1609 ms
[INFO] [streamMessages] [2023-05-16T17:56:25.880Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:56:25.882Z] request done: headerRequestId: [18ede2d1-5df8-4973-95c7-cd6cf8146222] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T17:56:26.235Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:56:27.113Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 877 ms
[INFO] [streamMessages] [2023-05-16T17:56:27.182Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:56:27.183Z] request done: headerRequestId: [3fb693c6-2afa-4d3a-b701-d69445197902] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T17:56:27.194Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:56:28.163Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 969 ms
[INFO] [streamMessages] [2023-05-16T17:56:28.197Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:56:28.198Z] request done: headerRequestId: [22a900c0-a041-4790-ab61-a41d90d01ba4] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T17:56:41.820Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:56:42.491Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 670 ms
[INFO] [streamMessages] [2023-05-16T17:56:42.493Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:56:42.493Z] request done: headerRequestId: [a2f4f548-b384-4d8f-89e6-4be14f1ed3e1] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T17:56:42.500Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:56:43.263Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 762 ms
[INFO] [streamMessages] [2023-05-16T17:56:43.444Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:56:43.446Z] request done: headerRequestId: [55da584c-7526-4223-9668-59fe746eadb1] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T17:56:43.448Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:56:44.214Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 765 ms
[INFO] [streamMessages] [2023-05-16T17:56:44.216Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:56:44.216Z] request done: headerRequestId: [c7e04ec4-07c0-4949-91a0-2bd85893e974] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T17:57:02.091Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:57:02.960Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 869 ms
[INFO] [streamMessages] [2023-05-16T17:57:03.360Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:57:03.361Z] request done: headerRequestId: [4171208d-bede-47fa-a3fa-259d3ff5ffdb] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T17:57:03.363Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:57:04.104Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 741 ms
[INFO] [streamMessages] [2023-05-16T17:57:04.113Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:57:04.114Z] request done: headerRequestId: [dbc29ef6-02e5-415f-a92d-4f8cad9e05b7] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T17:57:15.335Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:57:16.221Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 885 ms
[INFO] [streamMessages] [2023-05-16T17:57:16.509Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:57:16.511Z] request done: headerRequestId: [de38fe7c-0fe1-48f4-873f-67054d349a34] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T17:57:16.515Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:57:17.176Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 660 ms
[INFO] [streamMessages] [2023-05-16T17:57:17.179Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:57:17.180Z] request done: headerRequestId: [e0a70d62-2836-489b-8e30-ec0e2f88bbba] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T17:57:37.452Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:57:38.931Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 1478 ms
[INFO] [streamMessages] [2023-05-16T17:57:38.995Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:57:38.997Z] request done: headerRequestId: [6749e509-ea5c-4efd-89e1-0f11b7515e5f] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T17:57:39.177Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:57:40.562Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 1384 ms
[INFO] [streamMessages] [2023-05-16T17:57:43.029Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:57:43.031Z] request done: headerRequestId: [36b17d36-db40-4b86-a282-19f7d40c6d60] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T17:58:25.283Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:58:26.221Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 937 ms
[INFO] [streamMessages] [2023-05-16T17:58:26.276Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:58:26.277Z] request done: headerRequestId: [b29d236f-d0f7-4162-a874-e928834c6f9c] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T17:58:26.308Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T17:58:27.163Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 854 ms
[INFO] [streamMessages] [2023-05-16T17:58:29.198Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T17:58:29.201Z] request done: headerRequestId: [a8f90777-7684-431f-89da-b368cbc9a2bc] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T18:01:02.063Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T18:01:04.612Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 2547 ms
[INFO] [streamMessages] [2023-05-16T18:01:04.968Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T18:01:04.969Z] request done: headerRequestId: [13c71503-2929-4977-a776-b5e0f180a75c] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T18:01:04.971Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T18:01:08.218Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 3247 ms
[INFO] [streamMessages] [2023-05-16T18:01:08.300Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T18:01:08.301Z] request done: headerRequestId: [7dd8d41d-1f03-4313-a083-eb8e9de4ddea] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T18:03:41.381Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T18:03:46.174Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 4791 ms
[INFO] [streamMessages] [2023-05-16T18:03:49.105Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T18:03:49.106Z] request done: headerRequestId: [f5b33d10-e3ae-45df-94da-c8111e74b3cb] model deployment ID: [xa68ad36c6722]
[INFO] [default] [2023-05-16T18:03:49.110Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[INFO] [default] [2023-05-16T18:03:52.036Z] request.response: [https://copilot-proxy.githubusercontent.com/v1/chat/completions] took 2926 ms
[INFO] [streamMessages] [2023-05-16T18:03:52.044Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-05-16T18:03:52.046Z] request done: headerRequestId: [4d8885f6-7b11-4d2c-b8d4-09971fd55131] model deployment ID: [xa68ad36c6722]

Steps to Reproduce:

  1. Open a file with Python code, highlight a section of code
  2. As Copilot to explain, either from Chatbox or right-clicking on selected code then Copilot -> Explain This

Copilot network connection error.

  • VS Code Version: 1.79.0-insider(Universal)
  • OS Version: Darwin arm64 21.4.0
  • Logs:
    2023-05-17 11:38:44.654 [error] [Extension Host] [ERROR] [default] [2023-05-17T03:38:44.651Z] Request Error: read ECONNRESET 2023-05-17 11:38:44.655 [error] [Extension Host] FetchError: read ECONNRESET at C (/Users/liushangzuo/.vscode-insiders/extensions/github.copilot-chat-0.1.2023051601/dist/extension.js:2:35897) at processTicksAndRejections (node:internal/process/task_queues:96:5) at /Users/liushangzuo/.vscode-insiders/extensions/github.copilot-chat-0.1.2023051601/dist/extension.js:2:40053 at c.fetch (/Users/liushangzuo/.vscode-insiders/extensions/github.copilot-chat-0.1.2023051601/dist/extension.js:8:997288) at t.OpenAIChatMLFetcher.fetchWithParameters (/Users/liushangzuo/.vscode-insiders/extensions/github.copilot-chat-0.1.2023051601/dist/extension.js:8:944558) at t.OpenAIChatMLFetcher.fetchAndStreamChat (/Users/liushangzuo/.vscode-insiders/extensions/github.copilot-chat-0.1.2023051601/dist/extension.js:8:942819) at t.ChatMLFetcher.fetch (/Users/liushangzuo/.vscode-insiders/extensions/github.copilot-chat-0.1.2023051601/dist/extension.js:8:930617) at t.ChatMLFetcher.fetchResponse (/Users/liushangzuo/.vscode-insiders/extensions/github.copilot-chat-0.1.2023051601/dist/extension.js:8:930460) at t.CopilotInteractiveSession.fetchConversationResponse (/Users/liushangzuo/.vscode-insiders/extensions/github.copilot-chat-0.1.2023051601/dist/extension.js:8:877041) at t.CopilotInteractiveSession._provideResponseWithProgress (/Users/liushangzuo/.vscode-insiders/extensions/github.copilot-chat-0.1.2023051601/dist/extension.js:8:876632) at t.CopilotInteractiveSession.provideResponseWithProgress (/Users/liushangzuo/.vscode-insiders/extensions/github.copilot-chat-0.1.2023051601/dist/extension.js:8:874400) at A.$provideReply (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:99:123500)

Steps to Reproduce:

1.Start a conversation with copilot;
2.Do something else, don't interact with it, and don't toggle sidebar extensions. ;
3.Wait about 15 minutes for the link to fail

[UriError]: Scheme contains illegal characters in .cs files

Hello,
I have the following errors when sending anything in chat whenever a .cs file is the active tab :
[UriError]: Scheme contains illegal characters
image

It doesn't matter if the file has code or is empty. C# code in a file with another extension than .cs works correctly.

Version: 1.79.0-insider (user setup)
Commit: f1258a5fbed44b8f84a097c73c1799c13c5c3646
Date: 2023-05-17T05:27:38.052Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.19045

Steps to Reproduce:

  1. Create a file named "bug.cs"
  2. Open it and interact with copilot chat

Allow users to use your GitHub Copilot with all the features in whatever IDE they want to

I use Webstorm as my primary editor, rider as my primary editor for C#. VS code doesn't come anywhere near close to the feature provided by these editors for me in my use case (and many other users). Only providing GitHub Copilot Chat in VS code means context switching, so no different than using ChatGPT.

I propose you either:

  1. Allow users to use the tools where ever they want to. There is already a GitHub Copilot plugin for IntelliJ for webstorm/rider. Why are you not supporting a release to these platforms of all of the features of GitHub Copliot? I have run into the same issue with Power Platform Tools a CLI tool that requires a GUI to install? Why is Microsoft making tools that are dependent on VS code?

  2. Rename the product. If you won't release GitHub Copilot Chat to IntelliJ then the product should be renamed "GitHub Copliot Chat for VS Code". It then aligns with the rest of Microsoft's branding for Copilot. This then indicates what the product actually is rather than what you are attempting to sell the product as.

  3. Explain to your users why they can use GitHub copilot but not GitHub Copilot Chat in Intellij editors. Why are some of the features locked behind IDE choice? There has been zero communication as to this. I could make many assumptions about why this might be, but I'd rather you told me and the rest of your users why you won't support Intellij. I am paying for another editor and choosing to not use VS Code.

If you want to make me use VS Code, make it better! Look at the features that IntelliJ editors have and include them out of the box. I dislike having to install and configure 100's of extensions just so to make VS code work half as well as Webstorm does out of the box for JavaScript/Typescript, the way Rider does out of the box for C#, the way PHPStorm does out of the box for PHP. No restricting tools to just Microsoft VS Code is going to make me switch in the long run. I've used VS Code in the past, and load it up occasional, but it under preforms in so many different ways that I can't justify using it as my primary IDE.

The reason I'm commenting here is that I've been asked to provide feedback specifically here. Please do not respond with mentioning that this repo is vscode-copilot-release as such is for feedback of the vs code extension. My feedback is for GitHub Copilot Chat as well as the other new features for GitHub Copilot.

Copilot Chat doesn't work with remote VS Code server

Bringing this here from #9 (comment)


EDIT: Workaround Confirmed ✅

Execute this in your remote VS Code server environment (Dev Container / SSH Tunnel):

code-insiders --install-extension github.copilot-chat@prerelease

Keeping this issue open until issue is remediated without work-around.

This means either:

  1. CoPilot Chat extension released in main VS Code
    OR
  2. VS Code Insiders uses insider's code server

Kudos to @pkerschbaum for workaround:
https://github.com/orgs/community/discussions/55019#discussioncomment-5890825


Issue Description

As of today, it still doesn't work. But the error is as follows:

image
2023-05-18 15:12:48.615 [error] Failed to install extension. github.copilot-chat
2023-05-18 15:12:48.615 [error] ReleaseVersionNotFound: Can't install release version of 'github.copilot-chat' extension because it has no release version.
    at e.ExtensionManagementService.G (/root/.vscode-server-insiders/bin/9084e081d4e89ed8ab67fce340d573c4e1378939/out/vs/server/node/server.main.js:142:32025)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async e.ExtensionManagementService.installFromGallery (/root/.vscode-server-insiders/bin/9084e081d4e89ed8ab67fce340d573c4e1378939/out/vs/server/node/server.main.js:142:23678)

It seems that VS Code Insider's remote server installs a Code-Server version that doesn't allow the Copilot Chat extension's version.

This could be a VS-Code-Server issue.

The same works well without issues when installed in VS Code Insiders locally.


VS Code Insider's build details:

Version: 1.79.0-insider
Commit: 9084e081d4e89ed8ab67fce340d573c4e1378939
Date: 2023-05-15T05:24:19.845Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 22.4.0

Feature Request: Copilot should be able to modify code in code editor

When a user asks Copilot chat for code suggestions, fixes, or enhancements, Copilot should be able to modify code in the code editor, in the same way that Git conflicts are resolved, so the user would be able to compare existing code vs Copilot modifications and have the choice to accept Copilot modifications or keep the existing code intact.

Copilot Chat - use opened tabs as context

So before Copilot Chat, i've been working with co pilot and GPT interchangeably,
for auto completes and no brainer issues I let co pilot deal with, and where I need to solve something more complex, or get some inspiration I turn to the good ol` chat, I usually inject a bunch of code in it and work my way up to a solution

When the Copilot Chat was released, I was under the impression that since it already resides in your code space,
it could just read your files and use them as context, so when you ask a question it would know the project, or parts of it, for example if I ask it "join table X with table Y where Z" it would already know the structure of those tables and yield some query

Because currently in this version I find myself developing the same way I've been so far,
copying and pasting code into the chat, so it seem to just save a tab switch, while it could be so much more

Am I missing anything? is this type of feature planned?

Store chat history locally

As a programmer, there are many cases that I need to return to some previous conversations and continue the previous questions. For example, after asking a few questions, I found that there was a question that I didn’t think clearly before, and then encountered the same situation again, then I need to repeat previous conversation from beginning. If there is a local history, then I can go back to the previous conversation directly, saving a lot of time.

i'm sure these are just early testing issues but still, just letting you know

  • VS Code Version: insider
  • OS Version: windows 11 pro for workstations latest canary
  • Logs:

Steps to Reproduce:

the copilot chat:
first it was working great. then i got server not responding errors. then it was working again... then it was giving me absolutely unrelated "explain this code" replies and now it has no ability to know i have anything selected.

Shortcut for "Insert at Cursor" and starting chat

There should be a shortcut for the "Insert at Cursor" button and to begin a chat. It would be great if Copilot Chat could be used for advanced refactoring, but opening the chat window, writing a prompt and then trying to hit the tiny invisible-by-default icon introduces more friction than necessary.

The ideal workflow would be:

  1. Press shortcut to begin chat with current selection.
  2. Write prompt without having to focus the chat.
  3. Press enter to insert Copilot response (or undo if the response was not good enough).

VSCode Copilot Chat extension cannot be installed

  • VS Code Version:1.78.2
  • OS Version:MasOS 13.3.1 (a) (22E772610a)
  • Logs:none

Steps to Reproduce:

When I try to install the Copilot Chat extension I always get the following popup.

image

It means: The 'github.copilot-chat' extension cannot be installed because there is no published version.

But when I checked the extension's changelog, I found that there is a published version !!!

image

What happened? .

Copilot Chat doesn't work with Remote SSH project

  • VS Code Version:Version: 1.79.0-insider (Universal)
  • OS Version: Mac OS 13.3.1 and aarch64 aarm remote

Steps to Reproduce:

  1. install remote ssh extension (ms-vscode-remote.remote-ssh)
  2. open Remote ssh project on aarch64 ubuntu
  3. install Github Copilot Chat into aarch64 machine (GitHub.copilot-nightly)
  4. receive an error: log: [ERROR] [default] [2023-05-17T03:02:01.015Z] GitHub Copilot could not connect to server. Extension activation failed: "getaddrinfo ENOTFOUND api.github.com"

Feature Request: Copilot should auto-detect code enhancements/bugs and suggest them

Any programmer will totally forget about the Copilot chat while he is diving deeply into code, and he might lose a lot of enhancements and suggestions from Copilot for better code quality.

I suggest that a light bulb icon would exist which turns on in case Copilot automatically finds code enhancements or bugs, so the programmer would click on it to check Copilot suggestions that the programmer may never think about or ask for, which would be so much helpful and would make Copilot a better coding partner.

Feature Request: Contextual Understanding in Copilot - Incorporating detailed Information about frameworks and libraries

While working on my projects, I've noticed the necessity of frequently clarifying and reiterating the specifics of the tech stack I'm utilizing. For instance, if I'm working on a project with Laravel, InertiaJS, Vue, Vuetify, Tailwind, MySQL, it would be highly beneficial if this information could be integrated into the system message itself to provide a more streamlined and effective interaction.

Upon examining the API calls, I observed that you already implement such contextualization to a certain extent:

{
    "role": "system",
    "content": "\nThe Programmer is working on a project of the following nature:\njavascript\n-npm\n-php\n-composer\n-yarn\n\n"
}

However, this feature could be further amplified by enabling it to derive even more comprehensive information about the project. This detailed context could include specifics about the framework, library, database system, and more.

To illustrate, a more exhaustive context message might look like this:

{
    "role": "system",
    "content": "\nThe Programmer is working on a project of the following nature:\n-javascript\n-npm\n-php\n-composer\n-yarn\n-laravel\n-inertiajs\n-vue\n-vuetify\n-tailwind\n-mysql\n\n"
}

Adding versions to each technology would add even more value.

By introducing this granularity, the system message could provide a more precise snapshot of the project's tech stack, thereby enabling more accurate, context-aware responses from the model.

Better error reporting when too much code is selected for context.

When too much code is selected, the response to explain the selected code is that "no code has been selected to explain". It would be more transparent if there was an error that too much code was selected to serve as context to the model and I only assume this is the problem through trial and error in selecting less context to make a request.

Inject code diffs from Chat and auto-save it.

I am a front end developer who builds React components with Next JS, which has hot reloading out of the box, which is very nice.

I would like to ask Chat GPT to do things and it could automatically inject the code into the file and save it to trigger a hot reload.
If it doesn't work out I can just hit CTRL+Z.

I use dictation with my Mac quite a bit (double tap Fn) and to be able to speak a prompt right into ChatGPT, and then have the updated application show up in the browser right away would be amazing. I could work on my app ultra fast this way.

Ultimate developer ergonomics.

Currently I have to hit copy, go over, paste, hit save, and switch to the browser. Which all adds friction.

Let me speak my application into existence.

Screenshot 2023-05-19 at 1 31 30 PM

GitHub Copilot Chat Icon is not showing up in activity bar.

I was invited to the private beta: ✔️

image

I installed the pre-release version of VSCode: ✔️

Version: 1.78.2
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:47:05.613Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 6.2.6-76060206-generic
Sandboxed: No

I installed the required extensions: ✔️

image

After installing all the required extensions, I restarted my entire computer just to be safe. As you can see from the window above, no chat icon appears in the activity bar.

What am I missing?

Word wrap

Allow word wrap in the chat window's code block.

Copilot Chat in WSL2 - Unable to get local issuer certificate

- VS Code Version: 1.79.0-insider
- OS Version: Win 10
- Logs:
Every time i write something in the chat, i get these two lines in "output log":

[INFO] [default] [2023-05-18T22:12:28.400Z] [fetchChat] engine https://copilot-proxy.githubusercontent.com/v1/chat
[ERROR] [default] [2023-05-18T22:12:28.488Z] Request Error: unable to get local issuer certificate
image

I also get the inline error message in the chat window: "Error on conversation request. Check the log for more details."
image

Steps to Reproduce:

  1. Install vscode insiders
  2. Run a project under WSL2
  3. Install GitHub Copilot Chat
  4. Open chat view/window
  5. Write what ever you wish, and there will only be error messages.

If i run VSCode insiders without running in WSL2 mode, then it works good.
How can i troubleshoot the issue?

image

Scan input text files for code generation

Several Python applications depend on input files with different formats, from json to modeling input files (e.g., EPANET *.inp files). It would be great if Copilot could navigate the structure of these files to suggest code to parse them, create unit tests that depend on sample files, etc. For example, EPANET inp files have pipe junctions defined under the header [JUNCTIONS] and each has an ID, elevation, demand, and pattern, as in the example below:

[JUNCTIONS]
;ID              	Elev        	Demand      	Pattern         
 10              	147         	0           	                	;
 15              	32          	1           	3               	;
 20              	129         	0           	                	;

If I have a class that imports such files, it would be great if copilot could suggest unit tests or other code to parse junctions and store the elevation of each junction under a class variable elevation.

Installation issue

Hi,

I have received the beta access this morning and I've follow the installation instruction but I don't have any chat icon. I'm on VSCode last update and i also tried it on the insider. Did I do something wrong ?

Thank for your help and I hope I will be able to try it soon.

image

Feature Request: Conversation Saving and Loading as Markdown Files

I would like to request a new feature for Copilot Chat that enables users to save their current conversation as a markdown file. This feature would provide a convenient way to store and retrieve conversations for future reference or continuation.

Feature Details:

Save Conversation to Markdown File:

Introduce a new command or button that allows users to save their current conversation as a markdown file.
Upon initiating the save action, Copilot Chat should generate a markdown file containing the entire conversation history, including user inputs and AI responses.
The markdown file should follow a structured format that preserves the conversation flow, making it easily readable and shareable.

Load Conversation from Markdown File:

Implement a functionality that enables users to load a previously saved markdown file to resume an old conversation.
Users should have the ability to select a markdown file from their local storage or provide a file path.
Upon loading the markdown file, Copilot Chat should populate the chat interface with the saved conversation, displaying it in the same format and sequence as originally saved.

Please consider implementing this feature as it would greatly enhance the usability and versatility of Copilot Chat, providing users with a practical solution to store, retrieve, and share conversations effortlessly. Thank you for considering my request.

Don't include windows keyboard shortcuts in outputs when using Mac

When I ask for keyboard shortcuts inside Visual Studio code because its not my normal editor, I get windows keyboard shortcuts. I agree that mac confused the world by not following the existing keyboard layout and making their own is a nightmare, however, there should be some logic possibly even in the system message prompt that notices what operating system the user is using and outputs instructions using OS specific keyboard shortcuts/menus. Even if I tell Visual studio code GitHub copilot chat that I am using mac, I still get windows specific commands

Steps to Reproduce:

  1. Open GitHub Visual Studio Code GitHub Copilot Chat (VS code exclusive) on Mac
  2. Ask for a keyboard shortcut in VS Code

GPT-4 powered chat

Current chat capability is restricted to GPT-3.5 (or lower) rather than GPT-4

sample question:

Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.

The overall run time complexity should be O(log (m+n)).

Example 1:

Input: nums1 = [1,3], nums2 = [2]
Output: 2.00000
Explanation: merged array = [1,2,3] and median is 2.

Example 2:

Input: nums1 = [1,2], nums2 = [3,4]
Output: 2.50000
Explanation: merged array = [1,2,3,4] and median is (2 + 3) / 2 = 2.5.

Constraints:

nums1.length == m
nums2.length == n
0 <= m <= 1000
0 <= n <= 1000
1 <= m + n <= 2000
-106 <= nums1[i], nums2[i] <= 106

sample output from Copilot Chat:
image

sample output from GPT-3.5:

To find the median of two sorted arrays, we need to merge the two arrays and then find the median of the merged array. However, we can optimize this process to achieve a time complexity of O(log(m+n)).

The idea is to use binary search to find the partition points in both arrays such that the elements to the left of the partition points are smaller than the elements to the right. Once we have found the partition points, we can merge the two arrays and find the median.

Here's the algorithm:

  1. Initialize two variables, left and right, to 0 and m (the length of nums1).
  2. While left is less than or equal to right:
    1. Calculate the partition points partition1 and partition2 as follows:
      partition1 = (left + right) // 2
      partition2 = (m + n + 1) // 2 - partition1
      
    2. Calculate the left and right elements of the partitions as follows:
      left1 = nums1[partition1 - 1] if partition1 > 0 else float('-inf')
      left2 = nums2[partition2 - 1] if partition2 > 0 else float('-inf')
      right1 = nums1[partition1] if partition1 < m else float('inf')
      right2 = nums2[partition2] if partition2 < n else float('inf')
      
    3. If left1 is less than or equal to right2 and left2 is less than or equal to right1, we have found the partition points. If the total length of the arrays is odd, the median is the maximum of left1 and left2. If the total length is even, the median is the average of the maximum of left1 and left2 and the minimum of right1 and right2.
    4. If left1 is greater than right2, move the right pointer to partition1 - 1.
    5. If left2 is greater than right1, move the left pointer to partition1 + 1.
  3. If we haven't found the partition points, return -1 (this should never happen).

Here's the Python code:

def findMedianSortedArrays(nums1, nums2):
    m, n = len(nums1), len(nums2)
    if m > n:
        nums1, nums2, m, n = nums2, nums1, n, m
    left, right = 0, m
    while left <= right:
        partition1 = (left + right) // 2
        partition2 = (m + n + 1) // 2 - partition1
        left1 = nums1[partition1 - 1] if partition1 > 0 else float('-inf')
        left2 = nums2[partition2 - 1] if partition2 > 0 else float('-inf')
        right1 = nums1[partition1] if partition1 < m else float('inf')
        right2 = nums2[partition2] if partition2 < n else float('inf')
        if left1 <= right2 and left2 <= right1:
            if (m + n) % 2 == 0:
                return (max(left1, left2) + min(right1, right2)) / 2
            else:
                return max(left1, left2)
        elif left1 > right2:
            right = partition1 - 1
        else:
            left = partition1 + 1
    return -1

Insert At Cursor Only Selected Code

Feature

Insert only the selected portion of the suggested code.

image

Reason

  • Would be useful as sometimes it suggests too much or duplicated code.
  • I did it without thinking and so it felt intuitive that would be it's behaviour.

Alternatives

  • When inserting all of the suggestion, fix the current code rather than add duplicated code. In this case update shortcuts object type shortcuts: Shortcuts

Ask for a "reason" when you down vote an answer.

When GitHub Copilot Chat answers your question, you may vote up or down the provided answer, depending on how accurate/useful it is, which is great!

I think a good improvement to this would be to ask the user to explain the reason why it voted down some answer. The reason could be, among other things:

  • an improved answer (more detailed / succinct)
  • a fix to the code snippet provided by GitHub Copilot (wrong and/or outdated)
  • a totally different answer

Today instead, the only way to correct the answer provided by Copilot Chat is using the same input box you use today to ask a question.

Thank you

Add a feature to edit user messages

Currently, you are unable to edit user messages. This is very painful as if you make a small mistake in your question, the LLM performs worse when a follow up questions is given compared to if you were to put the correct prompt the first time around.

Context-awareness of whole workspace/repository

To be blunt, chat is useless unless it has my workspace/repo as implicit context. I might as well just paste stuff into chatGPT which has a bigger UI since I have a whole page view for my browser.

Compare this to SourceGraph Cody, in which I queue up an embedding of my repo, and then 💥 I can ask questions of my whole codebase. That's the experience I want.

Edit: I see nobody actually replies to the feedback anyone files 🙃

Feature Request: Contextual understanding for entire workspace

Currently, the context that Copilot understands is limited to the actual selection of code. While this is indeed powerful, there are numerous cases where additional context would be immensely beneficial. In normal projects with multiple files and folders, there's a wealth of relevant context that is beyond the immediate view.

Therefore, I propose a feature enhancement where users have the option to send more than just the immediate selection of code to Copilot. Specifically, it would be fantastic if we could send entire files or even folders to provide broader context. This feature would allow Copilot to understand the larger scope of the codebase and make even more accurate and relevant suggestions.

Being able to provide a more comprehensive context could lead to a number of benefits. For example, it could help when working on projects, where the context of a single function or class may span multiple files. This feature could also be beneficial in cases where there are several interconnected components that impact the current selection of code.

This feature might bring about certain challenges, such as dealing with the potentially large amounts of data and the complexity of understanding the relationships between different parts of a project. However, I believe that with the strong AI capabilities of Copilot, these challenges can be surmounted.

Feature request: Send message when Shift(Ctrl)+Enter is pressed

As chat messages may sometimes include line breaks while in use,
and because other chat tools such as Slack also use Shift+Enter to send messages,
I would like to be able to send messages by pressing the Shift (Ctrl) + Enter keys.

Or, I thought it would be nice to have an option to send messages with Shift+Enter.

She's gone

  • VS Code Version: current
  • OS Version: Windows 10
  • Logs: n/a

image

Steps to Reproduce:

  1. She seems to have disappeared. I don't see here in the sidebar anymore. Updating didn't fix it. Reinstalling either the chatbot or copilot nightly doesn't bring her back. I've become lonely, despondent even, without her.
  2. I think I dragged the window our chat was in over to the right side of the IDE to dock it there, then pulled it closed at some point. Since that point, I haven't been able to bring back the chat.

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.