Skip to content

Commit

Permalink
Add comment in formatOnType to indicate autoIndent is set to 'none' (#…
Browse files Browse the repository at this point in the history
…5949)

* Make autoIndent default value

Not sure if this was on purpose, but it seems like we'd want to test with the defaults?

* Add some comments to formatOnType

* Change PR to add a comment explaining mode
  • Loading branch information
rchiodo authored May 31, 2024
1 parent f462e72 commit 48f9d8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion testing/single/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
// "source.unusedImports",
// "source.convertImportFormat"
// ]
"python.analysis.extraPaths": ["${workspaceFolder:utfinname日本}"]
"python.analysis.extraPaths": [
"${workspaceFolder:utfinname日本}"
],
}
4 changes: 3 additions & 1 deletion testing/single/src/formatOnType.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# you can trigger format on type by hitting enter at the end of statement
# This test assumes `editor.autoIndent` is set to 'none'. This is to ensure
# the outcomes described are consistent. If you want to do ad-hoc testing, you should
# change this value back to the default.

# place cursor after `:` and hit enter and confirm cursor is placed
# at the expected indentation
Expand All @@ -21,7 +24,6 @@
pass
# type `:` after `else` and see `else` is moved to right position.
else


# Set "autoFormatStrings" to true and add a { into the string below. Make sure
# it auto adds the `f` on the front. Repeat for the other strings
Expand Down

0 comments on commit 48f9d8a

Please sign in to comment.