File tree 1 file changed +5
-6
lines changed 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ export class GoTestExplorer {
40
40
symProvider . provideDocumentSymbols ( doc , token )
41
41
) ;
42
42
43
+ // Process already open editors
44
+ vscode . window . visibleTextEditors . forEach ( ( ed ) => {
45
+ inst . documentUpdate ( ed . document ) ;
46
+ } ) ;
47
+
43
48
context . subscriptions . push ( ctrl ) ;
44
49
context . subscriptions . push ( vscode . window . registerTreeDataProvider ( 'go.test.profile' , inst . profiler . view ) ) ;
45
50
@@ -271,12 +276,6 @@ export class GoTestExplorer {
271
276
272
277
// Handle opened documents, document changes, and file creation.
273
278
private async documentUpdate ( doc : TextDocument , ranges ?: Range [ ] ) {
274
- if ( doc . uri . scheme === 'git' ) {
275
- // TODO(firelizzard18): When a workspace is reopened, VSCode passes us git: URIs. Why?
276
- const { path } = JSON . parse ( doc . uri . query ) ;
277
- doc = await vscode . workspace . openTextDocument ( path ) ;
278
- }
279
-
280
279
if ( ! doc . uri . path . endsWith ( '_test.go' ) ) {
281
280
return ;
282
281
}
You can’t perform that action at this time.
0 commit comments