Skip to content

Commit

Permalink
Temporarily disable deemphasized stack frames to fix VSCode issue 1750 (
Browse files Browse the repository at this point in the history
  • Loading branch information
rkeithhill authored Mar 8, 2019
1 parent 5a6299e commit 18fdd2a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/PowerShellEditorServices/Debugging/StackFrameDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 18fdd2a

Please sign in to comment.