Comments (4)
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.
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
from vscode-shopify-ruby.
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.
from vscode-shopify-ruby.
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)
- Replace GitHub Personal Access Tokens with Org-Rotated Tokens HOT 1
- Can I override the ruler configuration? HOT 3
- Interest in supporting this extension pack in a GitHub Codespace? HOT 3
- Remove ? and ! from editor.wordSeparators HOT 3
- Message about uninstalling reborn.ruby and wingrunr21.vscode-ruby upon Vscode startup HOT 5
- Ruby extension wants to set Shopify.ruby-lsp as default formatter, but then complains it can't format Ruby HOT 9
- Add setting to disable Spinel theme prompt HOT 1
- Stand-alone theme HOT 1
- Is there a way to use this extension without it changing my rulers? HOT 1
- add support for standardrb HOT 6
- Does not work for versions lower than ruby 3 HOT 1
- bricks color theme HOT 6
- Clarify that this extension is not intended for general Ruby development HOT 6
- Feature request: built-in support for syntax_suggest HOT 3
- Syntax highlighting breaks on non-Spinel themes HOT 1
- Why does it bundle koichisasada.vscode-rdbg when Shopify.ruby-lsp supports debugging? HOT 3
- Rename extension
- running
- any plan to add support for erb files? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-shopify-ruby.