You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Why do have delays of >= 120 seconds when using LS.
4
+
*1. This is to provide LS sufficient time to analyze the entire workspace.
5
+
* E.g. when using a `conda` environment, LS takes a long time to complete analysis.
6
+
* This results in delays in responsiveness of LS, i.e. features such as `intellisense`, `code navigation`, etc might not be ready or won't respond in time.
7
+
* To determine whether the LS has completed analysis, we ensure the statusbar item `Analyzing in background` is no longer visible.
8
+
*2. Also, it takes time to download & extract the Language Server
Scenario Outline: When I open VS Code for the first time with Jedi <jedi_enable>d, open a file then navigate to definition of a variable
45
-
When I open VS Code for the first time
46
-
And I <jedi_enable> the workspace setting "python.jediEnabled"
47
-
And I select the command "Python: Show Output"
26
+
Scenario Outline: When <reload_or_start_vs_for_first_time> then navigate to the definition of a variable after opening file with Language Server enabled
27
+
When <reload_or_start_vs_for_first_time>
28
+
And I disable the workspace setting "python.jediEnabled"
48
29
And I wait for the Python extension to activate
49
-
And I open the file "my_sample.py"
50
-
And I select the command "<output_panel_command>"
51
-
Then the text "<text_in_output_panel>" will be displayed in the output panel within <time_to_activate> seconds
52
-
# Because LS is slow.
53
-
And wait for <time_to_activate> seconds
54
-
When I go to line 3, column 10
30
+
And I select the command "Python: Show Output"
31
+
Then the text "Microsoft Python language server" will be displayed in the output panel within 120 seconds
32
+
When I select the command "Python: Show Language Server Output"
33
+
Then the text "Initializing for" will be displayed in the output panel within 120 seconds
34
+
# Sometimes LS & Jedi are slow.
35
+
When I wait for 10 seconds
36
+
Then the status bar item containing the text "Analyzing in background" will be hidden within 120 seconds
37
+
When I open the file "my_sample.py"
38
+
And I go to line 3, column 10
55
39
# Wait for intellisense to kick in (sometimes slow in jedi & ls)
0 commit comments