Skip to content

Commit f2e957b

Browse files
Keep the original order of privacyLevel enum cases
1 parent f14e2a6 commit f2e957b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Documentation/Configuration File.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The structure of the file is currently not guaranteed to be stable. Options may
4242
- `updateIndexStoreTimeout: integer`: Number of seconds to wait for an update index store task to finish before killing it.
4343
- `logging`: Options related to logging, changing SourceKit-LSP’s logging behavior on non-Apple platforms. On Apple platforms, logging is done through the [system log](Diagnose%20Bundle.md#Enable%20Extended%20Logging). These options can only be set globally and not per workspace.
4444
- `level: "debug"|"info"|"default"|"error"|"fault"`: The level from which one onwards log messages should be written.
45-
- `privacyLevel: "sensitive"|"private"|"public"`: Whether potentially sensitive information should be redacted. Default is `public`, which redacts potentially sensitive information.
45+
- `privacyLevel: "public"|"private"|"sensitive"`: Whether potentially sensitive information should be redacted. Default is `public`, which redacts potentially sensitive information.
4646
- `inputMirrorDirectory: string`: Write all input received by SourceKit-LSP on stdin to a file in this directory. Useful to record and replay an entire SourceKit-LSP session.
4747
- `defaultWorkspaceType: "buildServer"|"compilationDatabase"|"swiftPM"`: Default workspace type. Overrides workspace type selection logic.
4848
- `generatedFilesPath: string`: Directory in which generated interfaces and macro expansions should be stored.

SourceKitLSPDevUtils/Sources/ConfigSchemaGen/ConfigSchemaGen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public struct ConfigSchemaGen {
8383
schema["logging"]?["privacyLevel"]?.kind = .enum(
8484
OptionTypeSchama.Enum(
8585
name: "PrivacyLevel",
86-
cases: ["sensitive", "private", "public"].map {
86+
cases: ["public", "private", "sensitive"].map {
8787
OptionTypeSchama.Case(name: $0)
8888
}
8989
)

config.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@
176176
"privacyLevel" : {
177177
"description" : "Whether potentially sensitive information should be redacted. Default is `public`, which redacts potentially sensitive information.",
178178
"enum" : [
179-
"sensitive",
179+
"public",
180180
"private",
181-
"public"
181+
"sensitive"
182182
],
183183
"markdownDescription" : "Whether potentially sensitive information should be redacted. Default is `public`, which redacts potentially sensitive information.",
184184
"type" : "string"

0 commit comments

Comments
 (0)