Skip to content

Commit 11137e1

Browse files
committed
Merge branch 'main' into 6.0/update-2024-06-04
2 parents 677487b + cec73bb commit 11137e1

File tree

134 files changed

+3145
-1445
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+3145
-1445
lines changed

.vscode/tasks.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"disableTaskQueue": true,
1111
"group": "test",
1212
"label": "Run all tests (parallel)",
13+
"options": {
14+
"env": {
15+
"SOURCEKITLSP_FORCE_NON_DARWIN_LOGGER": "1"
16+
}
17+
},
1318
"problemMatcher": [
1419
"$swiftc"
1520
],
@@ -30,7 +35,8 @@
3035
"label": "Run fast tests (parallel)",
3136
"options": {
3237
"env": {
33-
"SKIP_LONG_TESTS": "1"
38+
"SKIP_LONG_TESTS": "1",
39+
"SOURCEKITLSP_FORCE_NON_DARWIN_LOGGER": "1"
3440
}
3541
},
3642
"problemMatcher": [
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Environment variables
2+
3+
The following environment variables can be used to control some behavior in SourceKit-LSP
4+
5+
## Build time
6+
7+
- `SOURCEKITLSP_FORCE_NON_DARWIN_LOGGER`: Use the `NonDarwinLogger` to log to stderr, even when building SourceKit-LSP on macOS. This is useful when running tests using `swift test` because it writes the log messages to stderr, which is displayed during the `swift test` invocation.
8+
- `SOURCEKIT_LSP_CI_INSTALL`: Modifies rpaths in a way that’s necessary to build SourceKit-LSP to be included in a distributed toolchain. Should not be used locally.
9+
- `SWIFTCI_USE_LOCAL_DEPS`: Assume that all of SourceKit-LSP’s dependencies are checked out next to it and use those instead of cloning the repositories. Primarily intended for CI environments that check out related branches.
10+
11+
## Runtime
12+
13+
- `SOURCEKITLSP_LOG_LEVEL`: When using `NonDarwinLogger`, specify the level at which messages should be logged. Defaults to `default`. Use `debug` to increase to the highest log level.
14+
- `SOURCEKITLSP_LOG_PRIVACY_LEVEL`: When using `NonDarwinLogger`, specifies whether information that might contain personal information (essentially source code) should be logged. Defaults to `private`, which logs this information. Set to `public` to redact this information.
15+
16+
## Testing
17+
- `SKIP_LONG_TESTS`: Skip tests that typically take more than 1s to execute.
18+
- `SOURCEKITLSP_KEEP_TEST_SCRATCH_DIR`: Does not delete the temporary files created during test execution. Allows inspection of the test projects after the test finishes.
19+
- `SOURCEKIT_LSP_TEST_MODULE_CACHE`: Specifies where tests should store their shared module cache. Defaults to writing the module cache to a temporary directory. Intended so that CI systems can clean the module cache directory after running.

0 commit comments

Comments
 (0)