Title: "editor.formatOnType" breaks return annotations · Issue #1442 · microsoft/vscode-python · GitHub
Open Graph Title: "editor.formatOnType" breaks return annotations · Issue #1442 · microsoft/vscode-python
X Title: "editor.formatOnType" breaks return annotations · Issue #1442 · microsoft/vscode-python
Description: Actual behavior def foo(a: int) -> bool: becomes def foo(a: int) - > bool: and loses the indentation. Expected behavior To not change and indent on Enter.
Open Graph Description: Actual behavior def foo(a: int) -> bool: becomes def foo(a: int) - > bool: and loses the indentation. Expected behavior To not change and indent on Enter.
X Description: Actual behavior def foo(a: int) -> bool: becomes def foo(a: int) - > bool: and loses the indentation. Expected behavior To not change and indent on Enter.
Opengraph URL: https://github.com/microsoft/vscode-python/issues/1442
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"editor.formatOnType\" breaks return annotations","articleBody":"## Actual behavior\r\n```python\r\ndef foo(a: int) -> bool:\r\n```\r\nbecomes\r\n```python\r\ndef foo(a: int) - > bool:\r\n```\r\nand loses the indentation.\r\n\r\n## Expected behavior\r\n\r\nTo not change and indent on Enter.","author":{"url":"https://github.com/brettcannon","@type":"Person","name":"brettcannon"},"datePublished":"2018-04-19T19:29:25Z","url":"https://github.com/microsoft/vscode-python/issues/1442"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:da6e9e91-ca07-3704-3903-7d4992e42ea1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D18:6CCC0:305968:3FA604:6AFE5D1B |
| html-safe-nonce | 8440dba942ffc401817cd4597edd3d46ef3d84de017eae439479983371898c0c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDE4OjZDQ0MwOjMwNTk2ODozRkE2MDQ6NkFGRTVEMUIiLCJ2aXNpdG9yX2lkIjoiMjg4MzM3NTU1OTUxNTk4NzIyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2a137db6ee61a550e4064a18dcb0641ca4c8b90f373d3ff4154c49d00a470fe0 |
| hovercard-subject-tag | issue:316009853 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python/1442/issue_layout |
| twitter:image | https://opengraph.githubassets.com/475a8596991f68f02e4f711c5adbb8924756a998bd084817b28fb00acacaf631/microsoft/vscode-python/issues/1442 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/475a8596991f68f02e4f711c5adbb8924756a998bd084817b28fb00acacaf631/microsoft/vscode-python/issues/1442 |
| og:image:alt | Actual behavior def foo(a: int) -> bool: becomes def foo(a: int) - > bool: and loses the indentation. Expected behavior To not change and indent on Enter. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brettcannon |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 106462765 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 49946255 |
| octolytics-dimension-repository_parent_nwo | DonJayamanne/pythonVSCode |
| octolytics-dimension-repository_network_root_id | 49946255 |
| octolytics-dimension-repository_network_root_nwo | DonJayamanne/pythonVSCode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width