title: Cannot colorize output sent to debug console of VS Code
body: <p>I am implementing a custom debugger using the <a href="https://microsoft.github.io/debug-adapter-protocol/specification" rel="nofollow noreferrer">debug adapter protocol</a> for VS Code (version 1.26.1). The debug adapter is written in Java and uses <a href="https://github.com/eclipse/lsp4j" rel="nofollow noreferrer">LSP4J 0.5.0M1</a> to communicate with the client.</p>
  
  <p>Basic launching and evaluating expression already works. I am able to enter an expression in VS Code's <em>Debug Console</em> and have the debug server evaluate it.</p>
  
  <p>Now I wanted to colorize the result returned from an <code>evaluate</code> request. For example, error messages for an expression that cannot be evaluated should be printed in red.</p>
  
  <p>The request is sent as this:</p>
  
  <pre class="lang-json prettyprint-override"><code>{
    "jsonrpc": "2.0",
    "id": 3,
    "method": "evaluate",
    "params": {
      "expression": "bad expression",
      "context": "repl"
    }
  }
  </code></pre>
  
  <p>The response looks like this and contains ANSI escape codes to colorize the output:</p>
  
  <pre class="lang-json prettyprint-override"><code>{
    "jsonrpc": "2.0",
    "id": 3,
    "result": {
      "result": "\u001b[31mFailed to evaluate expresion\n...\u001b[0m",
      "variablesReference": 0
    }
  }
  </code></pre>
  
  <p>However, the escape codes are ignored and the output in the <em>Debug Console</em> is like this:</p>
  
  <pre><code>[31mFailed to evaluate expression:
  ...[0m
  </code></pre>
  
  <p>Various issues have been opened asking VS Code to support ANSI escape codes or reporting color support as broken, some of them listed below</p>
  
  <ul>
  <li><p><a href="https://github.com/Microsoft/vscode-chrome-debug/issues/537" rel="nofollow noreferrer">Support colors in debug console</a></p></li>
  <li><p><a href="https://github.com/Microsoft/vscode/issues/4616" rel="nofollow noreferrer">Debug REPL lost coloring for escape sequences</a></p></li>
  <li><p><a href="https://github.com/Microsoft/vscode/issues/47457" rel="nofollow noreferrer">can not output string with color in debug console after update to 1.22.1</a></p></li>
  <li><p><a href="https://github.com/Microsoft/vscode/issues/21423" rel="nofollow noreferrer">Add ability to display high intensity ANSI colors in debug console</a></p></li>
  </ul>
  
  <p>But all of them seem to be resolved. </p>
  
  <p>Could anyone help me in finding the right response to have colored output in the <em>Debug Console</em>?</p>