question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[PackageDev] Add support for var()

See original GitHub issue

Description

The support for PackageDev themes and color schemes is great - it’s what I most often use this plugin for. Would it be possible to add previews for the simple "var(some_color_variable)" syntax?

For example, in a color scheme, I define a variable and then use it for a global:

{
    "variables": {
        "blue": "#0042FF"
    },
    "globals": {
        "selection": "var(blue)"
    }
}

The color preview shows up next to the #0042FF as it should, but I would like that same preview to show up next to var(blue). I don’t use any of the color() mod function options, but I imagine those that do would probably like to see previews of those, too (if possible, given they’re implemented within Sublime and not exposed via the API, that I know of). However, even if you can’t do that or it would take a long time, I should think it would be fairly straightforward to highlight var(). Unless the variables themselves are made using color()

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
facelessusercommented, Jan 21, 2022

Can you elaborate? I’m not sure what your mean.

1reaction
AmjadHDcommented, Jan 21, 2022

Oh, I meant in the context of the command palette.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PackageDev - Package Control
PackageDev provides syntax highlighting and other helpful utility for Sublime Text resource files. ... Install the package using Package Control.
Read more >
go-ora - Go Packages
7: Add support for user defined types. this feature is now tested against these oracle versions 10.2, 12.2, 19.3. RegisterType function need extra...
Read more >
adding environment variables - Bioconductor Forum
getenv(VARIABLE)" when the function is called. In the help, I found a few different ways to set environment variables, but the easiest way...
Read more >
Creating an Alpine package
Add the doc subpackage to the $subpackages variable as follows: subpackages="$pkgname-doc". Add a similar line to the following to your package() function, ...
Read more >
npm install won't install devDependencies - Stack Overflow
Check the NPM docs for install. With the --production flag (or when the NODE_ENV environment variable is set to production), npm will not ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found