powerlevel10k icon indicating copy to clipboard operation
powerlevel10k copied to clipboard

vscode cannot trigger copilot prompt after oh-my-zsh uses p10k theme

Open Syed-Wang opened this issue 2 years ago • 18 comments

Snipaste_2023-12-20_11-37-19

Syed-Wang avatar Dec 20 '23 03:12 Syed-Wang

It might be the same thing as https://github.com/romkatv/powerlevel10k/issues/2480#issuecomment-1793676187

Please try that solution and let me know if it helps. If it does, it'll definitely need to change something in powerlevel10k to make this sort of thing automatic.

romkatv avatar Dec 20 '23 08:12 romkatv

Snipaste_2023-12-21_15-05-51

Thanks, the dots can display normally, but it does not solve the problem about Copilot prompts.

Syed-Wang avatar Dec 21 '23 07:12 Syed-Wang

I've never used vscode copilot. Can you describe what exactly does not work?

  • What do you do?
  • When you do that...
    • what happens if your theme is bira?
    • what happens if your theme is powerlevel10k?

romkatv avatar Dec 21 '23 08:12 romkatv

copilot is an AI assistant, and the features I've described are provided by the GitHub Copilot Chat extension in vscode, which provides some suggestions via the vscode terminal.

I work in Ubuntu and use oh-my-zsh, copilot has no problem when using the built-in theme (I tried ZSH_THEME="random"). As you can see, when I click on the star, the suggestion is automatically given. Snipaste_2023-12-21_17-22-38

But with the powerlevel10k theme, there was no star button, so I couldn't use the GitHub Copilot Chat extension's quick suggestions for terminals. As shown in the figure. Snipaste_2023-12-21_17-35-14

Syed-Wang avatar Dec 21 '23 09:12 Syed-Wang

Thanks for the info. I'll try to reproduce this.

romkatv avatar Dec 21 '23 09:12 romkatv

Excuse me. Is there a solution to this situation?

Syed-Wang avatar Jan 05 '24 08:01 Syed-Wang

I haven't done anything here yet. I'm not sure when I'll get around to it.

romkatv avatar Jan 05 '24 08:01 romkatv

Same problem

image image

leozvoy avatar Jul 29 '24 06:07 leozvoy

See https://github.com/romkatv/powerlevel10k/issues/2480#issuecomment-1793676187

romkatv avatar Jul 29 '24 06:07 romkatv

See #2480 (comment)

Thanks, but it didn't work for me. Probably this is an issue with vscode.

leozvoy avatar Jul 29 '24 07:07 leozvoy

I'm aware. It works with POWERLEVEL9K_TERM_SHELL_INTEGRATION=true for you, right?

romkatv avatar Jul 29 '24 07:07 romkatv

I'm aware. It works with POWERLEVEL9K_TERM_SHELL_INTEGRATION=true for you, right?

I added POWERLEVEL9K_TERM_SHELL_INTEGRATION=true to ~/.p10k.zsh, but I didn't see any different.

My powerlevel10k works perfectly expect missing the copilot hint button in the vscode terminal.

leozvoy avatar Jul 29 '24 07:07 leozvoy

What is the output of the following command?

typeset -p _POWERLEVEL9K_TERM_SHELL_INTEGRATION

romkatv avatar Jul 29 '24 07:07 romkatv

What is the output of the following command?

typeset -p _POWERLEVEL9K_TERM_SHELL_INTEGRATION

typeset -i _POWERLEVEL9K_TERM_SHELL_INTEGRATION=1

leozvoy avatar Jul 29 '24 07:07 leozvoy

Thanks for the additional info. The comment you've quoted says that POWERLEVEL9K_TERM_SHELL_INTEGRATION=true is enough to work around the problem, but for you it isn't. That's useful to know.

romkatv avatar Jul 29 '24 07:07 romkatv

Thanks for the additional info. The comment you've quoted says that POWERLEVEL9K_TERM_SHELL_INTEGRATION=true is enough to work around the problem, but for you it isn't. That's useful to know.

It's not a big deal, PowerLevel10K is a lot better than other themes, and it would be perfect if this problem could be solved in the future😁

leozvoy avatar Jul 29 '24 07:07 leozvoy