<p dir="auto">VsCode 0.10.4</p>
<p dir="auto">When I click on "Format Code" in the context menu, i get the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Main Thread sent to worker the following message:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19
workbench.main.js:16 Object {type: &quot;threadService&quot;, payload: Array[3]}payload: Array[3]type: &quot;threadService&quot;__proto__: Object
workbench.main.js:16 And the worker replied with an error:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19
workbench.main.js:16 Object {stack: &quot;TypeError: Cannot read property 'startLineNumber' …tor/common/worker/editorWorkerServer.js:14:31951)&quot;, message: &quot;TypeError: Cannot read property 'startLineNumber' of null&quot;}message: &quot;TypeError: Cannot read property 'startLineNumber' of null&quot;stack: &quot;TypeError: Cannot read property 'startLineNumber' of null↵    at Function.e.startPosition (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:4:24655)↵    at n.format (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/htmlWorker.js:8:13906)↵    at file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10265↵    at t.Class.define.then (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/base/common/worker/workerServer.js:4:25244)↵    at e.t._worker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:16843)↵    at e.formatDocument (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10236)↵    at t.OneWorker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:15:490)↵    at e.(anonymous function) [as formatDocument] (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:12479)↵    at t._handleRequest (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31878)↵    at t.dispatch (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31951)&quot;__proto__: Object
workbench.main.js:90 TypeError: Cannot read property 'startLineNumber' of null: TypeError: Cannot read property 'startLineNumber' of null
    at Function.e.startPosition (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:4:24655)
    at n.format (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/htmlWorker.js:8:13906)
    at file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10265
    at t.Class.define.then (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/base/common/worker/workerServer.js:4:25244)
    at e.t._worker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:16843)
    at e.formatDocument (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10236)
    at t.OneWorker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:15:490)
    at e.(anonymous function) [as formatDocument] (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:12479)
    at t._handleRequest (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31878)
    at t.dispatch (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31951)e.onUnexpectedError @ workbench.main.js:90(anonymous function) @ workbench.main.js:90e.onUnexpectedError @ workbench.main.js:10u @ workbench.main.js:9e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19
workbench.main.js:63 TypeError: Cannot read property 'startLineNumber' of null: TypeError: Cannot read property 'startLineNumber' of null
    at Function.e.startPosition (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:4:24655)
    at n.format (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/htmlWorker.js:8:13906)
    at file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10265
    at t.Class.define.then (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/base/common/worker/workerServer.js:4:25244)
    at e.t._worker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:16843)
    at e.formatDocument (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10236)
    at t.OneWorker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:15:490)
    at e.(anonymous function) [as formatDocument] (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:12479)
    at t._handleRequest (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31878)
    at t.dispatch (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31951)"><pre class="notranslate"><code class="notranslate">Main Thread sent to worker the following message:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19
workbench.main.js:16 Object {type: "threadService", payload: Array[3]}payload: Array[3]type: "threadService"__proto__: Object
workbench.main.js:16 And the worker replied with an error:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19
workbench.main.js:16 Object {stack: "TypeError: Cannot read property 'startLineNumber' …tor/common/worker/editorWorkerServer.js:14:31951)", message: "TypeError: Cannot read property 'startLineNumber' of null"}message: "TypeError: Cannot read property 'startLineNumber' of null"stack: "TypeError: Cannot read property 'startLineNumber' of null↵    at Function.e.startPosition (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:4:24655)↵    at n.format (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/htmlWorker.js:8:13906)↵    at file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10265↵    at t.Class.define.then (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/base/common/worker/workerServer.js:4:25244)↵    at e.t._worker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:16843)↵    at e.formatDocument (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10236)↵    at t.OneWorker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:15:490)↵    at e.(anonymous function) [as formatDocument] (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:12479)↵    at t._handleRequest (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31878)↵    at t.dispatch (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31951)"__proto__: Object
workbench.main.js:90 TypeError: Cannot read property 'startLineNumber' of null: TypeError: Cannot read property 'startLineNumber' of null
    at Function.e.startPosition (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:4:24655)
    at n.format (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/htmlWorker.js:8:13906)
    at file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10265
    at t.Class.define.then (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/base/common/worker/workerServer.js:4:25244)
    at e.t._worker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:16843)
    at e.formatDocument (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10236)
    at t.OneWorker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:15:490)
    at e.(anonymous function) [as formatDocument] (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:12479)
    at t._handleRequest (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31878)
    at t.dispatch (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31951)e.onUnexpectedError @ workbench.main.js:90(anonymous function) @ workbench.main.js:90e.onUnexpectedError @ workbench.main.js:10u @ workbench.main.js:9e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19
workbench.main.js:63 TypeError: Cannot read property 'startLineNumber' of null: TypeError: Cannot read property 'startLineNumber' of null
    at Function.e.startPosition (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:4:24655)
    at n.format (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/htmlWorker.js:8:13906)
    at file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10265
    at t.Class.define.then (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/base/common/worker/workerServer.js:4:25244)
    at e.t._worker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:16843)
    at e.formatDocument (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10236)
    at t.OneWorker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:15:490)
    at e.(anonymous function) [as formatDocument] (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:12479)
    at t._handleRequest (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31878)
    at t.dispatch (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31951)
</code></pre></div>
<ul dir="auto">
<li>open HTML file</li>
<li>run format (entire document)</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5047891/11807883/1facd200-a31d-11e5-8e73-29c14d0910e3.png"><img src="https://cloud.githubusercontent.com/assets/5047891/11807883/1facd200-a31d-11e5-8e73-29c14d0910e3.png" alt="image" style="max-width: 100%;"></a></p>