Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply automatic fixes (manually) #1755

Merged
merged 1 commit into from
Apr 13, 2022
Merged

Apply automatic fixes (manually) #1755

merged 1 commit into from
Apr 13, 2022

Conversation

andyleejordan
Copy link
Member

These were available in code lens style "click to fix" but were not
applied by the CLI tools. It was slow, but not horrible.

@@ -111,8 +109,7 @@ public static string GenerateValidNamedPipeName(IReadOnlyCollection<string> pref
{
return pipeName;
}

} while (tries < 10);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was never incrementing tries and therefore had actually been an infinite loop.

@@ -132,15 +124,13 @@ private EditorServicesServerFactory(ILoggerFactory loggerFactory, LogLevel minim
public PsesDebugServer RecreateDebugServer(
Stream inputStream,
Stream outputStream,
PsesDebugServer debugServer,
bool usePSReadLine)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently we don't use usePSReadLine at all.

@andyleejordan
Copy link
Member Author

<200 "problems" now!

@@ -128,8 +128,7 @@ public async Task<SetFunctionBreakpointsResponse> Handle(SetFunctionBreakpointsA
CommandBreakpointDetails[] breakpointDetails = request.Breakpoints
.Select((funcBreakpoint) => CommandBreakpointDetails.Create(
funcBreakpoint.Name,
funcBreakpoint.Condition,
funcBreakpoint.HitCondition))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last param was unused in the function.

await debugInfoHandle.WaitAsync().ConfigureAwait(false);
try
{
variableContainer = (VariableContainerDetails)variables[variableContainerReferenceId];
// OK, now we have a PS object from the supplied value string (expression) to assign to a variable.
// Get the variable referenced by variableContainerReferenceId and variable name.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry this file might conflict with your PR.

@andyleejordan andyleejordan added Issue-Enhancement A feature request (enhancement). Area-Engine labels Apr 13, 2022
These were available in code lens style "click to fix" but were not
applied by the CLI tools. It was slow, but not horrible.

Also silence two annoying suggestions around comments and naming.
@andyleejordan
Copy link
Member Author

<200 "problems" now!

And now only 75!

@andyleejordan andyleejordan enabled auto-merge (squash) April 13, 2022 20:55
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@andyleejordan andyleejordan merged commit aa1c253 into master Apr 13, 2022
@andyleejordan andyleejordan deleted the andschwa/auto-fixes branch April 13, 2022 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Engine Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants