Silvenga/vscode-edi-x12-support

TypeError: Cannot read property 'document' of undefined

Closed this issue · 1 comments

PrettifyCommand and ConvertSeparatorsCommand

https://sentry.io/silvenga/vscode-edi-support/issues/536003786/
https://sentry.io/silvenga/vscode-edi-support/issues/536004503/

TypeError: Cannot read property 'document' of undefined
  File "C:\Users\REDACTED\.vscode\extensions\Silvenga.edi-x12-support-0.10.9\out\src\commands\convertSeparatorsCommand.js", line 31, col 60, in ConvertSeparatorsCommand.<anonymous>
    let document = vscode_1.window.activeTextEditor.document.getText();
  ?, in Generator.next
  File "C:\Users\REDACTED\.vscode\extensions\Silvenga.edi-x12-support-0.10.9\out\src\commands\convertSeparatorsCommand.js", line 16, col 71, in null.<anonymous>
    step((generator = generator.apply(thisArg, _arguments || [])).next());
  ?, in Promise
  File "C:\Users\REDACTED\.vscode\extensions\Silvenga.edi-x12-support-0.10.9\out\src\commands\convertSeparatorsCommand.js", line 12, col 12, in __awaiter
    return new (P || (P = Promise))(function (resolve, reject) {
  File "C:\Users\REDACTED\.vscode\extensions\Silvenga.edi-x12-support-0.10.9\out\src\commands\convertSeparatorsCommand.js", line 30, col 16, in ConvertSeparatorsCommand.command
    return __awaiter(this, void 0, void 0, function* () {
  File "C:\Users\REDACTED\.vscode\extensions\Silvenga.edi-x12-support-0.10.9\out\src\decorators\logExceptions.js", line 10, col 43, in ConvertSeparatorsCommand.descriptor.value
    const result = originalMethod.apply(this, args);
  File "Code\resources\app\out\vs\workbench\node\extensionHostProcess.js", line 595, col 160, in e._executeContributedCommand (c:\Program Files\Microsoft VS
  File "Code\resources\app\out\vs\workbench\node\extensionHostProcess.js", line 595, col 577, in e.$executeContributedCommand (c:\Program Files\Microsoft VS
  File "Code\resources\app\out\vs\workbench\node\extensionHostProcess.js", line 560, col 395, in e._doInvokeHandler (c:\Program Files\Microsoft VS
  File "Code\resources\app\out\vs\workbench\node\extensionHostProcess.js", line 560, col 113, in e._invokeHandler (c:\Program Files\Microsoft VS
  File "Code\resources\app\out\vs\workbench\node\extensionHostProcess.js", line 559, col 237, in e._receiveRequest (c:\Program Files\Microsoft VS
  File "Code\resources\app\out\vs\workbench\node\extensionHostProcess.js", line 559, col 6, in e._receiveOneMessage (c:\Program Files\Microsoft VS
  File "Code\resources\app\out\vs\workbench\node\extensionHostProcess.js", line 558, col 75, in c:\Program Files\Microsoft VS
  File "Code\resources\app\out\vs\workbench\node\extensionHostProcess.js", line 560, col 929, in c:\Program Files\Microsoft VS
  File "Code\resources\app\out\vs\workbench\node\extensionHostProcess.js", line 88, col 30, in c:\Program Files\Microsoft VS
  File "Code\resources\app\out\vs\workbench\node\extensionHostProcess.js", line 89, col 344, in e.fire (c:\Program Files\Microsoft VS
  File "Code\resources\app\out\vs\workbench\node\extensionHostProcess.js", line 143, col 1008, in Socket.<anonymous> (c:\Program Files\Microsoft VS
  File "events.js", line 96, col 13, in emitOne
  File "events.js", line 191, col 7, in Socket.emit
  File "_stream_readable.js", line 178, col 18, in readableAddChunk
  File "_stream_readable.js", line 136, col 10, in Socket.Readable.push
  File "net.js", line 560, col 20, in **Pipe.onread**
VSCode v1.22.2 - Extension v0.10.9

Looks like this was related to VSCode.