Giter VIP home page Giter VIP logo

Comments (8)

jednano avatar jednano commented on August 20, 2024 1

Fixed in #70

from editorconfig-vscode.

Pointotech avatar Pointotech commented on August 20, 2024 1

Is there any way to get the EditorConfig plugin to override the VS Code settings for indentation? Isn't that the whole point of this plugin?

from editorconfig-vscode.

jednano avatar jednano commented on August 20, 2024

Sorry you're having this issue! Thanks for the steps to reproduce. I'm definitely not going to have any time to fix the issue this week, but I maybe the following week.

Also, I'm accepting pull requests, so if you have a fix then I will gladly merge and publish.

from editorconfig-vscode.

mschuckmann avatar mschuckmann commented on August 20, 2024

Yep having the same problem, very annoying. I want use editorconfig for other things but it totally breaks the indentation detection.

from editorconfig-vscode.

jednano avatar jednano commented on August 20, 2024

Can you show me what your .editorconfig file looks like? And tell me what file names are showing the issue?

from editorconfig-vscode.

mschuckmann avatar mschuckmann commented on August 20, 2024

I am definitely seeing the problem on .cpp, .h, .py files I didn't test any others
Below is my current .editorconfig file

[*]
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

from editorconfig-vscode.

jednano avatar jednano commented on August 20, 2024

Aha, so you don't actually have any indentation settings at all and the plugin is still intercepting the native indentation detection? This helps a lot!

from editorconfig-vscode.

benmosher avatar benmosher commented on August 20, 2024

I'm seeing this, as well. My suspicion--from scanning the code--is that this plugin is merging the VS Code defaults (via DocumentWatcher#getDefaultSettings) with a blank config provided by editorconfig.parse when either

  • there is no .editorconfig in any ancestor folder (my case)
  • there is no matching .editorconfig spec for the provided filepath (@mschuckmann's case, if I read correctly)

I think a viable fix might be to not set this line if the options provided from editorconfig.parse doesn't explicitly specify tab/space settings (i.e. if both insertSpaces and tabSize are being defaulted).

But I'm not super familiar with VS Code extensions 😅

from editorconfig-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.