GithubHelp home page GithubHelp logo

[Help Wanted]: Xcode plugin gives exteremely poor suggestions in comparison to VSCode. What am I doing wrong? about copilotforxcode HOT 4 CLOSED

eldare avatar eldare commented on June 8, 2024
[Help Wanted]: Xcode plugin gives exteremely poor suggestions in comparison to VSCode. What am I doing wrong?

from copilotforxcode.

Comments (4)

intitni avatar intitni commented on June 8, 2024
  1. Generating code with comment
    Try to give it more hints that the next line is code. For example,
  • add an empty line after the comment:
    // do something
    
    // cursor here
  • instruct it to generate code
    // a function to do something
    // cursor here
    or
    // do something
    func// cursor here
  1. Broken code
    Currently, GitHub Copilot has the ability to generate suggestions based on the opened files in the same workspace. In order for GitHub Copilot to detect an opened file, language server notifications need to be sent to the language server when a file is opened. It sounds simple, but Copilot for Xcode can't get those notifications from Xcode. As a result, it can only detect that a file is opened when the user manually switches to the tab of the file and clicks into the file (to change focused element, if you are opening a file from the side bar) for the first time.
    Additionally, if a file is already open prior to the extension launch, the user will also need to switch to the file manually in order for it to recognize that it is open.

from copilotforxcode.

eldare avatar eldare commented on June 8, 2024

Thank you for the quick response, it's very helpful indeed.

If I understand correctly number 2, if I work on something that depends on 10 other files, and I open all those files, that should be enough to improve copilot results?

from copilotforxcode.

intitni avatar intitni commented on June 8, 2024

Theoretically, yes, but sometimes even with the other files opened, GitHub Copilot can still generate incorrect suggestions even in VSCode.

from copilotforxcode.

eldare avatar eldare commented on June 8, 2024

Thank you 🙏

from copilotforxcode.

Related Issues (20)

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.