{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/31078","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/31078/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/31078/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/31078/events","html_url":"https://github.com/Microsoft/vscode/issues/31078","id":244188147,"number":31078,"title":"Support large documents in extension host","user":{"login":"emackey","id":1235080,"avatar_url":"https://avatars2.githubusercontent.com/u/1235080?v=4","gravatar_id":"","url":"https://api.github.com/users/emackey","html_url":"https://github.com/emackey","followers_url":"https://api.github.com/users/emackey/followers","following_url":"https://api.github.com/users/emackey/following{/other_user}","gists_url":"https://api.github.com/users/emackey/gists{/gist_id}","starred_url":"https://api.github.com/users/emackey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emackey/subscriptions","organizations_url":"https://api.github.com/users/emackey/orgs","repos_url":"https://api.github.com/users/emackey/repos","events_url":"https://api.github.com/users/emackey/events{/privacy}","received_events_url":"https://api.github.com/users/emackey/received_events","type":"User","site_admin":false},"labels":[{"id":290465400,"url":"https://api.github.com/repos/Microsoft/vscode/labels/api","name":"api","color":"1d76db","default":false},{"id":578047123,"url":"https://api.github.com/repos/Microsoft/vscode/labels/under-discussion","name":"under-discussion","color":"708090","default":false}],"state":"open","locked":false,"assignee":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars2.githubusercontent.com/u/1794099?v=4","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"assignees":[{"login":"jrieken","id":1794099,"avatar_url":"https://avatars2.githubusercontent.com/u/1794099?v=4","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-07-19T22:04:53Z","updated_at":"2017-07-21T07:30:20Z","closed_at":null,"body":"- VSCode Version: 1.14.1\r\n- OS Version: Windows 7 and Windows 10, likely all OSes\r\n\r\nWhen editing documents with very long lines, such as lines containing data-URIs, the property `vscode.window.activeTextEditor` will be `undefined` when it should be defined.\r\n\r\nSteps to reproduce:\r\n\r\n1. Create a new (blank) VSCode extension, and add this command to `extension.ts`:\r\n\r\n```\r\n'use strict';\r\nimport * as vscode from 'vscode';\r\n\r\nexport function activate(context: vscode.ExtensionContext) {\r\n    let disposable = vscode.commands.registerCommand('bigDocTest.runDocTest', () => {\r\n\r\n        let hasActiveTextEditor = (vscode.window.activeTextEditor !== undefined);\r\n\r\n        if (hasActiveTextEditor) {\r\n            vscode.window.showInformationMessage('Success, activeTextEditor is defined.');\r\n        } else {\r\n            vscode.window.showErrorMessage('Oops, activeTextEditor is not defined.');\r\n        }\r\n    });\r\n\r\n    context.subscriptions.push(disposable);\r\n}\r\n\r\nexport function deactivate() {\r\n}\r\n```\r\n\r\n2. Launch this extension, load any normal text file, and run this command, you see the \"Success, activeTextEditor is defined\" information message appear.\r\n\r\n3. But, try loading a file with a very long line contained inside it, such as this one: [MetalRoughSpheres.gltf](https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/9ba6ae1352c8b59f684a11858b152615026660a4/2.0/MetalRoughSpheres/glTF-Embedded/MetalRoughSpheres.gltf).  This file has long lines due to the use of embedded data URIs in the file.  If you run the above sample extension while editing this file, you see \"Oops, activeTextEditor is not defined.\"\r\n\r\nThis makes it difficult for VSCode extensions to work with such files.  I'm the lead dev of the GLTF extension for VSCode, and this prevents my extension from running on GLTF files that embed large images as data URIs."},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/316927026","html_url":"https://github.com/Microsoft/vscode/issues/31078#issuecomment-316927026","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/31078","id":316927026,"user":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars2.githubusercontent.com/u/1794099?v=4","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"created_at":"2017-07-21T07:30:20Z","updated_at":"2017-07-21T07:30:20Z","body":"re https://github.com/Microsoft/vscode/issues/31078#issuecomment-316801062 - forgot to press reopen..."}}
{"actor":{"display_login":"jrieken"}}