-
Notifications
You must be signed in to change notification settings - Fork 933
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
Report errors in configs, and load configs from anywhere #7650
base: master
Are you sure you want to change the base?
Conversation
This avoids the extension overwriting the selected project if the RC file is manually edited.
6c85a19
to
5734e4f
Compare
error: err, | ||
range: new vscode.Range(0, 0, 0, 0), | ||
}; | ||
}, | ||
); | ||
|
||
cancel = |
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.
not following the purpose of the cancel. Is this on shutdown?
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.
Shutdown or when the function runs again.
We don't want to keep adding new listeners again and again.
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.
Switch to using effect
cleanup like in another part of the code
return this.switchCase<Promise<Result<NewT>>>( | ||
(value) => cb(value), | ||
async (error) => new ResultError(error) | ||
followAsync<NewT, ErrorT>( |
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.
Can you leave some comments explaining the purpose of follow and followAsync?
I may be unfamiliar with "follow" terminology, but it seems more like a callback executor w/ error resolver?
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.
Added some docs
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.
Please clean up console.logs.
Please assign effects/subscriptions to named variables (serving as descriptors), and push them to context.subscriptions altogether.
Please name disposables as e.g. "watcherDisposable" when appropriate.
Thanks!
I think I've addressed everything :) |
Description
Scenarios Tested
Sample Commands