File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/gwt/src/org/rstudio/studio/client/workbench/views/source/editors/text/rmd Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 70
70
import org .rstudio .studio .client .workbench .views .source .editors .text .TextEditingTargetRMarkdownHelper ;
71
71
import org .rstudio .studio .client .workbench .views .source .editors .text .ace .LineWidget ;
72
72
import org .rstudio .studio .client .workbench .views .source .editors .text .ace .Position ;
73
+ import org .rstudio .studio .client .workbench .views .source .editors .text .ace .Range ;
73
74
import org .rstudio .studio .client .workbench .views .source .editors .text .events .RenderFinishedEvent ;
74
75
import org .rstudio .studio .client .workbench .views .source .editors .text .events .ScopeTreeReadyEvent ;
75
76
import org .rstudio .studio .client .workbench .views .source .editors .text .events .EditorThemeStyleChangedEvent ;
@@ -1149,12 +1150,20 @@ private void processChunkExecQueue()
1149
1150
1150
1151
if (unit .mode == MODE_BATCH )
1151
1152
updateProgress ();
1152
-
1153
+
1153
1154
// let the chunk widget know it's started executing
1154
1155
if (outputs_ .containsKey (unit .chunkId ))
1155
1156
{
1156
1157
ChunkOutputUi output = outputs_ .get (unit .chunkId );
1157
1158
1159
+ // expand the chunk if it's in a fold
1160
+ Scope scope = output .getScope ();
1161
+ if (scope != null )
1162
+ {
1163
+ docDisplay_ .unfold (Range .fromPoints (scope .getPreamble (),
1164
+ scope .getEnd ()));
1165
+ }
1166
+
1158
1167
output .getOutputWidget ().setCodeExecuting (true , executingChunk_ .mode );
1159
1168
syncWidth ();
1160
1169
You can’t perform that action at this time.
0 commit comments