Skip to content

Commit 325f907

Browse files
committed
Customize output URIs for simpler debugging
1 parent ec54a20 commit 325f907

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/App/Lab/Page.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,11 @@
772772
{
773773
if (!outputStates.TryGetValue(outputType, out var state))
774774
{
775-
state = new(await BlazorMonaco.Editor.Global.CreateModel(JSRuntime, value: text, language: language));
775+
state = new(await BlazorMonaco.Editor.Global.CreateModel(
776+
JSRuntime,
777+
value: text,
778+
language: language,
779+
uri: $"out/{Guid.CreateVersion7()}/{outputType}"));
776780
outputStates[outputType] = state;
777781
}
778782
else

0 commit comments

Comments
 (0)