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
Copy file name to clipboardExpand all lines: .pre-commit-config.yaml
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,24 @@ repos:
22
22
hooks:
23
23
- id: mypy
24
24
files: '\.py$'
25
-
# exclude: "^tests/.+$"
25
+
args:
26
+
# These flags make mypy associate different module names to `test.py`
27
+
# files from different test directories.
28
+
- --explicit-package-bases
29
+
- --namespace-packages
26
30
additional_dependencies:
27
31
- pytest-lsp
32
+
- e3-testsuite
33
+
- psutil
34
+
- types-psutil
35
+
36
+
- repo: local
37
+
hooks:
38
+
# This hook checks that Python test directories are valid module names so
39
+
# that mypy will accept to analyse multiple test.py in different
40
+
# directories.
41
+
- id: py-filenames
42
+
name: Python test.py paths
43
+
entry: Python path components should be valid modules names (e.g. no '.' or whitespace). This is for mypy to accept dealing with test.py files in different directories.
Settings understood by the Ada Language Server itself, independently from the LSP client:
79
84
80
85
*[projectFile](#projectfile)
81
86
*[scenarioVariables](#scenariovariables)
@@ -97,6 +102,29 @@ Ada Language Server understands these settings:
97
102
98
103
----
99
104
105
+
### showNotificationsOnErrors
106
+
107
+
Controls whether VS Code should display error notifications for failing LSP requests.
108
+
109
+
This is disabled by default to avoid distractions while coding, and can be enabled if the User wishes to troubleshoot an unexpected behavior in the Ada & SPARK language support in VS Code.
110
+
Note that regardless of this setting, errors are always logged to the VS Code output channels `Ada Language Server` and `GPR Language Server`. This setting only controls whether a corresponding visual notification is emitted in the UI.
111
+
112
+
### trace.server
113
+
114
+
This option controls the tracing of the communication between VS Code and the Ada
115
+
language server. It causes the client to trace each message sent and received
116
+
to/from the Ada language server in the `Ada Language Server` Output view.
117
+
118
+
The possible values are:
119
+
120
+
*`off`: no tracing.
121
+
*`messages`: brief traces are emitted for each request sent and each response received.
122
+
*`verbose`: verbose traces are emitted for each request sent and each response received, including the message content.
123
+
124
+
On the server side this option does not trigger any additional logging.
125
+
126
+
An equivalent setting `gpr.trace.server` exists for tracing the communcation between VS Code and the GPR language server.
127
+
100
128
### projectFile
101
129
102
130
You can configure the GNAT Project File via the `projectFile` key.
@@ -291,22 +319,6 @@ For more information about documentation styles see GNATdoc User's Manual.
291
319
'documentationStyle':'gnat'
292
320
```
293
321
294
-
### trace.server
295
-
296
-
This option controls the tracing of the communication between VS Code and the Ada
297
-
language server. It causes the client to trace each message sent and received
298
-
to/from the Ada language server in the `Ada Language Server` Output view.
299
-
300
-
The possible values are:
301
-
302
-
*`off`: no tracing.
303
-
*`messages`: brief traces are emitted for each request sent and each response received.
304
-
*`verbose`: verbose traces are emitted for each request sent and each response received, including the message content.
305
-
306
-
On the server side this option does not trigger any additional logging.
307
-
308
-
An equivalent setting `gpr.trace.server` exists for tracing the communcation between VS Code and the GPR language server.
309
-
310
322
### onTypeFormatting.indentOnly
311
323
312
324
This option controls if the `textDocument/onTypeFormatting` request only indents a new line, or if
@@ -318,3 +330,4 @@ it additionally tries to format the previous node. By default, this option is en
318
330
This option controls the formatting provider for the `textDocument/formatting`,
319
331
`textDocument/rangeFormatting` and `textDocument/onTypeFormatting` request. By default, this option
320
332
is enabled and ALS uses GNATformat as its formatting provider. If disabled, GNATpp is used instead.
0 commit comments