Comments (12)
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:
- Create a comment controller
this.commentController = vscode.comments.createCommentController(
"codeium-command",
"CodeiumCommand"
);
- 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.
We aren't planning on having another recovery release, so you can see our next approximate release time in the iteration plan.
from vscode.
Yes, I have this too, very annoying.
from vscode.
I can't reproduce this. Can you share a code snippet?
from vscode.
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.
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.
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](https://private-user-images.githubusercontent.com/3849459/341175460-2437db02-f640-4229-a5cc-8ed2d517234f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMjQwMTQsIm5iZiI6MTcyMTMyMzcxNCwicGF0aCI6Ii8zODQ5NDU5LzM0MTE3NTQ2MC0yNDM3ZGIwMi1mNjQwLTQyMjktYTVjYy04ZWQyZDUxNzIzNGYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MThUMTcyODM0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmFjZWQyMTFhNzU5M2E3YjlmNzc2MTY2ZTQ2MDE5MTk4ZWY0NTA2M2U3MTMzMjc1ZTk1NDNmN2I5ZjkyNjRmOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.arqWZVv_pe4j9KcPHBtiB-7XYwmOP7NH_6pYJnT3TmI)
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](https://private-user-images.githubusercontent.com/3849459/341175591-bee82b0d-c759-4246-bcc5-94fbb2c0caba.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMjQwMTQsIm5iZiI6MTcyMTMyMzcxNCwicGF0aCI6Ii8zODQ5NDU5LzM0MTE3NTU5MS1iZWU4MmIwZC1jNzU5LTQyNDYtYmNjNS05NGZiYjJjMGNhYmEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MThUMTcyODM0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTU0ODMzYWFmMjgxMzk2ODllZTRhMWIyYWFlMWM0YTNhZWZhNTkxZmQwMDM0ODhhOWFhNWI0OWMxNTFkODcxMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.3LH8yPgUs0qwYTr3ycbBuH4LHcMEkq83r8mbkcF6Bmk)
@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.
Thanks for finding the difference between our samples!
from vscode.
@alexr00 thqnk you for the swift fix!
from vscode.
@alexr00 Thank you!! Is there a rough estimate on when this might make it to the next VS Code release?
from vscode.
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.
Looks good now in insiders!
from vscode.
Related Issues (20)
- Terminal sticky scroll can show up for 1 frame when using page down in a pager
- Terminal suggest can sometimes appear when navigating history
- vs code with dev container and golang fails to run debugger on goroutine implementation HOT 4
- Open Editors: Collapse pinned and unpinned files HOT 1
- `workbench.list.defaultFindMode: "filter"` not respected
- vs code keeps flickers HOT 2
- +++(full video...)Urvashi Rautela’s Private Bathroom Leaked Video Oficial Leaks on Twitter
- My VsCode cant load extensions
- Terminal suggest: Accepting a completion can open the suggest widget again
- (XXX..Tamamını İzle@@)!! Şok Mustafa Sarıgül Videosu! İfşa ve Koruma Skandalı Gündemde HOT 1
- VScode random crash
- +!+[FULL VIDEO Leaked!!]*Urvashi Rautela’s Private Bathroom Leaked Video Oficial Leaks on Twitter
- npm issue
- extension host issue HOT 1
- Tooltips on hover only if called, editor.hover.enabled + SHIFT key
- pip command HOT 2
- Source control (and git integration) unresponsive after update to 1.91.1
- Persistent keys are not handled correctly on Windows
- shift+cmd+t not working
- lost git, search
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode.