Open roblourens opened 1 month ago
This should also support scenarios such as contributing a button to help insert suggested settings into the user's settings.json file.
Yeah, but I wonder how we would differentiate between that and other json codeblocks. Maybe the extension needs to be able to set a custom context key on the codeblock.
Yeah, but I wonder how we would differentiate between that and other json codeblocks. Maybe the extension needs to be able to set a custom context key on the codeblock.
The extension would be aware of the codeblocks being streamed and could set the context key on the codeblock at that point?
Yeah, but we don't have a mechanism to set a context key that is scoped to a codeblock.
An extension should be able to contribute a menu button to the floating toolbar on chat codeblock editors. There should be a context key for the language of the codeblock and it should be able to get the URI of that editor. eg- Live Preview previewing 'html' codeblocks