-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add likely project root as fallback cwd #33
Conversation
cwd = await packageDirectory({ | ||
cwd: path.dirname(fileURLToPath(textDocument.uri)) | ||
}) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend switching between the 2 behaviors based on workspacesAsPaths.length > 0
, instead of using one as a fallback for both o workspaces existing and a file not in a workspace.
Seems easier to reason about and debug
|
This is a draft because the tests are still failing (for good reasons). I just wanted to show it’s being worked on (although my spare time to work on this is a bit limited at the moment) |
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @remcohaszing!
The build is failing because of vfile/vfile-message@ebe7190 |
Initial checklist
Description of changes
This uses the ancestor directory containng
package.json
or.git
as the cwd forvfile
andunified-engine
.Closes #29