{"action":"opened","issue":{"url":"https://api.github.com/repos/rcjsuen/dockerfile-language-server-nodejs/issues/24","repository_url":"https://api.github.com/repos/rcjsuen/dockerfile-language-server-nodejs","labels_url":"https://api.github.com/repos/rcjsuen/dockerfile-language-server-nodejs/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/rcjsuen/dockerfile-language-server-nodejs/issues/24/comments","events_url":"https://api.github.com/repos/rcjsuen/dockerfile-language-server-nodejs/issues/24/events","html_url":"https://github.com/rcjsuen/dockerfile-language-server-nodejs/issues/24","id":238819275,"number":24,"title":"Rewrite the document symbols code to create an AST","user":{"login":"rcjsuen","id":15629116,"avatar_url":"https://avatars1.githubusercontent.com/u/15629116?v=3","gravatar_id":"","url":"https://api.github.com/users/rcjsuen","html_url":"https://github.com/rcjsuen","followers_url":"https://api.github.com/users/rcjsuen/followers","following_url":"https://api.github.com/users/rcjsuen/following{/other_user}","gists_url":"https://api.github.com/users/rcjsuen/gists{/gist_id}","starred_url":"https://api.github.com/users/rcjsuen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcjsuen/subscriptions","organizations_url":"https://api.github.com/users/rcjsuen/orgs","repos_url":"https://api.github.com/users/rcjsuen/repos","events_url":"https://api.github.com/users/rcjsuen/events{/privacy}","received_events_url":"https://api.github.com/users/rcjsuen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-27T11:26:03Z","updated_at":"2017-06-27T11:26:03Z","closed_at":null,"body":"At the moment, every response handler parses a Dockerfile with its own unique code. While a Dockerfile's syntax is not exactly very complicated, a lot of code that is very similar is replicated across the entire codebase. We should rewrite a parser from scratch that will create an AST of sorts that knows where a comment, directive, and instruction line starts and ends (including any escaped newlines in the case of instructions).\r\n\r\nTo validate that this parser is working as intended, it will first be used to replace `dockerSymbols.ts` before further refactorings across the entire codebase. "}}
{"actor":{"display_login":"rcjsuen"}}