Giter Site home page Giter Site logo

Comments (4)

vinistock avatar vinistock commented on June 24, 2024

The customizations are indeed correct. Not sure why it isn't working. Can you try changing this config?

{
  "editor.semanticHighlighting.enabled": true,
}

Maybe the theme doesn't support semantic highlighting and your editor is configured to enable it based on theme configurations.

You can also use the token inspector to verify that you're looking at the right tokens.

  • Open the command palette (CMD + SHIFT + P)
  • Inspect editor tokens and scopes
  • Click on a piece of code to see the assigned tokens

from vscode-shopify-ruby.

unikitty37 avatar unikitty37 commented on June 24, 2024

Thanks — I've tried enabling semantic highlighting globally, rather than specifically for the theme, but it still doesn't seem to pick it up. The theme has semanticHighlighting: true set: https://github.com/diep89/darcula-intellij-theme-extended/blob/cc88fd727626ef94ee5210817c19e811a152a3c9/themes/darcula-intellij-theme-extended-color-theme.json#LL753

image

from vscode-shopify-ruby.

vinistock avatar vinistock commented on June 24, 2024

Based on the token inspection, you can see that only textmate scopes are being applied. It's not showing any semantic token information.

Is the Ruby LSP running properly to provide the semantic tokens?

This is the information that needs to show up if the Ruby LSP is running and providing semantic information. Notice that there's a section for the semantic information, which is missing for you.

image

from vscode-shopify-ruby.

unikitty37 avatar unikitty37 commented on June 24, 2024

Thanks — it seems I ran into the same issue I had in #443. Adding a basic Gemfile with rubocop in it allowed the LSP to start:

# frozen_string_literal: true

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.1.3'

gem 'rubocop', '~> 1.39.0', require: false

Now I just need to pick some colours I like 😁

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.