Skip to content

Commit

Permalink
feat(vscode): select type on open
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsdev committed Oct 21, 2022
1 parent c385e69 commit c50fd2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/typescript-explorer/src/state/stateManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c50fd2c

Please sign in to comment.