File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/vs/workbench/contrib/scm/browser Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2132,7 +2132,8 @@ class SCMInputWidget {
2132
2132
this . contextViewService . hideContextView ( ) ;
2133
2133
} ) ) ;
2134
2134
2135
- const { element : mdElement } = this . instantiationService . createInstance ( MarkdownRenderer , { } ) . render ( message , {
2135
+ const renderer = disposables . add ( this . instantiationService . createInstance ( MarkdownRenderer , { } ) ) ;
2136
+ const renderedMarkdown = renderer . render ( message , {
2136
2137
actionHandler : {
2137
2138
callback : ( content ) => {
2138
2139
this . openerService . open ( content , { allowCommands : typeof message !== 'string' && message . isTrusted } ) ;
@@ -2141,7 +2142,8 @@ class SCMInputWidget {
2141
2142
disposables : disposables
2142
2143
} ,
2143
2144
} ) ;
2144
- element . appendChild ( mdElement ) ;
2145
+ disposables . add ( renderedMarkdown ) ;
2146
+ element . appendChild ( renderedMarkdown . element ) ;
2145
2147
}
2146
2148
const actionsContainer = append ( validationContainer , $ ( '.scm-editor-validation-actions' ) ) ;
2147
2149
const actionbar = new ActionBar ( actionsContainer ) ;
You can’t perform that action at this time.
0 commit comments