[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:
Backports
Depends
is depended on by SERVER-69148 Revert SERVER-68566 Closed
Related
related to SERVER-68566 Disable pylinters on buildscripts/gdb/ Closed
is related to SERVER-72847 clang-tidy plugin does not work with ... Closed
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: SERVER-68594 Backport vscode workspace
Branch: v5.0
https://github.com/mongodb/mongo/commit/a18e964fe609f30d79a9f5dc614cffd97049e9d2

Comment by Githook User [ 25/Mar/23 ]

Author:

{'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}

Message: SERVER-68594 Backport vscode workspace

(cherry picked from commit 921ae73a36366f8ccffc14ee1d599482249dcbb2)
Branch: v4.4
https://github.com/mongodb/mongo/commit/fb8de2c23a0f9391997393668bf6072ab1514e27

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: SERVER-68594 Added vscode defaults to v6.0
Branch: v6.0
https://github.com/mongodb/mongo/commit/053c745ed3de8faa32f8b24fc1780a7521af932b

Comment by Githook User [ 20/Jan/23 ]

Author:

{'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}

Message: SERVER-68594 Added better javascript code hinting
Branch: master
https://github.com/mongodb/mongo/commit/8e08ea05475b8d9249d59c8b41f9cd250a21fbb9

Comment by Githook User [ 12/Jan/23 ]

Author:

{'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}

Message: SERVER-68594 Moved location of code-workspace file
Branch: master
https://github.com/mongodb/mongo/commit/9397403ae4c72e551da11766b7e10700d78207e6

Comment by Githook User [ 12/Jan/23 ]

Author:

{'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}

Message: SERVER-68594 Disabled vscode header insertion
Branch: master
https://github.com/mongodb/mongo/commit/e34ce64c871ecefcb90c97c72fc2f0fce3b759f7

Comment by Githook User [ 12/Jan/23 ]

Author:

{'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}

Message: SERVER-68594 Added sensible vscode linting/autocomplete configuration
Branch: master
https://github.com/mongodb/mongo/commit/5e9efe141520d36adcdd8af424c210d30e955943

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.

Generated at Thu Feb 08 06:11:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.