Skip to content

Commit e27ba74

Browse files
authored
Add UI Settings Group (#913)
Move the following settings in to their own group. Their ID does not change so there is no need to deprecate them or make code changes. - `swift.excludePathsFromPackageDependencies` - `swift.showBuildStatus` - `swift.showCreateSwiftProjectInWelcomePage` - `swift.openAfterCreateNewProject` Issue #901
1 parent b787be2 commit e27ba74

File tree

1 file changed

+44
-43
lines changed

1 file changed

+44
-43
lines changed

package.json

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -276,23 +276,11 @@
276276
],
277277
"order": 9
278278
},
279-
"swift.excludePathsFromPackageDependencies": {
280-
"description": "A list of paths to exclude from the Package Dependencies view.",
281-
"type": "array",
282-
"items": {
283-
"type": "string"
284-
},
285-
"default": [
286-
".git",
287-
".github"
288-
],
289-
"order": 10
290-
},
291279
"swift.backgroundCompilation": {
292280
"type": "boolean",
293281
"default": false,
294282
"markdownDescription": "**Experimental**: Run `swift build` in the background whenever a file is saved.",
295-
"order": 11
283+
"order": 10
296284
},
297285
"swift.actionAfterBuildError": {
298286
"type": "string",
@@ -307,43 +295,42 @@
307295
"Focus on Build Task Terminal"
308296
],
309297
"markdownDescription": "Action after a Build task generates errors.",
310-
"order": 12
298+
"order": 11
311299
},
312300
"swift.buildPath": {
313301
"type": "string",
314302
"default": "",
315303
"markdownDescription": "Path to the build directory passed to all swift package manager commands.",
316-
"order": 13
304+
"order": 12
317305
},
318306
"swift.disableSwiftPackageManagerIntegration": {
319307
"type": "boolean",
320308
"default": false,
321309
"markdownDescription": "Disables automated Build Tasks, Package Dependency view, Launch configuration generation and TestExplorer.",
322-
"order": 14
310+
"order": 13
323311
},
324-
"swift.showCreateSwiftProjectInWelcomePage": {
312+
"swift.warnAboutSymlinkCreation": {
325313
"type": "boolean",
326314
"default": true,
327-
"description": "Controls whether or not the create new swift project button appears in the welcome page.",
328-
"order": 15
329-
},
330-
"swift.openAfterCreateNewProject": {
331-
"type": "string",
332-
"enum": [
333-
"always",
334-
"alwaysNewWindow",
335-
"whenNoFolderOpen",
336-
"prompt"
337-
],
338-
"enumDescriptions": [
339-
"Always open in current window.",
340-
"Always open in a new window.",
341-
"Only open in current window when no folder is opened.",
342-
"Always prompt for action."
343-
],
344-
"default": "prompt",
345-
"description": "Controls whether to open a swift project automatically after creating it.",
346-
"order": 16
315+
"description": "Controls whether or not the extension will warn about being unable to create symlinks. (Windows only)",
316+
"scope": "application",
317+
"order": 14
318+
}
319+
}
320+
},
321+
{
322+
"title": "User Interface",
323+
"properties": {
324+
"swift.excludePathsFromPackageDependencies": {
325+
"description": "A list of paths to exclude from the Package Dependencies view.",
326+
"type": "array",
327+
"items": {
328+
"type": "string"
329+
},
330+
"default": [
331+
".git",
332+
".github"
333+
]
347334
},
348335
"swift.showBuildStatus": {
349336
"type": "string",
@@ -360,15 +347,29 @@
360347
"Show the Swift build status in a status bar item provided by the Swift extension.",
361348
"Show the Swift build status in the \"Progress Message\" status bar item provided by VS Code.",
362349
"Show the Swift build status as a progress notification."
363-
],
364-
"order": 17
350+
]
365351
},
366-
"swift.warnAboutSymlinkCreation": {
352+
"swift.showCreateSwiftProjectInWelcomePage": {
367353
"type": "boolean",
368354
"default": true,
369-
"description": "Controls whether or not the extension will warn about being unable to create symlinks. (Windows only)",
370-
"scope": "application",
371-
"order": 18
355+
"description": "Controls whether or not the create new swift project button appears in the welcome page."
356+
},
357+
"swift.openAfterCreateNewProject": {
358+
"type": "string",
359+
"enum": [
360+
"always",
361+
"alwaysNewWindow",
362+
"whenNoFolderOpen",
363+
"prompt"
364+
],
365+
"enumDescriptions": [
366+
"Always open in current window.",
367+
"Always open in a new window.",
368+
"Only open in current window when no folder is opened.",
369+
"Always prompt for action."
370+
],
371+
"default": "prompt",
372+
"description": "Controls whether to open a swift project automatically after creating it."
372373
}
373374
}
374375
},

0 commit comments

Comments
 (0)