{"action":"created","issue":{"url":"https://api.github.com/repos/neilsustc/vscode-markdown/issues/200","repository_url":"https://api.github.com/repos/neilsustc/vscode-markdown","labels_url":"https://api.github.com/repos/neilsustc/vscode-markdown/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/neilsustc/vscode-markdown/issues/200/comments","events_url":"https://api.github.com/repos/neilsustc/vscode-markdown/issues/200/events","html_url":"https://github.com/neilsustc/vscode-markdown/issues/200","id":330733898,"node_id":"MDU6SXNzdWUzMzA3MzM4OTg=","number":200,"title":"Text snippets don't expand correctly when using text expansion, with Markdown All in One enabled","user":{"login":"pauljacobson","id":2912202,"node_id":"MDQ6VXNlcjI5MTIyMDI=","avatar_url":"https://avatars3.githubusercontent.com/u/2912202?v=4","gravatar_id":"","url":"https://api.github.com/users/pauljacobson","html_url":"https://github.com/pauljacobson","followers_url":"https://api.github.com/users/pauljacobson/followers","following_url":"https://api.github.com/users/pauljacobson/following{/other_user}","gists_url":"https://api.github.com/users/pauljacobson/gists{/gist_id}","starred_url":"https://api.github.com/users/pauljacobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauljacobson/subscriptions","organizations_url":"https://api.github.com/users/pauljacobson/orgs","repos_url":"https://api.github.com/users/pauljacobson/repos","events_url":"https://api.github.com/users/pauljacobson/events{/privacy}","received_events_url":"https://api.github.com/users/pauljacobson/received_events","type":"User","site_admin":false},"labels":[{"id":510878241,"node_id":"MDU6TGFiZWw1MTA4NzgyNDE=","url":"https://api.github.com/repos/neilsustc/vscode-markdown/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-08T17:02:24Z","updated_at":"2018-06-09T08:01:46Z","closed_at":null,"author_association":"NONE","body":"## Introduction\r\n\r\nI use Alfred.app for text expansion. I noticed that when I try to expand text snippets in VS Code with Markdown All in One enabled, the text snippets fail to expand completely.\r\n\r\n## Expected behavior\r\n\r\nWhen using Alfred.app to expand text snippets, the text snippets should expand fully. For example, I've configured Alfred.app to expand `,ymd` into the current date, using this format: `2018-06-08`.\r\n\r\nAnother example is `lipsum1` that expands into the following:\r\n\r\n>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\r\n\r\n## Actual behavior\r\n\r\nInstead of expanding these simple snippets correctly, the snippets expand partially, leaving the first character of two of the snippet in place. Here is a [demonstration of text expansion with Markdown All in One _disabled_, and _enabled_](https://jacobson-cloud.s3.amazonaws.com/Shared%20media/markdown_text_expansion_issue.gif)):\r\n\r\n![](http://cld.wthms.co/QMe4Km+)\r\n\r\n## Steps to reproduce behavior\r\n\r\n1. I started VS Code with all extensions disabled. My text snippets expanded correctly, so this isn't an issue with VS Code.\r\n2. I restarted VS Code normally, and tested my snippets again. I was able to reproduce the issue.\r\n3. I disabled Markdown All in One, attempted the snippets again. This time, the snippets expanded correctly.\r\n4. I re-enabled Markdown All in One again, the issue returned.\r\n\r\nI captured the following error logs using VS Code's Developer Tools while testing with the Markdown All in One extension _enabled_:\r\n\r\nhttps://gist.github.com/pauljacobson/e726698e68d7be5deeb727079fa8cf78\r\n\r\nWhen I tested with Markdown All in One _disabled_, there were no errors in the Developer Tools console.\r\n\r\n## System information\r\n\r\nOS: macOS 10.13.4\r\nRAM: 16GB 2133 MHz\r\nModel: MacBook Pro (15-inch, 2017)\r\nVS Code version: 1.24.0 (this issue manifested with previous versions of VS Code)"},"comment":{"url":"https://api.github.com/repos/neilsustc/vscode-markdown/issues/comments/395949654","html_url":"https://github.com/neilsustc/vscode-markdown/issues/200#issuecomment-395949654","issue_url":"https://api.github.com/repos/neilsustc/vscode-markdown/issues/200","id":395949654,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTk0OTY1NA==","user":{"login":"neilsustc","id":7588612,"node_id":"MDQ6VXNlcjc1ODg2MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/7588612?v=4","gravatar_id":"","url":"https://api.github.com/users/neilsustc","html_url":"https://github.com/neilsustc","followers_url":"https://api.github.com/users/neilsustc/followers","following_url":"https://api.github.com/users/neilsustc/following{/other_user}","gists_url":"https://api.github.com/users/neilsustc/gists{/gist_id}","starred_url":"https://api.github.com/users/neilsustc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilsustc/subscriptions","organizations_url":"https://api.github.com/users/neilsustc/orgs","repos_url":"https://api.github.com/users/neilsustc/repos","events_url":"https://api.github.com/users/neilsustc/events{/privacy}","received_events_url":"https://api.github.com/users/neilsustc/received_events","type":"User","site_admin":false},"created_at":"2018-06-09T08:01:46Z","updated_at":"2018-06-09T08:01:46Z","author_association":"OWNER","body":"Thanks for the information. It seems that Alfred.app listens to the typing events and does auto-replacement.\r\n\r\nBut I really have no idea about how this extension conflicts with it 😔. One suspected reason might be performance issue caused by this extension, e.g. #181. I'm not sure but let's wait to see whether this will be also resolved by #181."}}
{"actor":{"display_login":"neilsustc"}}