Title: formatOnType removes the space between string and brace on the last line of multiline f-string · Issue #2323 · microsoft/vscode-python · GitHub
Open Graph Title: formatOnType removes the space between string and brace on the last line of multiline f-string · Issue #2323 · microsoft/vscode-python
X Title: formatOnType removes the space between string and brace on the last line of multiline f-string · Issue #2323 · microsoft/vscode-python
Description: Environment data VS Code version: 1.25.1 Extension version (available under the Extensions sidebar): 2018.7.1 OS and version: macOS 10.13.6 Python version (& distribution if applicable, e.g. Anaconda): CPython 3.6.6 Type of virtual envir...
Open Graph Description: Environment data VS Code version: 1.25.1 Extension version (available under the Extensions sidebar): 2018.7.1 OS and version: macOS 10.13.6 Python version (& distribution if applicable, e.g. Anacon...
X Description: Environment data VS Code version: 1.25.1 Extension version (available under the Extensions sidebar): 2018.7.1 OS and version: macOS 10.13.6 Python version (& distribution if applicable, e.g. An...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/2323
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"formatOnType removes the space between string and brace on the last line of multiline f-string","articleBody":"\u003c!-- \r\nDo you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python. \r\n\r\nUnable to install a linter or formatter? 'No installers available'? \r\nWindows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows\r\nLinux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/\r\n\r\nPython configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites\r\n\r\nOtherwise **please** fill in the requested details below. \"XXX\" markers should not be present in the final bug report.\r\n\r\nIf you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/ or https://www.screentogif.com/ .\r\n-->\r\n\r\n## Environment data\r\n\r\n- VS Code version: 1.25.1\r\n- Extension version (available under the Extensions sidebar): 2018.7.1\r\n- OS and version: macOS 10.13.6\r\n- Python version (& distribution if applicable, e.g. Anaconda): CPython 3.6.6\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv\r\n- Relevant/affected Python packages and their versions: N/A\r\n\r\n## Actual behavior\r\n\r\n```python\r\nf\"\"\"\r\nselect * from {table}\r\nwhere {condition}\r\norder by {order_columns}\r\nlimit {limit_num};\"\"\" # enter\r\n```\r\n\r\nthen:\r\n```python\r\nf\"\"\"\r\nselect * from {table}\r\nwhere {condition}\r\norder by {order_columns}\r\nlimit{limit_num}; \"\"\" # remove the space bwtween limit and {, and add a space at the end.\r\n```\r\n\r\n## Expected behavior\r\n\r\nKeep it as it is\r\n\r\n## Steps to reproduce:\r\n1. paste the code and have a try.\r\n\r\n## Logs\r\nOutput for `Python` in the `Output` panel (`View`→`Output`, change the drop-down the upper-right of the `Output` panel to `Python`)\r\n\r\n```\r\nN/A\r\n``` \r\n\r\nOutput from `Console` under the `Developer Tools` panel (toggle Developer Tools on under `Help`)\r\n\r\n```\r\nN/A\r\n```\r\n","author":{"url":"https://github.com/MisLink","@type":"Person","name":"MisLink"},"datePublished":"2018-08-03T04:29:22Z","url":"https://github.com/microsoft/vscode-python/issues/2323"}
| 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:d8dbcf87-6efd-9824-9e35-8dc937c5946c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A11C:9D4BF:562565:70E901:6AFE6B18 |
| html-safe-nonce | 9afca17eb37ade27cbdda0d9dd95e8a48658b675e3f87d4d31adbd7531297090 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTFDOjlENEJGOjU2MjU2NTo3MEU5MDE6NkFGRTZCMTgiLCJ2aXNpdG9yX2lkIjoiNDE3NTExNDgwNTE3NjA2ODg4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 07ea5aaacaddffd7f644f71f5a1c91974a3d20b1e5ca4f5b3bf88caa87ff4b2f |
| hovercard-subject-tag | issue:347255376 |
| 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/2323/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d9f2325272d7156b14b1885b2505b0c61d9c4f90a5cb35c1d5e52a1dee174b74/microsoft/vscode-python/issues/2323 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d9f2325272d7156b14b1885b2505b0c61d9c4f90a5cb35c1d5e52a1dee174b74/microsoft/vscode-python/issues/2323 |
| og:image:alt | Environment data VS Code version: 1.25.1 Extension version (available under the Extensions sidebar): 2018.7.1 OS and version: macOS 10.13.6 Python version (& distribution if applicable, e.g. Anacon... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MisLink |
| 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