Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Folding doesnt presist across format #431

Open
tomkulaga opened this issue Jul 2, 2018 · 1 comment
Open

Folding doesnt presist across format #431

tomkulaga opened this issue Jul 2, 2018 · 1 comment

Comments

@tomkulaga
Copy link

When I have folded items in my file, Then i format with Prettier through this extensions. It unfolds everything. It would be nice if it kept the folding after format.

Reproduce:

  1. hit CTRL+K, CTRL+2 to fold stuff in the file
  2. Hit CTRL +ALT +F to format
  3. the folds from step 1 are lost and the document is all un folded again
Atom version: 1.29.0-beta0
prettier-atom version: 0.54.0
prettier: bundled
prettier version: 1.13.4
prettier-eslint version: 8.8.2
prettier-atom configuration: {
  "useEslint": false,
  "useStylelint": false,
  "useEditorConfig": true,
  "formatOnSaveOptions": {
    "enabled": false,
    "respectEslintignore": true,
    "showInStatusBar": false,
    "excludedGlobs": [],
    "whitelistedGlobs": [],
    "isDisabledIfNotInPackageJson": false,
    "isDisabledIfNoConfigFile": false
  },
  "prettierOptions": {
    "singleQuote": false,
    "bracketSpacing": true,
    "semi": true,
    "useTabs": false,
    "jsxBracketSameLine": false,
    "printWidth": 80,
    "tabWidth": "auto",
    "trailingComma": "none",
    "parser": "babylon",
    "arrowParens": "avoid"
  },
  "prettierEslintOptions": {
    "prettierLast": false
  },
  "scopes": {
    "javascript": [
      "source.js",
      "source.jsx",
      "source.js.jsx",
      "source.babel",
      "source.js-semantic",
      "text.html.basic",
      "text.html.vue"
    ],
    "typescript": [
      "source.ts",
      "source.tsx",
      "source.ts.tsx"
    ],
    "css": [
      "source.css",
      "source.less",
      "source.css.less",
      "source.scss",
      "source.css.scss",
      "source.css.postcss"
    ],
    "json": [
      "source.json"
    ],
    "graphQl": [
      "source.graphql"
    ],
    "markdown": [
      "source.md",
      "source.gfm",
      "text.md"
    ],
    "vue": [
      "text.html.vue"
    ]
  }
}

@cntrlz
Copy link

cntrlz commented Sep 20, 2019

I too wish to see this resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants