When a CommentController creates a Comment and stores it in a CommentThread list, where are these comments stored?
Will they disappear when I close my VS Code session, or will they auto-persist?
Related
In the Api docs of VS Code there is a concept of Comment Thread under the workspace. Is there an example of this? What are these threads? Can developers have discussions on comments? Where are these comments saved?
https://code.visualstudio.com/api/references/vscode-api#CommentThread
I tried googling and the closest I came to an example was this issue thread.
https://github.com/microsoft/vscode/issues/71171
How could I open this comment discussions in my workspace? Sorry if this is a newbie VS Code question - just recently converted.
How could I open this comment discussions in my workspace? Sorry if this is a newbie VS Code question - just recently converted.
This is an API used by extension developers. This is relevant to you if you want to create your own VS Code extension, and you need a way to display comments/discussions inside the code.
See https://github.com/microsoft/vscode-extension-samples/tree/main/comment-sample for an example + screencast. You first need to create a CommentController. The CommentController allows you to create a CommentThread. A CommentThread is a list of comments. Each Comment will have a body (text or markdown), author, date, etc.
A common use-case of this API is to show code review comments. In particular, this is used by the GitHub Pull Requests extension, but you could imagine other use-cases for showing comments discussions inside a file.
Where are these comments saved?
This API deals only with the UI. You decide where the discussions are stored (e.g. make request to a service, or store them on disk). Once you have the data inside your extension, use this API to render them.
Helo, developers...
I am using SULU CMS, and as an option I installed ArticleBundle... Now, it is, basically working, but I have strange thing going on...
Everything I am describing now is in admin panel (no FE is involved in my problem)
(New published article) *** I click on Articles menu, it opens list of existing articles, and it shows all my published articles... When I click on ADD, form that opens is fine, it works, I fill in all needed data, and then, when I click Save and Publish, it saves, and it is OK... When I return to list of articles, that article is visible and editable..
(New Draft article) *** I click on Articles menu, it opens list of existing articles........ I click Add.... and when I click Save as Draft it saves article (I have UUID in url that I copy), but, when I return to list of articles, that DRAFT article is not shown in list... When I use link, directly (by entering UUID I got when creating article), it opens normally, editable, and when I click Save and Publish it works as it should be..
Please, If someone can help me how to get, also, Draft articles in initial list of articles, so I can click and edit it, and publish, too...
First check your User-Role if all article-bundle security rules are added.
Watch out there is a section "Article types" and a section "Globals" which are restricting your access to article-types and articles in general.
When this brings no change, do you have multiple article types and just open the wrong type tab or have no "all" tab (added by configuration).
For further investigation your Sulu, ArticleBundle and ElasticSearch versions would be appreciated.
I'm working on a taskpane add-in for Microsoft Word. So far, I'm able to place comments inside the Docx coming from the sidebar by abusing the OOXML insertion function.
I'm wondering if it's possible to monitor what the end user does with the comment.Is the commented deleted or accepted by the user? It is also significant to monitor the context of the comment - is that changed significantly?
I've considered the following approaches:
Create a ContentControl for the context of the comment to which events can be hooked that check for selection and changes. The downside here is that these ContentControl affect the UI in word and are probably not understood by our end-user. Are there more 'background' ways to do this without affecting the UI too much?
Create an interaction Hyperlink in the comment. I'm not sure if we can 'catch' this as an event or attach a JavaScript hook to this that actually makes it to the add-in?
Poll the document at set intervals to determine if something has happened to the comment or the context of the comment. I'm not sure what the correct hooks for this would be, and how to accurately localize all the changes across the document.
Is there an approach that I missed?
I'm aware that adding these comments is on the roadmap for the office-js, but this has been the case for a couple of years so I'm not sure what the timeframe is for this.
Edit
#Cindy thanks for taking the time to respond! With your help I've been able to get a functioning proof of concept using the hidden Content Control as a prepended OOXML snippet for the comment (So basically approach 1 combined with the OOXML insertion).
I can now capture some of the interaction by adding a binding to the content control and using the EventType.BindingDataChanged, something like this:
Office.context.document.bindings.addFromNamedItemAsync("MyContentControlTest", "text", {}, function (result) {
if (result.status == "succeeded") {
result.value.addHandlerAsync (
Office.EventType.BindingSelectionChanged, function()
{console.log("Don't touch me");}
)
})
})
It still feels a bit circumspect to attach a binding over a ContentControl, but I have not been able to add event listeners directly to the ContentControl. Given a named Content Control (MyContentControlTest) how could I attach an event like the OnDataChanged? And if i read correctly, this last feature is still in Preview, is there a way to find out what the expected release is?
I'm including the comments extension multiple times on a page. The StoragePid for each element is different. When I press the submit button from one comments instance, other instances submits the message as well. Is there any way to separate this?
I can recommend you my extension toctoc_comments.
It can import old comments and it can be used several times on a web page with same StoragePid.
The new extension is AJAX-based and has about (estimated...) 500% more functionality than comments. ratings are included, comment replies, web page previews.
There is no extension "tx_comments". It seems that you just have posted the table name. So which extension do you exactly mean?
In Visual Studio there is a tool called TaskList, which searches the code for TODO comments, compiles a list of them, and lets you go to a TODO item in the code by clicking on it in the list. Is there an equivalent tool in Matlab? Is there even a convention for TODO comments in Matlab?
What’s on my TODO list? is a post on 'Mike on the MATLAB Desktop'
concerning TODO lists.
Recent version of MATLAB can generate a report of TODO/FIXME. Check out this post, or read the relevant section in the documentation: Identifying Files with Reminder Annotations
There is no such tool in the MATLAB Editor, and no formal convention for the format of TODO comments.
EDIT: Apparently, there is such a tool on the MATLAB Desktop (as the other answers point out), but I guess it's not the easiest thing to find as I've somehow managed to miss it for years. One drawback (which the MathWorks appears to be planning to fix sometime in the future) is that you can only search individual directories.
In addition, there are a couple utilities submitted by users on the MathWorks File Exchange that you may want to check out which appear to perform similar functions:
Filegrep by Brett Shoelson
parseTags by Alexander Reinhold
searchtext by Kevin
You could try these out and compare them to the built-in MATLAB TODO report generator, or even use them as a guide to create your own TaskList-like functionality.
If you use a newer version of MATLAB and can't find the directory reports-drop down as explained by zellus
You can get to this report using the directory reports-drop down in the Current Directory Browser
http://blogs.mathworks.com/desktop/2008/03/17/whats-on-my-todo-list/,
you need to navigate to the context menu of the Current Folder view as shown in the following screenshot: (due to not sufficient reputation, I unfortunately cannot show the screenshot here directly)
Screenshot of the TODO/FIXME Report location