mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
089cc85d4a
This PR updates the `extension` crate's tests to use a dedicated test extension for its tests instead of the real Gleam extension. As the Gleam extension continues to evolve, it makes it less suitable to use as a test fixture: 1. For a while now, the test has failed locally due to me having `gleam` on my $PATH, which causes the extension's `get_language_server_command` to go down a separate codepath. 2. With the addition of the `indexed_docs_providers` the test was hanging indefinitely. While these problems are likely solvable, it seems reasonable to have a dedicated extension to use as a test fixture. That way we can do whatever we need to exercise our test criteria. The `test-extension` is a fork of the Gleam extension with some additional functionality removed. Release Notes: - N/A
31 lines
629 B
Scheme
31 lines
629 B
Scheme
(external_type
|
|
(visibility_modifier)? @context
|
|
"type" @context
|
|
(type_name) @name) @item
|
|
|
|
(type_definition
|
|
(visibility_modifier)? @context
|
|
(opacity_modifier)? @context
|
|
"type" @context
|
|
(type_name) @name) @item
|
|
|
|
(data_constructor
|
|
(constructor_name) @name) @item
|
|
|
|
(data_constructor_argument
|
|
(label) @name) @item
|
|
|
|
(type_alias
|
|
(visibility_modifier)? @context
|
|
"type" @context
|
|
(type_name) @name) @item
|
|
|
|
(function
|
|
(visibility_modifier)? @context
|
|
"fn" @context
|
|
name: (_) @name) @item
|
|
|
|
(constant
|
|
(visibility_modifier)? @context
|
|
"const" @context
|
|
name: (_) @name) @item
|