Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support code-workspace files #1072

Open
award999 opened this issue Sep 16, 2024 · 0 comments
Open

Support code-workspace files #1072

award999 opened this issue Sep 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@award999
Copy link
Contributor

Right now the vscode-swift extension is not working well with multi-root workspaces. Using the asset/test projects as an example

user should be able to define multiple folders

"folders": [
  {
	  "name": "defaultPackage",
	  "path": "./defaultPackage"
  },
  {
	  "name": "diagnostics",
	  "path": "./diagnostics"
  },
],

and multiple task definitions

"tasks": [
	{
		"type": "swift",
		"args": [
			"build",
			"--build-tests",
			"--verbose"
		],
		"cwd": "./defaultPackage",
		"group": "build",
		"label": "swift: Build All (defaultPackage)",
		"detail": "swift build --build-tests --verbose"
	}
]

particularly "cwd" does not resolve properly whether it is relative ./defaultPackage or ${workspaceFolder:defaultPackage}. SourceKit-LSP was not starting up correctly. Have not tried debugging yet but could see "program" not resolving properly as well.

@award999 award999 added the enhancement New feature or request label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant