{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/40672","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/40672/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/40672/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/40672/events","html_url":"https://github.com/Microsoft/vscode/issues/40672","id":284011347,"node_id":"MDU6SXNzdWUyODQwMTEzNDc=","number":40672,"title":"Inconsistent strange behavior with TypeScript","user":{"login":"jchitel","id":530108,"node_id":"MDQ6VXNlcjUzMDEwOA==","avatar_url":"https://avatars3.githubusercontent.com/u/530108?v=4","gravatar_id":"","url":"https://api.github.com/users/jchitel","html_url":"https://github.com/jchitel","followers_url":"https://api.github.com/users/jchitel/followers","following_url":"https://api.github.com/users/jchitel/following{/other_user}","gists_url":"https://api.github.com/users/jchitel/gists{/gist_id}","starred_url":"https://api.github.com/users/jchitel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchitel/subscriptions","organizations_url":"https://api.github.com/users/jchitel/orgs","repos_url":"https://api.github.com/users/jchitel/repos","events_url":"https://api.github.com/users/jchitel/events{/privacy}","received_events_url":"https://api.github.com/users/jchitel/received_events","type":"User","site_admin":false},"labels":[{"id":272689423,"node_id":"MDU6TGFiZWwyNzI2ODk0MjM=","url":"https://api.github.com/repos/Microsoft/vscode/labels/needs%20more%20info","name":"needs more info","color":"E2A1C2","default":false},{"id":291055694,"node_id":"MDU6TGFiZWwyOTEwNTU2OTQ=","url":"https://api.github.com/repos/Microsoft/vscode/labels/typescript","name":"typescript","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":{"login":"mjbvz","id":12821956,"node_id":"MDQ6VXNlcjEyODIxOTU2","avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false},"assignees":[{"login":"mjbvz","id":12821956,"node_id":"MDQ6VXNlcjEyODIxOTU2","avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2017-12-21T21:36:35Z","updated_at":"2018-07-11T05:00:16Z","closed_at":"2018-07-11T05:00:15Z","author_association":"NONE","body":"- VSCode Version: Code 1.19.1 (0759f77bb8d86658bc935a10a64f6182c5a1eeba, 2017-12-19T09:35:14.671Z)\r\n- OS Version: Darwin x64 15.3.0\r\n- Extensions: \r\n\r\nExtension|Author (truncated)|Version\r\n---|---|---\r\ntslint|eg2|1.0.24\r\nvscode-todo-highlight|way|0.5.11\r\n\r\nBefore the 1.19 update, I was getting very strange behavior working with TypeScript where some new files that I created (sometimes when copying as well) would be using some different TypeScript configuration than the one it was supposed to be using. I have VS Code configured to use my local TypeScript configuration. The only way to fix this issue was to switch to VS Code's TypeScript version, then back to my own. Closing and reopening the file wouldn't work, and restarting VS Code didn't work. This was quite annoying but the workaround was simple enough.\r\n\r\nNow, after the update, the behavior seems to have manifested itself in a different way, in addition to the original issue. In some files, when I am dealing with a TypeScript error, sometimes the error underline stays even after I fixed it. The text range of the error seems to be trying to stay where the error was previously, even when I move the text around by adding/removing characters before the error. To fix this, I need to close and reopen the file. The TS version switch didn't work, and restarting VS Code didn't work.\r\n\r\nI also had one instance where I wanted to use the \"Ctrl+.\" feature to add an import for a missing value. The TypeScript server in the background seemed to reflect the change, removing the underline for the error, but the editor had not changed at all. Killing and restarting VS Code was the only way to fix this issue, and I was able to see the line that was added.\r\n\r\nIt's getting to the point where I can't trust that my code actually has no errors, or even if the TypeScript server even has the same code that I'm looking at. Due to the inconsistent nature of the problems and the fact that not all of the problems are solvable the same way, this seems to be a very obscure combination of problems.\r\n\r\n---\r\n\r\nSteps to Reproduce:\r\n\r\nI have not yet found an even remotely reliable way to reproduce any of these issues.\r\n\r\n<!-- Launch with `code --disable-extensions` to check. -->\r\nReproduces without extensions: Yes"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/404045518","html_url":"https://github.com/Microsoft/vscode/issues/40672#issuecomment-404045518","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/40672","id":404045518,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDA0NTUxOA==","user":{"login":"vscodebot[bot]","id":28792856,"node_id":"MDM6Qm90Mjg3OTI4NTY=","avatar_url":"https://avatars2.githubusercontent.com/in/2406?v=4","gravatar_id":"","url":"https://api.github.com/users/vscodebot%5Bbot%5D","html_url":"https://github.com/apps/vscodebot","followers_url":"https://api.github.com/users/vscodebot%5Bbot%5D/followers","following_url":"https://api.github.com/users/vscodebot%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/vscodebot%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/vscodebot%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vscodebot%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/vscodebot%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/vscodebot%5Bbot%5D/repos","events_url":"https://api.github.com/users/vscodebot%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/vscodebot%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-07-11T05:00:16Z","updated_at":"2018-07-11T05:00:16Z","author_association":"NONE","body":"This issue has been closed automatically because it needs more information and has not had recent activity. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.\n\nHappy Coding!"}}
{"actor":{"display_login":"vscodebot"}}