val terminalView = TerminalView.getWidgetByContent(selectedContent) as ShellTerminalWidget
This code work ok.
When I`m trying to call the same code again, exception occurs:
Cannot execute command when another command is typed: D:\_sources\IDEA\tests\Git Helper Test>
But not every time. Sometimes executes but mostly throws exception.
"D:\_sources\IDEA\tests\Git Helper Test>" is not command - this is terminal path
What I`m doing wrong?