Giter Site home page Giter Site logo

Comments (6)

vinistock avatar vinistock commented on June 17, 2024

Work has already begun in Standard to use a Ruby LSP addon, so that we can format using Standard (see this).

For the time being, you can simply reject this setting so that the extension won't configure it. Use the commands to clear the cache and re-trigger the initial configuration dialogue. Then pick Decide for each and reject the formatter setting.

We'll not be adding any specialized configuration for standard in this extension.

from vscode-shopify-ruby.

alec-c4 avatar alec-c4 commented on June 17, 2024

@vinistock Hey, settings reject isn't helped :(

from vscode-shopify-ruby.

vinistock avatar vinistock commented on June 17, 2024

Can you explain what happened and which steps you took? Did you clear the cache first?

from vscode-shopify-ruby.

alec-c4 avatar alec-c4 commented on June 17, 2024

@vinistock sure!
1 - cleared cache
2 - restarted vscode
3 - declined every option on start
4 - problem still exists :(

from vscode-shopify-ruby.

vinistock avatar vinistock commented on June 17, 2024

Can you please try to

  • Remove the editor.defaultFormatter setting
  • Clear the cache with the command "Ruby extensions pack: Clear cache and recommended settings"
  • Trigger the dialogues with the command "Ruby extensions pack: Force apply defaults"
  • Then decline the settings you don't want

Let me know if that does the trick.

from vscode-shopify-ruby.

alec-c4 avatar alec-c4 commented on June 17, 2024

Nothing changed :( finally my config looks like

{
  // Editor
  "editor.accessibilitySupport": "off",
  "editor.cursorBlinking": "expand",
  // "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true,
  "editor.formatOnType": true,
  "editor.minimap.enabled": false,
  "editor.tabSize": 2,
  "editor.unicodeHighlight.ambiguousCharacters": true,

  // Extensions
  "extensions.ignoreRecommendations": true,

  // Emmet
  "emmet.triggerExpansionOnTab": true,
  "emmet.includeLanguages": {
    "phoenix-heex": "html",
    "astro": "html",
    "svelte": "sveltehtml"
  },

  // Files
  "files.associations": {
    "*.erb": "erb",
    "*.html.erb": "erb",
    "*.yml": "yaml"
  },
  "files.autoSave": "onFocusChange",
  "files.defaultLanguage": "plaintext",
  "files.insertFinalNewline": true,

  // Security
  "security.workspace.trust.banner": "never",
  "security.workspace.trust.enabled": false,

  // Workbench
  "workbench.colorTheme": "Spinel",
  "workbench.iconTheme": "vscode-great-icons",
  "workbench.startupEditor": "none",

  // Terminal
  "terminal.integrated.fontFamily": "MesloLGS NF",
  "terminal.integrated.scrollback": 99999999999,
  "terminal.integrated.env.osx": {
    "FIG_NEW_SESSION": "1"
  },
  "terminal.external.osxExec": "iTerm.app",

  // Erb
  "[erb]": {
    "editor.defaultFormatter": "aliariff.vscode-erb-beautify"
  },

  // Plugins - Tailwind
  "tailwindCSS.emmetCompletions": true,

  // Plugins - eslint
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "astro", // Enable .astro
    "typescript", // Enable .ts
    "typescriptreact" // Enable .tsx
  ],

  // Plugins - Svelte
  "[svelte]": {
    "editor.defaultFormatter": "svelte.svelte-vscode"
  },
  "svelte.enable-ts-plugin": true,

  // Plugins - Erb formatter
  "vscode-erb-beautify.keepBlankLines": 1,
  "git.enableSmartCommit": true,
  "git.autofetch": true,

  // Dart settings
  "[dart]": {
    "editor.rulers": [80],
    "editor.selectionHighlight": false,
    "editor.suggestSelection": "first",
    "editor.tabCompletion": "onlySnippets",
    "editor.wordBasedSuggestions": false
  },
  "dart.openDevTools": "flutter",
  "[xml]": {
    "editor.defaultFormatter": "redhat.vscode-xml"
  },

  "githubPullRequests.pullBranch": "never",
  "[ruby]": {
    "editor.defaultFormatter": "Shopify.ruby-lsp",
    "editor.formatOnSave": true,
    "editor.formatOnType": true,
    "editor.tabSize": 2,
    "editor.insertSpaces": true,
    "files.trimTrailingWhitespace": true,
    "files.insertFinalNewline": true,
    "files.trimFinalNewlines": true,
    "editor.rulers": [
      120
    ],
    "editor.semanticHighlighting.enabled": true
  }
}

from vscode-shopify-ruby.

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.