Vscode: Support emoji IMEs in the integrated terminal

Created on 28 Sep 2017  Â·  19Comments  Â·  Source: microsoft/vscode

  • VSCode Version: Code - Insiders 1.17.0-insider (e059563fb6b8905de79ac4c75be537bb6dc74f5f, 2017-09-27T09:56:06.042Z)
  • OS Version: Windows_NT x64 10.0.17004

Steps to Reproduce:

  1. Bring up the emoji keyboard in windows
  2. Select vscode terminal and try clicking on an emoji to insert it

Bug
Corrupted Unicode characters are inserted

a

bug integrated-terminal upstream upstream-issue-linked

Most helpful comment

This bug requires me to switch to Iterm and leave my vscode focus in order to commit, would love a fix

All 19 comments

Looks like it's not even possible to paste emoji from clipboard.
And it also breaks everything if you paste combined characters...

@KillyMXI pasting emoji should work, it works differently to in the editor though. The representation of the emoji depends on the shell (eg. bash) which may have patchy support for combined emojis.

Checked it once again.
OK, pasting is shell dependent. I think I was focused on GHCi at that moment. It works in PowerShell, although doesn't accommodate additional space for emojis (doubled character width for them would be nice in monospaced environment with majority of fonts). No combined emojis - OK, that must be tricky enough stuff for now.

But I meant any combined characters. Here I paste two characters - one is a single Unicode symbol and the other one is made of "e" symbol and combining acute accent mark:

Cursor position is not synced with display after that.
(Should I open a separate issue for that?)

It's not a windows only issue. Same problem with macOS: #38064.

I cant bring up the emoji keyboard in vscode on windows. Has this been fixed yet?

Doesn't seem to be fixed

image

image

Version: 1.29.1 (user setup)
Commit: bc24f98b5f70467bc689abf41cc5550ca637088e
Date: 2018-11-15T19:13:36.375Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64

https://github.com/matchai/spacefish/issues/118

It still doesn't work in macOS either:

  • using the Emoji panel from macOS to insert an Emoji does nothing at all
  • pasting an Emoji kinda works but there are problems: if several Emoji are pasted, using backspace after, too many characters are removed and you can even remove part of the prompt

I've also had trouble inserting emoji on macOS. I assumed I was doing something wrong or had a transient issue, but I still see the same issues that @warpdesign describes. :-(

I'm used to having Haskell prompt with a pickle (for obvious reasons) in front:

:set prompt "🥒 >>> "

It works with VSCode when it's running bash e.g. inside docker container development. But it ceases to working when I use it inside Powershell in Windows.

Just giving me:

🥒 >>>

I think this is some Powershell/Windows problem.

This bug requires me to switch to Iterm and leave my vscode focus in order to commit, would love a fix

I don't think it's just related to the shell you are using I'm using powershell core as the default integrated terminal and though I can get some emojis typed in there, the characters before and after look weird if shown at all

Path names with emojis in them also result in issues. I have a preview edition of PowerShell installed that supports that, but VS Code both inserts a junk character and results in the terminal being off by two characters when typing & displaying inputs:
image
vs the vanilla PowerShell terminal:
image

I'm receiving a similar issue using Git Bash on Windows where the emoji has an additional character / corruption being inserted beside it:

image

When using the Terminal, I encounter the exact same problem with the junk characters, as @ListsOfArrays mentioned, but when using the debugger (Rust), all emojis work correctly, probably because it's not using the PowerShell. There has to be an error in the communication between PS and VSC.

Today I got really sad when I couldn't commit with an emoji, guys this is breaking people's hearts.

Using Windows Terminal powershell runs without problems. When I go to VS code integrated powershell it's broken. See screenshot.

stack1

This issue has nothing to do with PowerShell or VSCode, it's actually related to xtermjs issue https://github.com/xtermjs/xterm.js/issues/469 and it was mentioned above.

Note that this issue is about emoji _IMEs_ which are the popup you can use to input emojis. Simple support for them is patchy because WT and conpty seem to do something a little different to what they're trying to emoji, that's tracked in https://github.com/xtermjs/xterm.js/issues/2693

Was this page helpful?
0 / 5 - 0 ratings