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
Notify user if configured $schema is out of date (#1736)
* Notify user if configured $schema is out of date
* Remove .only
* Handle github infra issues
* Fix typo
* Fix config name check on windows
* Watch for JSON parsing failure
* Throw error for all non-404 errors
Copy file name to clipboardExpand all lines: package.json
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -674,6 +674,16 @@
674
674
"default": "prompt",
675
675
"markdownDescription": "Controls whether to open a swift project automatically after creating it.",
676
676
"scope": "application"
677
+
},
678
+
"swift.lspConfigurationBranch": {
679
+
"type": "string",
680
+
"markdownDescription": "Set the branch to use when setting the `$schema` property of the SourceKit-LSP configuration. For example: \"release/6.1\" or \"main\". When this setting is unset, the extension will determine the branch based on the version of the toolchain that is in use."
681
+
},
682
+
"swift.checkLspConfigurationSchema": {
683
+
"type": "boolean",
684
+
"default": true,
685
+
"markdownDescription": "When opening a .sourckit-lsp/config.json configuration file, whether or not to check if the $schema matches the version of Swift you are using.",
686
+
"scope": "machine-overridable"
677
687
}
678
688
}
679
689
},
@@ -749,10 +759,6 @@
749
759
"order": 6,
750
760
"scope": "machine-overridable"
751
761
},
752
-
"swift.sourcekit-lsp.configurationBranch": {
753
-
"type": "string",
754
-
"markdownDescription": "Set the branch to use when setting the `$schema` property of the SourceKit-LSP configuration. For example: \"release/6.1\" or \"main\". When this setting is unset, the extension will determine the branch based on the version of the toolchain that is in use."
`The $schema property for ${doc.uri.fsPath} is not set to the version of the Swift toolchain that you are using. Would you like to update the $schema property?`,
0 commit comments