mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 23:55:26 +02:00
Fix bug 163197 (content assist fails on 1st invocation) for ssh
This commit is contained in:
parent
e0b55f83c4
commit
e7b4211807
1 changed files with 3 additions and 2 deletions
|
@ -94,8 +94,9 @@ public class SshHostShell extends AbstractHostShell implements IHostShell {
|
|||
&& !initialWorkingDirectory.equals("Command Shell") //$NON-NLS-1$ //FIXME workaround for bug 153047
|
||||
) {
|
||||
writeToShell("cd "+initialWorkingDirectory); //$NON-NLS-1$
|
||||
}
|
||||
if(commandToRun!=null && commandToRun.length()>0 && !commandToRun.equals(SHELL_INVOCATION)) {
|
||||
} else if (SHELL_INVOCATION.equals(commandToRun)) {
|
||||
writeToShell(getPromptCommand());
|
||||
} else if(commandToRun!=null && commandToRun.length()>0) {
|
||||
writeToShell(commandToRun);
|
||||
}
|
||||
} catch(Exception e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue