Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Improve color style/themes/syntax parser for packages and methods vs. functions #1923

Closed
warpkanal opened this issue Sep 11, 2018 · 1 comment
Labels

Comments

@warpkanal
Copy link

Would be cool if vscode could distinguish between method and function invocations, and additionally have a distinct TM scope (theme selector) for package name usages.
This is for example possible in Goland:
query_ 2018-09-11 08-28-05
Function invocations on some package (e.g. time.Now()) can be rendered differently than method invocations on some receiver e.g. (now.Day()).
I find this quite helpful in distinguishing the two.

Currently this is not possible in vscode's go extension as package references have no special TM scopes, nor have methods and functions different theme selectors.

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Sep 13, 2018

That would be cool to have indeed.

As you have already figured out, for function vs methods as well as package name usage, we would need special scopes for this case.
We use the grammar from https://github.com/atom/language-go for Go in VS Code, therefore that would be the right place to log this feature request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants