[SERVER-68594] Add vscode format/lint on save Created: 05/Aug/22 Updated: 29/Oct/23 Resolved: 12/Jan/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.3.0-rc0, 6.0.5, 4.4.20, 5.0.16 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Alex Neben | Assignee: | Alex Neben |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Assigned Teams: |
Server Development Platform
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Backport Requested: |
v6.0, v5.0, v4.4
|
||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
Set up vscode extensions for linting and autocomplete in most commonly used languages. |
| Comments |
| Comment by Githook User [ 25/Mar/23 ] |
|
Author: {'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}Message: |
| Comment by Githook User [ 25/Mar/23 ] |
|
Author: {'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}Message: (cherry picked from commit 921ae73a36366f8ccffc14ee1d599482249dcbb2) |
| Comment by Alex Neben [ 07/Mar/23 ] |
|
For those watching it looks vscode just release profiles that does something similar to this that works pretty well: https://code.visualstudio.com/updates/v1_76#_profiles . Maybe in the future we can take a look at this. |
| Comment by Githook User [ 21/Jan/23 ] |
|
Author: {'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}Message: |
| Comment by Githook User [ 20/Jan/23 ] |
|
Author: {'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}Message: |
| Comment by Githook User [ 12/Jan/23 ] |
|
Author: {'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}Message: |
| Comment by Githook User [ 12/Jan/23 ] |
|
Author: {'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}Message: |
| Comment by Githook User [ 12/Jan/23 ] |
|
Author: {'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}Message: |
| Comment by Ryan Egesdahl (Inactive) [ 05/Aug/22 ] |
|
I know VS Code has the pyright extension, which is officially supported by Microsoft. It's also available as an independent Python language server as well for other editors (I use it in NeoVim now). I believe it also supports at least "format on save", but I don't know about any other linting on save. At the very least, it will can our Python style configs and highlight problems for the user before they commit. |