We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Today it is:
static revive(data: UriComponents | any): URI { ... }
It should be something like:
static revive(data: UriComponents): URI; static revive(data: UriComponents | undefined): URI | undefined; static revive(data: UriComponents | null): URI | null; static revive(data: UriComponents | null | undefined): URI | null | undefined; static revive(data: UriComponents | null | undefined): URI | null | undefined { ... }
cc @weinand
The text was updated successfully, but these errors were encountered:
I was running into this issue when I changed some type from being a URL to URL[] and the "revive" would happily accept it...
Sorry, something went wrong.
Fixed.
@aeschli This is the only thing that now looks fishy: https://github.com/Microsoft/vscode/blob/261fa9f93910ec25a9836fcfe68d7f3cb4a6a06b/src/vs/workbench/electron-browser/window.ts#L529
261fa9f
also make null-lovers happy, #71992
5ccbc56
Verified via review. @jrieken FYI you can avoid these casts:
vscode/src/vs/workbench/api/browser/mainThreadSearch.ts
Lines 157 to 168 in 8ef8aa6
Like this:
dataOrUri.forEach(result => { if ('resource' in result) { searchOp.addMatch({ resource: URI.revive(result.resource), results: result.results }); } else { searchOp.addMatch({ resource: URI.revive(result) }); } });
jrieken
No branches or pull requests
Today it is:
It should be something like:
cc @weinand
The text was updated successfully, but these errors were encountered: