shopify / vscode-shopify-ruby Goto Github PK
View Code? Open in Web Editor NEWAn opinionated and auto-configured set of extensions for Ruby development
License: MIT License
An opinionated and auto-configured set of extensions for Ruby development
License: MIT License
Should we enable this feature by default?
This feature might be a bit too "flashy" with default themes. See this snippet for example:
vs. the default behavior:
Is is nonetheless possible to fix the colors used. For example I used those colors and the result is more acceptable for me:
"workbench.colorCustomizations": {
"editorBracketHighlight.foreground1": "#cccccc",
"editorBracketHighlight.foreground2": "#99cccc",
"editorBracketHighlight.foreground3": "#cc99cc",
"editorBracketHighlight.foreground4": "#cccc99",
"editorBracketHighlight.foreground5": "#77cc99",
"editorBracketHighlight.foreground6": "#9999cc",
}
I'd like a method to disable the theme suggestion permanently so that I don't see if on a fresh VSCode.
With remote development environments, we are starting with a fresh VSCode state. I'm seeing the "try new Ruby code theme" prompt very often, and I'd like a way to disable it in my VSCode config.
I think there could be two approaches here:
We might just be able to use the Ruby Test Runner extension.
The goal is to be able to easily run Ruby tests in VSCode by clicking a button in the editor. The extension linked above has options to run all the tests in a project, all tests in a file, or even to run just the test at a certain cursor location. This is not the same thing as the Test Explorer, which our team could investigate further in a separate ticket.
It would be great if we could install the theme used in the pack (Spinel) by itself.
Our style guide recommends max lines at 120 chars when writing Ruby code.
We should pre-configure the VS Code ruler to this limit.
For probably 15 years I've had my editor configured with rulers at 72, 80, and 120 characters. This extension hardcodes the 120-character ruler under [ruby] editors.ruler
— which would be ok, because I can edit my settings.json
to remove that setting. The problem is that the extension's setting is regularly added back to my settings.json
, either by the extension itself or perhaps by something like VS Code’s setting syncing.
This repeated override of my preferences is annoying, and I'd like it to stop. Is there a way I can prevent the extension from interfering?
Hey!
VSCode default setting for splitting selection and doing word related navigations or operations (editor.wordSeparators
) is: "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"
Since in ruby ?
and !
are often used as method suffixes, what do you think of adding a ruby specific setting removing ?
and !
from the default editor.wordSeparators
? This would allow easier selection (think double-click and arrow selection) of method and symbols ending with those 2 chars.
fn + F5
)settings.json
cmd + shift + P
)Decide for each
Apply
and the settings will be not be added to settings.json
This bug was likely caused by #133
After reading #562, I was a bit concerned about using these extensions for general development, but they appear fine to use right now. I've just noticed, though, syntax highlighting sometimes breaks in other color themes. Below is a Regexp
to match a Japanese date format in the built-in Red color theme. It does not appear like this without the Ruby extensions installed. To note, the Spinel themes that comes with the extensions do not appear to have this issue.
I find the Spinel theme to be much too bright (and very distracting as a result) so I'm using Darcula IntelliJ Theme Extended instead. It doesn't have the semantic token colours needed for Ruby, though.
I've tried adding this to settings.json
but it doesn't seem to make any difference to what's displayed when I open a Ruby file — I still the the same as if I hadn't added this JSON.
"editor.semanticTokenColorCustomizations": {
"[Darcula IntelliJ Theme Extended]": {
"enabled": true,
"rules": {
"variable": "#1eda7c",
"class": {
"foreground": "#ec7a08",
"fontStyle": "bold"
}
}
}
},
(Yes, those two colours are also garish, but I wanted to be sure I could see them change while I was experimenting :)
Am I actually configuring this correctly?
Hi,
I'm using this color theme: https://github.com/mrded/vscode-theme-railscasts
and after enabling the Shopify ruby extension it bricks my color theme?
How can I disable the override over my colortheme?
Should we change the extension display name to match the extension id?
OSX 13.3.1
3.1.3
rvm
Looking in the .ruby-lsp Gemfile.lock, I am using ruby-lsp 0.4.5
and the extension version is 0.2.5
and Vscode says it is up to date. When I start Vscode I see the following message
The Ruby LSP has fully replaced the Ruby plugin functionality. Uninstall the
rebornix.rubyand the
wingrunr21.vscode-rubyextensions. Click
Cleanupto remove related configuration.
I have searched for the two cited extensions and can find neither. I have clicked 'Cleanup` but the error occurs again upon startup. I am new to the extension but I am finding very useful, thank you. It is just a bit talkative upon startup.
Workspace settings (configured in repositories .vscode/settings.json
) have higher priority than global settings defined in a user's settings.json.
We should enhance our prompt when we identify a workspace setting to let the user know that - even after applying the override - it will not have higher priority than what's configured in the workspace.
Should we rename this repo to match the extension id in the marketplace?
For some reason, when we create a single release, three publish builds are enqueued.
This has no actual impact, since one of the builds successfully publishes and then the other two fail saying that the current version is already uploaded. However, it does pollute the actions log and notifies our team that an action has failed, so it would be nice to figure out how to make it enqueue only a single publish action.
is there any requirements list for things that we should install? or setup that we should do to make the extension works?
I didn't catch a screenshot but:
When you're applying our settings on an environment that doesn't have entries for said settings, the button to accept our settingss says "override" even when we're not overriding anything. We're simply adding. I'd expect the word "override" only when I'm truly overriding a decision I've already made.
If a VSCode environment doesn't have any existing entry for a setting that we're applying, let's have the button read "add all" or "accept all" to avoid any confusion on what it's actually doing.
Similar for the 'choose individual settings' workflow. Let's use "add" or "accept" in the case where there's no existing setting.
Only if a setting exists already in some capacity should we use the word "override"
My team has been using Codespaces more and more for Ruby development (Rails w/ Postresql mostly), and I've been looking for best practices to follow. I'm not sure it's entirely in scope for this repo, but would love to know if anyone is using this successfully with GitHub Codespaces for their team?
If so, would you be willing to share your setup in this repo, so you can quickly configure a new Codespace using this extension pack? Would the maintainers be interested in that kind of contribution?
It would be great to have a guide on how to tophat locally, run tests, etc.
Similar to the configuration added in #125, consider adding the recommended indentation for YAML, HTML, JavaScript, TypeScript and other files that are commonly worked on in Ruby/Rails projects.
Through the magic of ✨algorithms✨, naming, and (presumably) being a verified org, this extension is currently the top non-deprecated result for "ruby" in the VSCode extensions shop. However, per Kevin Newton it is meant specifically for Shopify Rails development, not for general Ruby dev. There's probably nothing you can do to sink the extension below Ruby-LSP in the search results, but a clear notice in the description and README that this is intended for Shopify development would be a service to newcomers and eliminate some confusion.
The display name Ruby
can be confusing and doesn't indicate that this is an extension pack and in fact includes no Ruby related features in its own code (everything comes from the extensions included in the pack).
We tried renaming it #565, but unfortunately the marketplace won't accept a display name change and publishing fails.
We need to investigate if there's a process for renaming the extension. Maybe we have to file a request somewhere.
When I open a Ruby file, I get the error 'No configuration found for editor.defaultFormatter. Would you like to apply the suggested default ("Shopify.ruby-lsp")?'
If I click Apply, then open the command palette and run Developer: Reload Window
I get the formatter error icon in the status bar. Clicking on it shows a message saying "Formatting — Extension 'Ruby-LSP' is configured as formatter but it cannot format 'Ruby'-files'. Clicking the Configure…
link only offers me ruby-rubocop-revived
as a formatter.
Why would the extension offer to set Ruby-LSP as the default formatter if it can't format Ruby? (I'm not sure if the problem is that it's offering when it shouldn't, or if VSCode thinks Ruby-LSP can't format when it can :)
syntax_suggest is a great feature of recent Rubies. Editor integration for it would be a welcome addition!
EDIT: Here's an example of a plugin for solargraph that does the same as what I'm suggesting here
The use of personal access tokens (or PATs) has been detected in workflows at use in this repository.
Due to various security concerns around the use of personal access tokens in GitHub Actions, you must onboard to the new centralized token rotations service and replace all use of personal access tokens with a new, organization-provided rotated token.
Personal access tokens in use at Shopify for GitHub Actions provide an unnecessarily large blast radius.
Replacing the use of personal access tokens with organization-provided tokens will provide the following benefits:
A security audit will be performed, and teams will be asked to explain why personal access tokens are in continued use.
More resources:
At the latest, this should be done before 2022-08-31.
Please contact the code-scale team using Slack at #code-scale.
I saw that the extension enforces 120, and overwrites any changes that I make to setting.json
Is there any way to set it to another value?
This is really unclear. Shopify.ruby-lsp supports debugging. And this extension pack depends on koichisasada.vscode-rdbg. So what should I use to debug? Shopify.ruby-lsp or koichisasada.vscode-rdbg? If the answer is Shopify.ruby-lsp, then this plugin should no longer bundle koichisasada.vscode-rdbg. And if the answer is koichisasada.vscode-rdbg, then why does Shopify.ruby-lsp support debugging?
any plan to add support for erb files?
idk how you guys handle the erb files on vscode for the formatting and syntax highlighting
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.