History

Added JavaScript runnable detection for `context` and `suite` methods (#21719)

Fixes https://github.com/zed-industries/zed/pull/21246#issuecomment-2525578141 <img width="545" alt="Screenshot 2024-12-08 at 22 58 33" src="https://github.com/user-attachments/assets/2f303bfe-9718-4aa9-910e-613feca15ea8"> <img width="409" alt="Screenshot 2024-12-08 at 22 58 44" src="https://github.com/user-attachments/assets/c4576cf7-fd71-44d2-911e-3ed944c9b794"> Release Notes: - Added JavaScript runnable detection for `context` and `suite` methods for mochajs framework

Remco Smits committed 1 year ago

Commit e58cdca1 parent 45642736 files · +6 −6Browse files

Showing the changes to crates/languages/src/javascript (2 of 6 files). Show all

Unified · Split

2 files
  1. crates/languages/src/javascript/outline.scm +1 −1
  2. crates/languages/src/javascript/runnables.scm +1 −1
crates/languages/src/javascript/outline.scm+1−1
@@ -73,7 +73,7 @@ · 72 unmodified lines
73 ]73 ]
74 )74 )
75 ] @context75 ] @context
76 (#any-of? @_name "it" "test" "describe")76 (#any-of? @_name "it" "test" "describe" "context" "suite")
77 arguments: (77 arguments: (
78 arguments . (string (string_fragment) @name)78 arguments . (string (string_fragment) @name)
79 )79 )
crates/languages/src/javascript/runnables.scm+1−1
@@ -11,7 +11,7 @@ · 10 unmodified lines
11 ]11 ]
12 )12 )
13 ]13 ]
14 (#any-of? @_name "it" "test" "describe")14 (#any-of? @_name "it" "test" "describe" "context" "suite")
15 arguments: (15 arguments: (
16 arguments . (string (string_fragment) @run)16 arguments . (string (string_fragment) @run)
17 )17 )

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t