{"action":"created","comment":{"url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/comments/352946129","pull_request_review_id":325849548,"id":352946129,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM1Mjk0NjEyOQ==","diff_hunk":"@@ -0,0 +1,412 @@\n+//\n+// Copyright (c) Microsoft. All rights reserved.\n+// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n+//\n+\n+using System;\n+using System.Collections.Concurrent;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Management.Automation;\n+using System.Management.Automation.Language;\n+using System.Threading;\n+using System.Threading.Tasks;\n+using Microsoft.Extensions.Logging;\n+using Microsoft.PowerShell.EditorServices.Logging;\n+using Microsoft.PowerShell.EditorServices.Services.DebugAdapter;\n+using Microsoft.PowerShell.EditorServices.Utility;\n+\n+namespace Microsoft.PowerShell.EditorServices.Services\n+{\n+    internal class BreakpointService\n+    {\n+        private const string s_psesGlobalVariableNamePrefix = \"__psEditorServices_\";\n+        private readonly ILogger<BreakpointService> _logger;\n+        private readonly PowerShellContextService _powerShellContextService;\n+\n+        private static int breakpointHitCounter;\n+\n+        public BreakpointService(\n+            ILoggerFactory factory,\n+            PowerShellContextService powerShellContextService)\n+        {\n+            _logger = factory.CreateLogger<BreakpointService>();\n+            _powerShellContextService = powerShellContextService;\n+        }\n+\n+        public async Task<BreakpointDetails[]> SetBreakpointsAsync(string escapedScriptPath, IEnumerable<BreakpointDetails> breakpoints)\n+        {\n+            if (VersionUtils.IsPS7OrGreater)\n+            {\n+                return BreakpointApiUtils.SetBreakpoints(\n+                    _powerShellContextService.CurrentRunspace.Runspace.Debugger,\n+                    breakpoints)\n+                    .Select(BreakpointDetails.Create).ToArray();\n+            }\n+\n+            // Legacy behavior\n+            PSCommand psCommand = null;\n+            List<BreakpointDetails> configuredBreakpoints = new List<BreakpointDetails>();\n+            foreach (BreakpointDetails breakpoint in breakpoints)\n+            {\n+                // On first iteration psCommand will be null, every subsequent\n+                // iteration will need to start a new statement.\n+                if (psCommand == null)\n+                {\n+                    psCommand = new PSCommand();\n+                }\n+                else\n+                {\n+                    psCommand.AddStatement();\n+                }\n+\n+                psCommand\n+                    .AddCommand(@\"Microsoft.PowerShell.Utility\\Set-PSBreakpoint\")\n+                    .AddParameter(\"Script\", escapedScriptPath)\n+                    .AddParameter(\"Line\", breakpoint.LineNumber);\n+\n+                // Check if the user has specified the column number for the breakpoint.\n+                if (breakpoint.ColumnNumber.HasValue && breakpoint.ColumnNumber.Value > 0)\n+                {\n+                    // It bums me out that PowerShell will silently ignore a breakpoint\n+                    // where either the line or the column is invalid.  I'd rather have an\n+                    // error or warning message I could relay back to the client.\n+                    psCommand.AddParameter(\"Column\", breakpoint.ColumnNumber.Value);\n+                }\n+\n+                // Check if this is a \"conditional\" line breakpoint.\n+                if (!string.IsNullOrWhiteSpace(breakpoint.Condition) ||\n+                    !string.IsNullOrWhiteSpace(breakpoint.HitCondition))\n+                {\n+                    ScriptBlock actionScriptBlock =\n+                        GetBreakpointActionScriptBlock(breakpoint);\n+\n+                    // If there was a problem with the condition string,\n+                    // move onto the next breakpoint.\n+                    if (actionScriptBlock == null)\n+                    {\n+                        configuredBreakpoints.Add(breakpoint);\n+                        continue;\n+                    }\n+\n+                    psCommand.AddParameter(\"Action\", actionScriptBlock);\n+                }\n+            }\n+\n+            // If no PSCommand was created then there are no breakpoints to set.\n+            if (psCommand != null)\n+            {\n+                IEnumerable<Breakpoint> setBreakpoints =\n+                    await _powerShellContextService.ExecuteCommandAsync<Breakpoint>(psCommand);\n+                configuredBreakpoints.AddRange(\n+                    setBreakpoints.Select(BreakpointDetails.Create));\n+            }\n+\n+            return configuredBreakpoints.ToArray();\n+        }\n+\n+        public async Task<IEnumerable<CommandBreakpointDetails>> SetCommandBreakpoints(IEnumerable<CommandBreakpointDetails> breakpoints)\n+        {\n+            if (VersionUtils.IsPS7OrGreater)\n+            {\n+                return BreakpointApiUtils.SetBreakpoints(\n+                    _powerShellContextService.CurrentRunspace.Runspace.Debugger,\n+                    breakpoints)\n+                    .Select(CommandBreakpointDetails.Create);\n+            }\n+\n+            // Legacy behavior\n+            PSCommand psCommand = null;\n+            List<CommandBreakpointDetails> configuredBreakpoints = new List<CommandBreakpointDetails>();\n+            foreach (CommandBreakpointDetails breakpoint in breakpoints)\n+            {\n+                // On first iteration psCommand will be null, every subsequent\n+                // iteration will need to start a new statement.\n+                if (psCommand == null)\n+                {\n+                    psCommand = new PSCommand();\n+                }\n+                else\n+                {\n+                    psCommand.AddStatement();\n+                }\n+\n+                psCommand\n+                    .AddCommand(@\"Microsoft.PowerShell.Utility\\Set-PSBreakpoint\")\n+                    .AddParameter(\"Command\", breakpoint.Name);\n+\n+                // Check if this is a \"conditional\" line breakpoint.\n+                if (!string.IsNullOrWhiteSpace(breakpoint.Condition) ||\n+                    !string.IsNullOrWhiteSpace(breakpoint.HitCondition))\n+                {\n+                    ScriptBlock actionScriptBlock =\n+                        GetBreakpointActionScriptBlock(breakpoint);\n+\n+                    // If there was a problem with the condition string,\n+                    // move onto the next breakpoint.\n+                    if (actionScriptBlock == null)\n+                    {\n+                        configuredBreakpoints.Add(breakpoint);\n+                        continue;\n+                    }\n+\n+                    psCommand.AddParameter(\"Action\", actionScriptBlock);\n+                }\n+            }\n+\n+            // If no PSCommand was created then there are no breakpoints to set.\n+            if (psCommand != null)\n+            {\n+                IEnumerable<Breakpoint> setBreakpoints =\n+                    await _powerShellContextService.ExecuteCommandAsync<Breakpoint>(psCommand);\n+                configuredBreakpoints.AddRange(\n+                    setBreakpoints.Select(CommandBreakpointDetails.Create));\n+            }\n+\n+            return configuredBreakpoints;\n+        }\n+\n+        /// <summary>\n+        /// Clears all breakpoints in the current session.\n+        /// </summary>\n+        public async Task RemoveAllBreakpointsAsync()\n+        {\n+            try\n+            {\n+                if (VersionUtils.IsPS7OrGreater)\n+                {\n+                    foreach (Breakpoint breakpoint in BreakpointApiUtils.GetBreakpoints(\n+                            _powerShellContextService.CurrentRunspace.Runspace.Debugger))\n+                    {\n+                        BreakpointApiUtils.RemoveBreakpoint(\n+                            _powerShellContextService.CurrentRunspace.Runspace.Debugger,\n+                            breakpoint);\n+                    }\n+\n+                    return;\n+                }\n+\n+                // Legacy behavior\n+\n+                PSCommand psCommand = new PSCommand();\n+                psCommand.AddCommand(@\"Microsoft.PowerShell.Utility\\Get-PSBreakpoint\");\n+                psCommand.AddCommand(@\"Microsoft.PowerShell.Utility\\Remove-PSBreakpoint\");\n+\n+                await _powerShellContextService.ExecuteCommandAsync<object>(psCommand);\n+            }\n+            catch (Exception e)\n+            {\n+                _logger.LogException(\"Caught exception while clearing breakpoints from session\", e);\n+            }\n+        }\n+\n+        public async Task RemoveBreakpoints(IEnumerable<Breakpoint> breakpoints)\n+        {\n+            if (VersionUtils.IsPS7OrGreater)\n+            {\n+                foreach (Breakpoint breakpoint in breakpoints)\n+                {\n+                    BreakpointApiUtils.RemoveBreakpoint(\n+                        _powerShellContextService.CurrentRunspace.Runspace.Debugger,\n+                        breakpoint);\n+                }\n+\n+                return;\n+            }\n+\n+            // Legacy behavior\n+            var breakpointIds = breakpoints.Select(b => b.Id).ToArray();\n+            if(breakpointIds.Length > 0)\n+            {\n+                PSCommand psCommand = new PSCommand();\n+                psCommand.AddCommand(@\"Microsoft.PowerShell.Utility\\Remove-PSBreakpoint\");\n+                psCommand.AddParameter(\"Id\", breakpoints.Select(b => b.Id).ToArray());\n+\n+                await _powerShellContextService.ExecuteCommandAsync<object>(psCommand);\n+            }\n+        }\n+\n+        /// <summary>\n+        /// Inspects the condition, putting in the appropriate scriptblock template\n+        /// \"if (expression) { break }\".  If errors are found in the condition, the\n+        /// breakpoint passed in is updated to set Verified to false and an error\n+        /// message is put into the breakpoint.Message property.\n+        /// </summary>\n+        /// <param name=\"breakpoint\"></param>\n+        /// <returns></returns>\n+        private ScriptBlock GetBreakpointActionScriptBlock(\n+            BreakpointDetailsBase breakpoint)\n+        {\n+            try\n+            {\n+                ScriptBlock actionScriptBlock;\n+                int? hitCount = null;\n+\n+                // If HitCondition specified, parse and verify it.\n+                if (!(string.IsNullOrWhiteSpace(breakpoint.HitCondition)))\n+                {\n+                    if (int.TryParse(breakpoint.HitCondition, out int parsedHitCount))\n+                    {\n+                        hitCount = parsedHitCount;\n+                    }\n+                    else\n+                    {\n+                        breakpoint.Verified = false;\n+                        breakpoint.Message = $\"The specified HitCount '{breakpoint.HitCondition}' is not valid. \" +\n+                                              \"The HitCount must be an integer number.\";\n+                        return null;\n+                    }\n+                }\n+\n+                // Create an Action scriptblock based on condition and/or hit count passed in.\n+                if (hitCount.HasValue && string.IsNullOrWhiteSpace(breakpoint.Condition))\n+                {\n+                    // In the HitCount only case, this is simple as we can just use the HitCount\n+                    // property on the breakpoint object which is represented by $_.\n+                    string action = $\"if ($_.HitCount -eq {hitCount}) {{ break }}\";\n+                    actionScriptBlock = ScriptBlock.Create(action);\n+                }\n+                else if (!string.IsNullOrWhiteSpace(breakpoint.Condition))\n+                {\n+                    // Must be either condition only OR condition and hit count.\n+                    actionScriptBlock = ScriptBlock.Create(breakpoint.Condition);\n+\n+                    // Check for simple, common errors that ScriptBlock parsing will not catch\n+                    // e.g. $i == 3 and $i > 3\n+                    if (!ValidateBreakpointConditionAst(actionScriptBlock.Ast, out string message))\n+                    {\n+                        breakpoint.Verified = false;\n+                        breakpoint.Message = message;\n+                        return null;\n+                    }\n+\n+                    // Check for \"advanced\" condition syntax i.e. if the user has specified\n+                    // a \"break\" or  \"continue\" statement anywhere in their scriptblock,\n+                    // pass their scriptblock through to the Action parameter as-is.\n+                    Ast breakOrContinueStatementAst =\n+                        actionScriptBlock.Ast.Find(\n+                            ast => (ast is BreakStatementAst || ast is ContinueStatementAst), true);\n+\n+                    // If this isn't advanced syntax then the conditions string should be a simple\n+                    // expression that needs to be wrapped in a \"if\" test that conditionally executes\n+                    // a break statement.\n+                    if (breakOrContinueStatementAst == null)\n+                    {\n+                        string wrappedCondition;\n+\n+                        if (hitCount.HasValue)\n+                        {\n+                            Interlocked.Increment(ref breakpointHitCounter);\n+\n+                            string globalHitCountVarName =\n+                                $\"$global:{s_psesGlobalVariableNamePrefix}BreakHitCounter_{breakpointHitCounter}\";\n+\n+                            wrappedCondition =\n+                                $\"if ({breakpoint.Condition}) {{ if (++{globalHitCountVarName} -eq {hitCount}) {{ break }} }}\";\n+                        }\n+                        else\n+                        {\n+                            wrappedCondition = $\"if ({breakpoint.Condition}) {{ break }}\";\n+                        }\n+\n+                        actionScriptBlock = ScriptBlock.Create(wrappedCondition);\n+                    }\n+                }\n+                else\n+                {\n+                    // Shouldn't get here unless someone called this with no condition and no hit count.\n+                    actionScriptBlock = ScriptBlock.Create(\"break\");\n+                    _logger.LogWarning(\"No condition and no hit count specified by caller.\");\n+                }\n+\n+                return actionScriptBlock;\n+            }\n+            catch (ParseException ex)\n+            {\n+                // Failed to create conditional breakpoint likely because the user provided an\n+                // invalid PowerShell expression. Let the user know why.\n+                breakpoint.Verified = false;\n+                breakpoint.Message = ExtractAndScrubParseExceptionMessage(ex, breakpoint.Condition);\n+                return null;\n+            }\n+        }\n+\n+        private bool ValidateBreakpointConditionAst(Ast conditionAst, out string message)\n+        {\n+            message = string.Empty;\n+\n+            // We are only inspecting a few simple scenarios in the EndBlock only.\n+            if (conditionAst is ScriptBlockAst scriptBlockAst &&\n+                scriptBlockAst.BeginBlock == null &&\n+                scriptBlockAst.ProcessBlock == null &&\n+                scriptBlockAst.EndBlock != null &&\n+                scriptBlockAst.EndBlock.Statements.Count == 1)\n+            {\n+                StatementAst statementAst = scriptBlockAst.EndBlock.Statements[0];\n+                string condition = statementAst.Extent.Text;\n+\n+                if (statementAst is AssignmentStatementAst)\n+                {\n+                    message = FormatInvalidBreakpointConditionMessage(condition, \"Use '-eq' instead of '=='.\");\n+                    return false;\n+                }\n+\n+                if (statementAst is PipelineAst pipelineAst\n+                    && pipelineAst.PipelineElements.Count == 1\n+                    && pipelineAst.PipelineElements[0].Redirections.Count > 0)\n+                {\n+                    message = FormatInvalidBreakpointConditionMessage(condition, \"Use '-gt' instead of '>'.\");\n+                    return false;\n+                }\n+            }\n+\n+            return true;\n+        }\n+\n+        private string ExtractAndScrubParseExceptionMessage(ParseException parseException, string condition)","path":"src/PowerShellEditorServices/Services/DebugAdapter/BreakpointService.cs","position":366,"original_position":366,"commit_id":"ef6298b09c9ccb289cefa2b42ce9e5b12ad8de83","original_commit_id":"ef6298b09c9ccb289cefa2b42ce9e5b12ad8de83","user":{"login":"TylerLeonhardt","id":2644648,"node_id":"MDQ6VXNlcjI2NDQ2NDg=","avatar_url":"https://avatars2.githubusercontent.com/u/2644648?v=4","gravatar_id":"","url":"https://api.github.com/users/TylerLeonhardt","html_url":"https://github.com/TylerLeonhardt","followers_url":"https://api.github.com/users/TylerLeonhardt/followers","following_url":"https://api.github.com/users/TylerLeonhardt/following{/other_user}","gists_url":"https://api.github.com/users/TylerLeonhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerLeonhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerLeonhardt/subscriptions","organizations_url":"https://api.github.com/users/TylerLeonhardt/orgs","repos_url":"https://api.github.com/users/TylerLeonhardt/repos","events_url":"https://api.github.com/users/TylerLeonhardt/events{/privacy}","received_events_url":"https://api.github.com/users/TylerLeonhardt/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Make 'ExtractAndScrubParseExceptionMessage' a static method.](https://app.codacy.com/app/TylerLeonhardt/PowerShellEditorServices/pullRequest?prid=4598462)","created_at":"2019-12-03T01:32:41Z","updated_at":"2019-12-03T01:32:41Z","html_url":"https://github.com/PowerShell/PowerShellEditorServices/pull/1119#discussion_r352946129","pull_request_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/1119","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/comments/352946129"},"html":{"href":"https://github.com/PowerShell/PowerShellEditorServices/pull/1119#discussion_r352946129"},"pull_request":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/1119"}}},"pull_request":{"url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/1119","id":347607711,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQ3NjA3NzEx","html_url":"https://github.com/PowerShell/PowerShellEditorServices/pull/1119","diff_url":"https://github.com/PowerShell/PowerShellEditorServices/pull/1119.diff","patch_url":"https://github.com/PowerShell/PowerShellEditorServices/pull/1119.patch","issue_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/1119","number":1119,"state":"open","locked":false,"title":"Initial switch to breakpoint APIs","user":{"login":"TylerLeonhardt","id":2644648,"node_id":"MDQ6VXNlcjI2NDQ2NDg=","avatar_url":"https://avatars2.githubusercontent.com/u/2644648?v=4","gravatar_id":"","url":"https://api.github.com/users/TylerLeonhardt","html_url":"https://github.com/TylerLeonhardt","followers_url":"https://api.github.com/users/TylerLeonhardt/followers","following_url":"https://api.github.com/users/TylerLeonhardt/following{/other_user}","gists_url":"https://api.github.com/users/TylerLeonhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerLeonhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerLeonhardt/subscriptions","organizations_url":"https://api.github.com/users/TylerLeonhardt/orgs","repos_url":"https://api.github.com/users/TylerLeonhardt/repos","events_url":"https://api.github.com/users/TylerLeonhardt/events{/privacy}","received_events_url":"https://api.github.com/users/TylerLeonhardt/received_events","type":"User","site_admin":false},"body":"This moves to the new breakpoint APIs in PS 7 which enables the ability to debug actual untitled files!\r\n\r\nTo do this, I created a new service `BreakpointService` that helps manage this.\r\n\r\nI took a bunch of the reflection code from @rjmholt's branch of a similar feature.","created_at":"2019-12-02T12:49:49Z","updated_at":"2019-12-03T01:32:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"243ef9e366e3d8ca333d2b3b37c1ac73a2ab36e2","assignee":null,"assignees":[],"requested_reviewers":[{"login":"rjmholt","id":7009879,"node_id":"MDQ6VXNlcjcwMDk4Nzk=","avatar_url":"https://avatars1.githubusercontent.com/u/7009879?v=4","gravatar_id":"","url":"https://api.github.com/users/rjmholt","html_url":"https://github.com/rjmholt","followers_url":"https://api.github.com/users/rjmholt/followers","following_url":"https://api.github.com/users/rjmholt/following{/other_user}","gists_url":"https://api.github.com/users/rjmholt/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmholt/subscriptions","organizations_url":"https://api.github.com/users/rjmholt/orgs","repos_url":"https://api.github.com/users/rjmholt/repos","events_url":"https://api.github.com/users/rjmholt/events{/privacy}","received_events_url":"https://api.github.com/users/rjmholt/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/1119/commits","review_comments_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/1119/comments","review_comment_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/1119/comments","statuses_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/statuses/ef6298b09c9ccb289cefa2b42ce9e5b12ad8de83","head":{"label":"TylerLeonhardt:switch-to-breakpoint-apis","ref":"switch-to-breakpoint-apis","sha":"ef6298b09c9ccb289cefa2b42ce9e5b12ad8de83","user":{"login":"TylerLeonhardt","id":2644648,"node_id":"MDQ6VXNlcjI2NDQ2NDg=","avatar_url":"https://avatars2.githubusercontent.com/u/2644648?v=4","gravatar_id":"","url":"https://api.github.com/users/TylerLeonhardt","html_url":"https://github.com/TylerLeonhardt","followers_url":"https://api.github.com/users/TylerLeonhardt/followers","following_url":"https://api.github.com/users/TylerLeonhardt/following{/other_user}","gists_url":"https://api.github.com/users/TylerLeonhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerLeonhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerLeonhardt/subscriptions","organizations_url":"https://api.github.com/users/TylerLeonhardt/orgs","repos_url":"https://api.github.com/users/TylerLeonhardt/repos","events_url":"https://api.github.com/users/TylerLeonhardt/events{/privacy}","received_events_url":"https://api.github.com/users/TylerLeonhardt/received_events","type":"User","site_admin":false},"repo":{"id":107151531,"node_id":"MDEwOlJlcG9zaXRvcnkxMDcxNTE1MzE=","name":"PowerShellEditorServices","full_name":"TylerLeonhardt/PowerShellEditorServices","private":false,"owner":{"login":"TylerLeonhardt","id":2644648,"node_id":"MDQ6VXNlcjI2NDQ2NDg=","avatar_url":"https://avatars2.githubusercontent.com/u/2644648?v=4","gravatar_id":"","url":"https://api.github.com/users/TylerLeonhardt","html_url":"https://github.com/TylerLeonhardt","followers_url":"https://api.github.com/users/TylerLeonhardt/followers","following_url":"https://api.github.com/users/TylerLeonhardt/following{/other_user}","gists_url":"https://api.github.com/users/TylerLeonhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerLeonhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerLeonhardt/subscriptions","organizations_url":"https://api.github.com/users/TylerLeonhardt/orgs","repos_url":"https://api.github.com/users/TylerLeonhardt/repos","events_url":"https://api.github.com/users/TylerLeonhardt/events{/privacy}","received_events_url":"https://api.github.com/users/TylerLeonhardt/received_events","type":"User","site_admin":false},"html_url":"https://github.com/TylerLeonhardt/PowerShellEditorServices","description":"A common platform for PowerShell development support in any editor or application!","fork":true,"url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices","forks_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/forks","keys_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/teams","hooks_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/hooks","issue_events_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/issues/events{/number}","events_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/events","assignees_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/assignees{/user}","branches_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/branches{/branch}","tags_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/tags","blobs_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/git/refs{/sha}","trees_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/statuses/{sha}","languages_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/languages","stargazers_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/stargazers","contributors_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/contributors","subscribers_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/subscribers","subscription_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/subscription","commits_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/commits{/sha}","git_commits_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/git/commits{/sha}","comments_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/comments{/number}","issue_comment_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/issues/comments{/number}","contents_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/contents/{+path}","compare_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/merges","archive_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/downloads","issues_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/issues{/number}","pulls_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/pulls{/number}","milestones_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/milestones{/number}","notifications_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/labels{/name}","releases_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/releases{/id}","deployments_url":"https://api.github.com/repos/TylerLeonhardt/PowerShellEditorServices/deployments","created_at":"2017-10-16T16:07:25Z","updated_at":"2019-03-26T20:57:42Z","pushed_at":"2019-12-03T01:29:34Z","git_url":"git://github.com/TylerLeonhardt/PowerShellEditorServices.git","ssh_url":"git@github.com:TylerLeonhardt/PowerShellEditorServices.git","clone_url":"https://github.com/TylerLeonhardt/PowerShellEditorServices.git","svn_url":"https://github.com/TylerLeonhardt/PowerShellEditorServices","homepage":"","size":4350,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"PowerShell:master","ref":"master","sha":"e813fbd59a2dc44d26e9e15704afdae4188655e2","user":{"login":"PowerShell","id":11524380,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTI0Mzgw","avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"repo":{"id":36031537,"node_id":"MDEwOlJlcG9zaXRvcnkzNjAzMTUzNw==","name":"PowerShellEditorServices","full_name":"PowerShell/PowerShellEditorServices","private":false,"owner":{"login":"PowerShell","id":11524380,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTI0Mzgw","avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PowerShell/PowerShellEditorServices","description":"A common platform for PowerShell development support in any editor or application!","fork":false,"url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices","forks_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/forks","keys_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/teams","hooks_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/hooks","issue_events_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/events{/number}","events_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/events","assignees_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/assignees{/user}","branches_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/branches{/branch}","tags_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/tags","blobs_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/languages","stargazers_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/stargazers","contributors_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/contributors","subscribers_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/subscribers","subscription_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/subscription","commits_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/contents/{+path}","compare_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/merges","archive_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/downloads","issues_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues{/number}","pulls_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/labels{/name}","releases_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/releases{/id}","deployments_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/deployments","created_at":"2015-05-21T18:54:08Z","updated_at":"2019-11-29T04:43:43Z","pushed_at":"2019-12-03T01:29:37Z","git_url":"git://github.com/PowerShell/PowerShellEditorServices.git","ssh_url":"git@github.com:PowerShell/PowerShellEditorServices.git","clone_url":"https://github.com/PowerShell/PowerShellEditorServices.git","svn_url":"https://github.com/PowerShell/PowerShellEditorServices","homepage":"","size":4647,"stargazers_count":312,"watchers_count":312,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":89,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":143,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":89,"open_issues":143,"watchers":312,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/1119"},"html":{"href":"https://github.com/PowerShell/PowerShellEditorServices/pull/1119"},"issue":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/1119"},"comments":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/1119/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/1119/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/1119/commits"},"statuses":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/statuses/ef6298b09c9ccb289cefa2b42ce9e5b12ad8de83"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"TylerLeonhardt"}}