-
Notifications
You must be signed in to change notification settings - Fork 11
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
[AUTO] Format files using DocumentFormat #54
base: master
Are you sure you want to change the base?
Conversation
@@ -822,7 +822,7 @@ function set_variable_request(conn, state::DebuggerState, params::SetVariableArg | |||
|
|||
if var_ref.kind == :scope | |||
try | |||
ret = JuliaInterpreter.eval_code(var_ref.value, "$var_name = $var_value"); | |||
ret = JuliaInterpreter.eval_code(var_ref.value, "$var_name = $var_value") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't remove the trailing ;
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does removing it change the semantics of the program?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but that can't be the criterion, there are countless changes that one could make that don't change the semantics program.
I think we had agreed that the minimal formatter that we want to have in the extension should change whitespacing, indentation and nothing else. In particular, it should never add or remove any other characters that a user wrote.
Obviously this is a great feature to have available in a style and as an option.
src/protocol/events.jl
Outdated
@@ -1,5 +1,4 @@ | |||
@dict_readable struct InitializedEventArguments <: Outbound | |||
end | |||
@dict_readable struct InitializedEventArguments <: Outbound end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't remove the line break.
b7b870a
to
cdb3fef
Compare
cdb3fef
to
a19244a
Compare
a19244a
to
67b3d12
Compare
e5cdf5a
to
acb4727
Compare
acb4727
to
f4726a2
Compare
81bbecb
to
0443fe4
Compare
0443fe4
to
61751ad
Compare
61751ad
to
c14c32d
Compare
c14c32d
to
8616ca0
Compare
8616ca0
to
a7b5e6b
Compare
a7b5e6b
to
7360891
Compare
0840536
to
2f3fa64
Compare
b22f0b6
to
035310f
Compare
035310f
to
f88d59b
Compare
c0ef0ea
to
9d35b0a
Compare
9d35b0a
to
133a5e2
Compare
133a5e2
to
9bed7b4
Compare
9bed7b4
to
513ae29
Compare
DocumentFormat.jl would suggest these formatting changes