File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ export class DocumentationPreviewEditor implements vscode.Disposable {
110
110
this . activeTextEditor = vscode . window . activeTextEditor ;
111
111
this . subscriptions . push (
112
112
this . webviewPanel . webview . onDidReceiveMessage ( this . receiveMessage , this ) ,
113
+ vscode . window . onDidChangeActiveTextEditor ( this . handleActiveTextEditorChange , this ) ,
113
114
vscode . window . onDidChangeTextEditorSelection (
114
115
this . handleTextEditorSelectionChange ,
115
116
this
@@ -166,6 +167,14 @@ export class DocumentationPreviewEditor implements vscode.Disposable {
166
167
}
167
168
}
168
169
170
+ private handleActiveTextEditorChange ( textEditor : vscode . TextEditor | undefined ) {
171
+ if ( textEditor === undefined ) {
172
+ return ;
173
+ }
174
+ this . activeTextEditor = textEditor ;
175
+ this . convertDocumentation ( textEditor ) ;
176
+ }
177
+
169
178
private handleTextEditorSelectionChange ( event : vscode . TextEditorSelectionChangeEvent ) {
170
179
if ( event . textEditor === undefined ) {
171
180
return ;
You can’t perform that action at this time.
0 commit comments