-
Notifications
You must be signed in to change notification settings - Fork 359
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
Whitespace still added to blank lines #1110
Comments
Thanks for reporting this. Just a few questions to help with the investigation:
And just to confirm the repo, starting with this code: (function (cb) {
test();
}); Let (function (cb) {
$test();
}); And then hit (function (cb) {
// blank line
test();
}); and the actual result being: (function (cb) {
// blank line with two spaces
test();
}); Is that correct? |
(function (cb) { $test needs to be indented to begin with. a.. What IntelliSense level are you on? This is found in Tools -> Options, Text Editor -> Node.js -> IntelliSense. It should be ECMAScript 6 for NTVS 1.2. b.. Do you have any custom formatting settings? These are also in Tools -> Options, Text Editor ->Node.js -> Formatting`. Thanks, From: Matt Bierner Thanks for reporting this. Just a few questions to help with the investigation: a.. What IntelliSense level are you on? This is found in Tools -> Options, Text Editor -> Node.js -> IntelliSense. It should be ECMAScript 6 for NTVS 1.2. And just to confirm the repo, starting with this code: (function (cb) { (function (cb) { (function (cb) { (function (cb) { — |
Thanks for the clarification. The formatting settings attachment seem to have gotten lost though, could you please try uploading them directly through GitHub. I'm still having trouble reproducing this issue, but I am on VS 2015 Update 3 which may make a difference. It includes a new version of Typescript, which powers our editing and formatting for ES6 IntelliSense. You may want to download it and give it a try, along with NTVS 1.2 RC |
Looks like this may be fixed. Having another problem where NTVS 1.2 RC does not seem to perform automatic brace completion. |
Good to hear. Closing this issue then. The brace completion issue is known and being tracked by: #1142 Take a look at that issue for more context on the problem and some potential workarounds. Thanks. |
Expected Behavior
(function (cb) {
//no whitespace
test();
});
Actual Behavior
(function (cb) {
.. //whitespace
test();
});
Steps to Reproduce
type:
(function (cb) {
test();
});
type 2 blank lines
(function (cb) {
test();
});
You end up with blank lines with whitespace above the function test
The text was updated successfully, but these errors were encountered: