Custom editor for TextDocumentContentProvider content #100612
Labels
custom-editors
Custom editor API (webview based editors)
feature-request
Request for new features or functionality
*out-of-scope
Posted issue is not in scope of VS Code
Milestone
I'm trying to integrate the awesome new custom editor (or rather viewer) for profile results that ships with the new JS debugger with the Julia extension.
Here is how I generally imagine that: we have a Julia REPL process where users can run some code in the profiler. We then provide a function that sends the profile results to the extension itself, and the extension displays the profile results using the fancy new profile results viewer. I don't want to write a
.cpuprofile
file, though. So what I'm trying right now is to add a customTextDocumentContentProvider
provider to our extension that exposes the profiler results as a virtual document. That part works well, but I can't get the custom editor that displays.cpuprofile
files to also display the virtual documents I'm providing.The uri I'm creating for a profile result is
const uri = vscode.Uri.parse('juliavsodeprofilerresults:' + new_uuid.toString() + '.cpuprofile')
. I would have thought that the.cpuprofile
would then automatically trigger the custom editorjsProfileVisualizer.cpuprofile.table
that is defined in here, but that doesn't seem to be the case.Is this scenario generally not supported? Or is this just a bug and it should in theory work? It would make for a very nice and smooth integration for the Julia extension!
CC @connor4312
The text was updated successfully, but these errors were encountered: