Skip to content

Conversation

krishnaglick
Copy link
Contributor

What

Adds specific workspace settings so frontend work is more consistent across VS Code instances.

@krishnaglick krishnaglick requested a review from a team April 25, 2022 18:52
Copy link
Contributor

@teallarson teallarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't disagree with anything you've turned on. Though maybe we should have more than one approval here since it affects everyone's work environment? lgtm though.

@CLAassistant
Copy link

CLAassistant commented May 5, 2022

CLA assistant check
All committers have signed the CLA.

@krishnaglick krishnaglick requested review from edmundito and timroes May 9, 2022 20:13
@krishnaglick krishnaglick marked this pull request as ready for review May 9, 2022 20:13
Copy link
Contributor

@edmundito edmundito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I the only person opening vscode at airbyte-webapp? I rather avoid indexing all of the repo because of all the java/python stuff.

Comment on lines 14 to 16
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, so here's a difference. I let eslint organize the imports instead of vscode. I'm not sure if they sort the same way. We already have an 'import/order' rule in the .eslintrc file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VS Code actually does slightly better when it comes to organizing, but it doesn't do any grouping like eslint. They don't clash at least. 🤷

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all of us are strictly using vscode, either, so it should respect whatever eslint is doing because if we eslint --fix in the future it will change things around.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. I'll turn it off.

@teallarson
Copy link
Contributor

Am I the only person opening vscode at airbyte-webapp? I rather avoid indexing all of the repo because of all the java/python stuff.

I open it at that level too typically.

@krishnaglick
Copy link
Contributor Author

Am I the only person opening vscode at airbyte-webapp? I rather avoid indexing all of the repo because of all the java/python stuff.

I open it at that level too typically.

I do not, not sure these settings will load properly if you do. But I can say they don't work if I put them in airbyte-webapp and open the entire repo.

"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@edmundito This gives us the option to use root, or the workspace.
I'm of two minds:
Doing this is nice as it's then up to the developer to pick.
But if these settings change we'll have to make sure they stay synced. I don't anticipate them changing much after this PR goes in however.

The only other win I see is if someone hops in to do some OSS contributions it'll work as long as they don't open just the sub-folder they need.

Opening the root folder will prompt them to open the workspace at least.

@krishnaglick krishnaglick merged commit 230dc3a into master May 10, 2022
@krishnaglick krishnaglick deleted the kc/vscode-settings branch May 10, 2022 18:23
suhomud pushed a commit that referenced this pull request May 23, 2022
* First pass

* Code Review changes

* Adding a code workspace

* Adding extension recommendations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants