microsoft / inshellisense

IDE style command line auto complete
MIT License
8.22k stars 180 forks source link

PSReadLine conflict with inshellisense #109

Closed doggy8088 closed 6 months ago

doggy8088 commented 7 months ago

Describe the bug

The PSReadLine contains command history listing feature. This feature seems conflict with inshellisense. I don't know how this can be fixed.

To Reproduce Steps to reproduce the behavior:

  1. Type inshellisense --shell pwsh and hit Enter

  2. Type git, then it will show my previous command git reset --soft HEAD~.

    image

  3. I have a workaround that is type 3 spaces.

    image

Expected behavior

I expected to show inshellisense no matter how PSReadLine does.

Environment

Additional context N/A

cpendery commented 6 months ago

@doggy8088 which version of pwsh are you using?

cpendery commented 6 months ago

I'm not able to replicate this issue at this point. If you build from source via the following commands and the logs at ~/.inshellisense/inshellisense.log would be helpful for debugging.

git clone https://github.com/microsoft/inshellisense.git
cd inshellisense
npm install
npm run build && npm link
is -s pwsh -V # this will start inshellisense with verbose logs on, follow the setups above and then exit 

I'm going to close this until I have those logs.