Open veger opened 5 years ago
Likely a regression, not intentional. The Tree-sitter nodes are roughly
source.go
source_file
import_declaration
import_spec
interpreted_string_literal
so it shouldn't be too difficult to reintroduce the scope.
There are a couple of ways to disable Tree-sitter, both globally through Settings -> Core, or directly in the config file on a per language basis. But that shouldn't be needed.
👍 reproduced with 1.36.0-nightly10 on macOS 10.12.6.
Description
The golang language used to have a
entity.name.import.go
scope, which could be used to see if the grammar was inside an import block:or
But I cannot find this in the tree-sitter grammar rules (which seems to be used now?)
Is this expected, or forgotten to include?
My linter-spell-go package was using this to disable spell checking on import strings, that is how I noticed this issue.
Steps to Reproduce
Editor: Log Cursor Scope
commandExpected behavior:
(or something like this, I cannot get the original anymore since it is gone)
Actual behavior:
Versions