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

const types do not get special scope #20

Open
alexr00 opened this issue Oct 25, 2024 · 0 comments
Open

const types do not get special scope #20

alexr00 opened this issue Oct 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@alexr00
Copy link

alexr00 commented Oct 25, 2024

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.94.0 (Universal)
  • OS Version: macOS Sonoma 14.7

Version: 1.94.0 (Universal)
Commit: d78a74bcdfad14d5d3b1b782f87255d802b57511
Date: 2024-10-02T13:08:12.626Z (4 days ago)
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0

Steps to Reproduce:

PHP class has missing syntax highlight for constant type

  1. create a class with a constant with a type
  2. type is colored like the constant name
<?php

declare(strict_types=1);

namespace Core;

class Status
{
	/** @var string FOO_BAR */
	public const string FOO_BAR = 'foobar';
}

"string" has the same as "FOO_BAR"
Screenshot 2024-10-07 at 13 13 17

"FOO_BAR"
Screenshot 2024-10-07 at 13 13 28

Originally from @gullevek in microsoft/vscode#230674

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