Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tabs): replace tab character by space characters #8629

Merged
merged 1 commit into from
Oct 14, 2020
Merged

Conversation

benoitf
Copy link
Contributor

@benoitf benoitf commented Oct 14, 2020

What it does

just replace tab characters by space

How to test

you may reproduce this fix just by opening and saving the file.
About test, hard to say how to test as it's like a no-op but plug-ins should still work as usual
And in github diff view, you can see it's only related to spaces/indent

Review checklist

Reminder for reviewers

With default configuration, just opening and saving the file is updating this file automatically

Change-Id: Iac8580fc5f723f78adf5ad8aa3818d835ec3727e
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
@benoitf benoitf added plug-in system issues related to the plug-in system vscode issues related to VSCode compatibility labels Oct 14, 2020
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

The changes look good to me 👍

@benoitf what do you think of enabling the following eslint rule: https://eslint.org/docs/rules/indent
We can enforce that spaces are used always, and display warnings or errors when tabs are used.

@benoitf
Copy link
Contributor Author

benoitf commented Oct 14, 2020

@vince-fugnitto yes would be nice because when we just open/save files, they're producing changes
so a rule would help 👍

@@ -1582,168 +1582,168 @@ declare module '@theia/plugin' {
waitUntil(thenable: PromiseLike<any>): void;
Copy link
Member

Choose a reason for hiding this comment

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

I just wanted to mention that this file is never checked by eslint due to the following ignorePatterns:

"ignorePatterns": [
"node_modules",
"*.d.ts"
]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe this one should not be excluded as it's maintained by us manually

Copy link
Member

@vince-fugnitto vince-fugnitto Oct 14, 2020

Choose a reason for hiding this comment

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

maybe this one should not be excluded as it's maintained by us manually

I think so, we should update the ignorePatterns to only check *d.ts files located under lib folders correct, or just lib altogether?

@vince-fugnitto
Copy link
Member

@benoitf would you like to merge, I'll merge my pull-request #8630 right after and fix the base.eslintrc.json to exclude lib folders only and not all *.d.ts files.

@benoitf benoitf merged commit 53408e2 into master Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plug-in system issues related to the plug-in system vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants