spike: Experiment with chaining links together#3639
Draft
claremacrae wants to merge 69 commits into
Draft
Conversation
# Conflicts: # tests/Scripting/TasksFile.test.ts
… loaded yet This will make tests of Links easier to write, as we won't have to force the tests to manually pre-load files being linked to.
This makes chaining of asFile().propertyAsLink('some-name') more consistent and less confusing
Co-Authored-By: Ilyas Landikov <93825870+ilandikov@users.noreply.github.com>
LinkResolver is now set up globally, so tests don't need to be resetting its global state.
LinkResolver is now set up globally, so tests don't need to be resetting its global state.
…solver.setup.ts, if needed at all
…nkResolver.setup.ts
…nkResolver.setup.ts
The file name has two spaces in, and the link was missing a closing ]
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



This is an experiment to aid discussion on:
It's purely so that a build is created, for users to experiment with this implementation and give feedback.
There is no intention to merge this branch to
main.Feedback
Please put any feedback in:
How to test this
dist-verifiedfileThe Changes
This adds:
task.file.propertyAsLink('property-name')- which returns the property as aLinkor anullLink.asFile()which returns aTasksFilerepresenting the link destination, ornullFor context,
TasksFileis the type oftask.file.An example of use, based on 4 test files that I added in PR...