diff --git a/packages/typescript-explorer/src/state/stateManager.ts b/packages/typescript-explorer/src/state/stateManager.ts index 89139a3..0c1bf45 100644 --- a/packages/typescript-explorer/src/state/stateManager.ts +++ b/packages/typescript-explorer/src/state/stateManager.ts @@ -87,6 +87,11 @@ export class StateManager { } ) ) + + // make selection on open + if(this.selectionEnabled && vscode.window.activeTextEditor?.document.languageId === "typescript") { + vscode.commands.executeCommand("typescriptExplorer.selection.select") + } } setTypeTree(typeTree: TypeInfo|undefined) {