From 18fdd2a14f2ad0fe29a41e3b97c816ef6419581e Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Fri, 8 Mar 2019 07:29:59 -0700 Subject: [PATCH] Temporarily disable deemphasized stack frames to fix VSCode issue 1750 (#876) --- .../Debugging/StackFrameDetails.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/PowerShellEditorServices/Debugging/StackFrameDetails.cs b/src/PowerShellEditorServices/Debugging/StackFrameDetails.cs index 4f68f02ad..e217457fc 100644 --- a/src/PowerShellEditorServices/Debugging/StackFrameDetails.cs +++ b/src/PowerShellEditorServices/Debugging/StackFrameDetails.cs @@ -107,12 +107,14 @@ static internal StackFrameDetails Create( string scriptPath = (callStackFrameObject.Properties["ScriptName"].Value as string) ?? NoFileScriptPath; int startLineNumber = (int)(callStackFrameObject.Properties["ScriptLineNumber"].Value ?? 0); - if (workspaceRootPath != null && - invocationInfo != null && - !scriptPath.StartsWith(workspaceRootPath, StringComparison.OrdinalIgnoreCase)) - { - isExternal = true; - } + // TODO: RKH 2019-03-07 Temporarily disable "external" code until I have a chance to add + // settings to control this feature. + //if (workspaceRootPath != null && + // invocationInfo != null && + // !scriptPath.StartsWith(workspaceRootPath, StringComparison.OrdinalIgnoreCase)) + //{ + // isExternal = true; + //} return new StackFrameDetails {