Git Product home page Git Product logo

Comments (12)

1matthewli avatar 1matthewli commented on July 19, 2024 2

I can't reproduce this. Can you share a code snippet?

@alexr00 Thanks for the reply! I believe the following is a minimal example, let me know if it works for you:

  1. Create a comment controller
this.commentController = vscode.comments.createCommentController(
      "codeium-command",
      "CodeiumCommand"
);
  1. Create a comment thread with any doc and range
const commentThread = this.commentController.createCommentThread(
      docUri,
      range,
      []
);
commentThread.label = "Codeium Command";
commentThread.collapsibleState =
      vscode.CommentThreadCollapsibleState.Expanded;

Expected behavior: opens the comment thread where the input is auto-focused
Actual behavior: open the comment thread but the input is closed

from vscode.

alexr00 avatar alexr00 commented on July 19, 2024 1

We aren't planning on having another recovery release, so you can see our next approximate release time in the iteration plan.

from vscode.

olegklimov avatar olegklimov commented on July 19, 2024

Yes, I have this too, very annoying.

from vscode.

alexr00 avatar alexr00 commented on July 19, 2024

I can't reproduce this. Can you share a code snippet?

from vscode.

vladinator1000 avatar vladinator1000 commented on July 19, 2024

Hi @alexr00, I'm a Codeium user and I can reproduce it by adding the Codeium extension and pressing Cmd + I to open a refactor panel. Not sure about snippet because I'm not a Codeium developer.

from vscode.

alexr00 avatar alexr00 commented on July 19, 2024

Hmm. I'm doing basically the same thing, but I can't repro. I've pushed my test command to the comment sample. You can see the change here: https://github.com/microsoft/vscode-extension-samples/compare/alexr00/createEditableThread?expand=1, and you can clone that repo and check out the alexr00/createEditableThread branch to try it out.

from vscode.

andyzg avatar andyzg commented on July 19, 2024

I tested out the change and it seems like it opens the comment box with an existing comment box in edit mode. While this does open the input to be focused, it also adds a "Reply" at the bottom of the comment box which is undesirable.

const thread = commentController.createCommentThread(vscode.window.activeTextEditor.document.uri, new vscode.Range(line, 0, line, 0), [new NoteComment('', vscode.CommentMode.Editing, { name: 'vscode' })]);
image

If I remove the comment and start with an empty thread, we're back at the original issue which is that the comment box is not open

const thread = commentController.createCommentThread(vscode.window.activeTextEditor.document.uri, new vscode.Range(line, 0, line, 0), []);
image

@alexr00 Is there a way for us to:

  • Open the comment box with the input focused
  • No existing comments / reply at the bottom
    Thank you!

from vscode.

alexr00 avatar alexr00 commented on July 19, 2024

Thanks for finding the difference between our samples!

from vscode.

andyzg avatar andyzg commented on July 19, 2024

@alexr00 thqnk you for the swift fix!

from vscode.

1matthewli avatar 1matthewli commented on July 19, 2024

@alexr00 Thank you!! Is there a rough estimate on when this might make it to the next VS Code release?

from vscode.

VSCodeTriageBot avatar VSCodeTriageBot commented on July 19, 2024

This bug has been fixed in the latest release of VS Code Insiders!

@1matthewli, you can help us out by commenting /verified if things are now working as expected.

If things still don't seem right, please ensure you're on version 4580ba5 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.

Happy Coding!

from vscode.

TylerLeonhardt avatar TylerLeonhardt commented on July 19, 2024

Looks good now in insiders!

Image

from vscode.

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.