Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the color of the global functions #1458

Closed
RomanSpector opened this issue Aug 11, 2022 · 1 comment
Closed

the color of the global functions #1458

RomanSpector opened this issue Aug 11, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@RomanSpector
Copy link

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Type Checking

Expected Behaviour

The global function must differ in color from the local ones

Actual Behaviour

image

Reproduction steps

AAAA = {};
AAAA[1] = true;

local aaaa = {};
aaaa[1] = true;

local b = aaaa[1];

BBBB = function() end
local bbbb = function() end

BBBB()
bbbb()

Additional Notes

editor.tokenColorCustomizations
  "editor.tokenColorCustomizations": {
      "textMateRules": [
          {
              "scope": [
                  "variable.other"
              ],
              "settings": {
                  "foreground": "#57c1ff"
              }
          },
          {
              "scope": [
                  "variable.parameter.function",
                  "variable.parameter",
                  "entity.name.variable"
              ],
              "settings": {
                  "foreground": "#ff9898",
                  "fontStyle": "italic"
              }
          },
          {
              "scope": [
                  "variable.other.property",
                  "variable.language.self",
                  "entity.name.class",
                  "support.type"
              ],
              "settings": {
                  "foreground": "#5df3b4"
              }
          },
          {
              "scope": [
                  "entity.name.label",
                  "keyword.operator"
              ],
              "settings": {
                  "foreground": "#d6d4d4"
              }
          },
          {
              "scope": [
                  "keyword.local",
                  "constant.language"
              ],
              "settings": {
                  "foreground": "#5386c9"
              }
          },
          {
              "scope": [
                  "support.function"
              ],
              "settings": {
                  "foreground": "#e6ecad"
              }
          },
          {
              "scope": [
                  "entity.name.function"
              ],
              "settings": {
                  "foreground": "#9dbad6"
              }
          },
          {
              "scope": [
                  "keyword.control"
              ],
              "settings": {
                  "foreground": "#d293f0"
              }
          },
          {
              "scope": [
                  "entity.name.tag"
              ],
              "settings": {
                  "foreground": "#5386C9"
              }
          },
          {
              "scope": [
                  "text.xml"
              ],
              "settings": {
                  "foreground": "#daeefa"
              }
          },
          {
              "scope": [
                  "entity.other.attribute-name"
              ],
              "settings": {
                  "foreground": "#57c1ff"
              }
          },
          {
              "scope": [
                  "string.quoted.double.xml"
              ],
              "settings": {
                  "foreground": "#5BEC95"
              }
          }
      ]
  },

Log File

No response

@sumneko sumneko added the enhancement New feature or request label Aug 11, 2022
@sumneko sumneko added this to the 3.6.0 milestone Sep 19, 2022
@sumneko
Copy link
Collaborator

sumneko commented Sep 19, 2022

Thank you for providing editor.tokenColorCustomizations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants