-
Notifications
You must be signed in to change notification settings - Fork 77
Support for multi-root .code-workspace workspaces #1566
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
Open
award999
wants to merge
11
commits into
swiftlang:main
Choose a base branch
from
award999:code-workspace
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
dae0c6e
Avoid situation where a postfix is appended twice in status bar
award999 0b136f9
Smarter finding of the root "test" folder
award999 a987725
Add extra sdk arguments for code-workspace tests
award999 f1af2c9
Better plugin arg assertions
award999 693d0c8
Fixes for code workspace debugging
award999 dba7bd7
Code workspace tests
award999 bdc6afa
Include test explorer suite
award999 1ba5b68
Fix tests so don't need root "test" folder
award999 9fa448c
Include dependency tests
award999 7ab4834
Make sure we do not miss folders
award999 e09ad77
Fix dependencies test
award999 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"name": "diagnostics", | ||
"path": "./test/diagnostics" | ||
}, | ||
{ | ||
"name": "dependencies", | ||
"path": "./test/dependencies" | ||
}, | ||
{ | ||
"name": "command-plugin", | ||
"path": "./test/command-plugin" | ||
}, | ||
{ | ||
"name": "defaultPackage", | ||
"path": "./test/defaultPackage" | ||
} | ||
], | ||
"settings": { | ||
"swift.disableAutoResolve": true, | ||
"swift.autoGenerateLaunchConfigurations": false, | ||
"swift.debugger.debugAdapter": "lldb-dap", | ||
"swift.debugger.setupCodeLLDB": "alwaysUpdateGlobal", | ||
"swift.additionalTestArguments": [ | ||
"-Xswiftc", | ||
"-DTEST_ARGUMENT_SET_VIA_TEST_BUILD_ARGUMENTS_SETTING" | ||
], | ||
"lldb.verboseLogging": true, | ||
"lldb.launch.terminal": "external", | ||
"lldb-dap.detachOnError": true, | ||
"swift.sourcekit-lsp.backgroundIndexing": "off" | ||
}, | ||
"tasks": { | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "swift", | ||
"args": [ | ||
"build", | ||
"--build-tests", | ||
"--verbose", | ||
"-Xswiftc", | ||
"-DBAR" | ||
], | ||
"cwd": "${workspaceFolder:defaultPackage}", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"label": "swift: Build All (defaultPackage) (workspace)", | ||
"detail": "swift build --build-tests --verbose -Xswiftc -DBAR" | ||
}, | ||
{ | ||
"type": "swift", | ||
"args": [ | ||
"build", | ||
"--show-bin-path" | ||
], | ||
"cwd": "${workspaceFolder:defaultPackage}", | ||
"group": "build", | ||
"label": "swift: Build All from code workspace", | ||
"detail": "swift build --show-bin-path" | ||
}, | ||
{ | ||
"type": "swift-plugin", | ||
"command": "command_plugin", | ||
"args": [ | ||
"--foo" | ||
], | ||
"cwd": "${workspaceFolder:command-plugin}", | ||
"disableSandbox": true, | ||
"label": "swift: command-plugin from code workspace", | ||
"detail": "swift package command_plugin --foo" | ||
}, | ||
{ | ||
"type": "swift", | ||
"args": [ | ||
"build", | ||
"--product", | ||
"PackageExe", | ||
"-Xswiftc", | ||
"-diagnostic-style=llvm", | ||
"-Xswiftc", | ||
"-DBAR" | ||
], | ||
"cwd": "${workspaceFolder:defaultPackage}", | ||
"group": "build", | ||
"label": "swift: Build Debug PackageExe (defaultPackage) (workspace)", | ||
"detail": "swift build --product PackageExe -Xswiftc -diagnostic-style=llvm -Xswiftc -DBAR" | ||
}, | ||
{ | ||
"type": "swift", | ||
"args": [ | ||
"build", | ||
"-c", | ||
"release", | ||
"--product", | ||
"PackageExe", | ||
"-Xswiftc", | ||
"-diagnostic-style=llvm", | ||
"-Xswiftc", | ||
"-DBAR" | ||
], | ||
"cwd": "${workspaceFolder:defaultPackage}", | ||
"group": "build", | ||
"label": "swift: Build Release PackageExe (defaultPackage) (workspace)", | ||
"detail": "swift build -c release --product PackageExe -Xswiftc -diagnostic-style=llvm -Xswiftc -DBAR" | ||
} | ||
] | ||
}, | ||
"launch": { | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "swift", | ||
"request": "launch", | ||
"name": "Debug PackageExe (defaultPackage) (workspace)", | ||
"program": "${workspaceFolder:defaultPackage}/.build/debug/PackageExe", | ||
"args": [], | ||
"cwd": "${workspaceFolder:defaultPackage}", | ||
"preLaunchTask": "swift: Build Debug PackageExe (defaultPackage) (workspace)", | ||
"disableASLR": false, | ||
"initCommands": [ | ||
"settings set target.disable-aslr false" | ||
] | ||
}, | ||
{ | ||
"type": "swift", | ||
"request": "launch", | ||
"name": "Release PackageExe (defaultPackage) (workspace)", | ||
"program": "${workspaceFolder:defaultPackage}/.build/release/PackageExe", | ||
"args": [], | ||
"cwd": "${workspaceFolder:defaultPackage}", | ||
"preLaunchTask": "swift: Build Release PackageExe (defaultPackage) (workspace)", | ||
"disableASLR": false, | ||
"initCommands": [ | ||
"settings set target.disable-aslr false" | ||
] | ||
} | ||
], | ||
"compounds": [] | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"type": "swift", | ||
"request": "launch", | ||
"name": "Attach to Swift Executable", | ||
"program": "${workspaceFolder}/.build/aarch64-unknown-linux-gnu/debug/PackageExe", | ||
// "attachCommands": [ | ||
// // "gdb-remote 1234", | ||
// // "process launch" | ||
// "platform select remote-linux", | ||
// "platform connect connect://127.0.0.1:1234" | ||
// ], | ||
// "initCommands": [ | ||
// "target create .build/aarch64-unknown-linux-gnu/debug/PackageExe", | ||
// "b main.swift:7", | ||
// ] | ||
"initCommands": [ | ||
"platform select remote-linux", | ||
// "platform connect connect://127.0.0.1:1234", | ||
"gdb-remote 1234", | ||
"settings set target.inherit-env false" | ||
] | ||
}, | ||
{ | ||
"type": "swift", | ||
"request": "launch", | ||
"name": "Debug package1", | ||
"program": "${workspaceFolder:defaultPackage}/.build/debug/package1", | ||
"args": [], | ||
"cwd": "${workspaceFolder:defaultPackage}", | ||
"preLaunchTask": "swift: Build Debug package1" | ||
}, | ||
{ | ||
"type": "swift", | ||
"request": "launch", | ||
"name": "Release package1", | ||
"program": "${workspaceFolder:defaultPackage}/.build/release/package1", | ||
"args": [], | ||
"cwd": "${workspaceFolder:defaultPackage}", | ||
"preLaunchTask": "swift: Build Release package1" | ||
}, | ||
{ | ||
"type": "swift", | ||
"request": "launch", | ||
"args": [], | ||
"cwd": "${workspaceFolder:defaultPackage}", | ||
"name": "Debug PackageExe", | ||
"program": "${workspaceFolder:defaultPackage}/.build/debug/PackageExe", | ||
"preLaunchTask": "swift: Build Debug PackageExe" | ||
}, | ||
{ | ||
"type": "swift", | ||
"request": "launch", | ||
"args": [], | ||
"cwd": "${workspaceFolder:defaultPackage}", | ||
"name": "Release PackageExe", | ||
"program": "${workspaceFolder:defaultPackage}/.build/release/PackageExe", | ||
"preLaunchTask": "swift: Build Release PackageExe" | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.