{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/11363","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/11363/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/11363/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/11363/events","html_url":"https://github.com/dotnet/roslyn/issues/11363","id":155253790,"number":11363,"title":"Please maje InvisibleEditor public","user":{"login":"Mylan719","id":3776116,"avatar_url":"https://avatars.githubusercontent.com/u/3776116?v=3","gravatar_id":"","url":"https://api.github.com/users/Mylan719","html_url":"https://github.com/Mylan719","followers_url":"https://api.github.com/users/Mylan719/followers","following_url":"https://api.github.com/users/Mylan719/following{/other_user}","gists_url":"https://api.github.com/users/Mylan719/gists{/gist_id}","starred_url":"https://api.github.com/users/Mylan719/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mylan719/subscriptions","organizations_url":"https://api.github.com/users/Mylan719/orgs","repos_url":"https://api.github.com/users/Mylan719/repos","events_url":"https://api.github.com/users/Mylan719/events{/privacy}","received_events_url":"https://api.github.com/users/Mylan719/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-17T13:02:30Z","updated_at":"2016-05-17T13:02:30Z","closed_at":null,"body":"http://source.roslyn.io/#Microsoft.VisualStudio.LanguageServices/Implementation/ProjectSystem/InvisibleEditor.cs,16\r\n`InvisibleEditor` provides very nice visualstudio consistent way of editing files. \r\n\r\nThere are 2 ways of editing project files that are not open in active window in visualstudio:\r\n\r\n1.  Standard `using (StreamWriter sw = ...)` This is quite inconvenient and does not work well if file is open on another tab.\r\n2. Using `EnvDTE.Document` and `EnvDTE.TextDocument.CreateEditPoint()` This is very old API that has too few methods which are pretty low-level. On top of that `EnvDTE.TextDocument.MoveToAbsoluteOffset(0)` treats characters differently than rest of VS API.\r\n\r\nAs far as I searched `InvisibleEditor` is the best way to make edits so it would help a lot to have it publicly accessible.  "}}