Skip to content

Incorrect highlighting of other occurrences with "new" default constructor references #4454

@DanTup

Description

@DanTup

While investigating #4436, I noticed this odd highlighting:

Mar-23-2023 10-00-09

==> {
	"jsonrpc": "2.0",
	"id": 213,
	"method": "textDocument/documentHighlight",
	"params": {
		"textDocument": {
			"uri": "file:///Users/danny/Dev/TestStuff/dart-code-metrics/lib/src/analyzers/lint_analyzer/rules/rules_factory.dart"
		},
		"position": {
			"line": 167,
			"character": 7
		}
	},
	"clientRequestTime": 1679565486647
}

<== {
	"id": 213,
	"jsonrpc": "2.0",
	"result": [
		{
			"range": {
				"end": {
					"character": 16,
					"line": 168
				},
				"start": {
					"character": 70,
					"line": 166
				}
			}
		}
	]
}

Metadata

Metadata

Assignees

Labels

in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions