-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Fix issue #2295 - Models with "@" in their name do not resolve as dependencies #3057
Conversation
component: TypeScriptWorker (tsWorker.ts) - Enable 'skipEncoding' flag on Uri.toString invokation on getScriptFileNames() method - Compare 'fileName' argument provided to _getModel() method both with Uri encoded and not
Thanks for the PR and your investigation! I don't fully understand the problem though, why does this fix the issue? |
Hi @hediet thanks for starting review I tackled issue #2295 integrating monaco editor in my app. As you could see from issue's comments the problem was related to @lstkz has figure out that using With this hint I've investigated on the part that resolve the import and finally I got a fix. Hope this clarify bit more |
That I understand, by I don't understand the underlying issue. I think the actual issue is that it is unclear how In this PR, I don't like the line |
Hi @hediet The reason is that I've added the condition with |
Would be awesome to get this merged... |
@bsorrentino Throwing my two cents in here because this seems to be blocked. I don't think the code clearly communicates why the two conditional checks are important, and your comment clarified the reasoning, but I get the sense that it would help to add that as a comment so that future readers of the code also understand why this was required. Perhaps that may give @hediet or @alexdima a bit more confidence to merge this. |
Hi @peterp the suggestion here is to renew the PR adding meaningful comments to the affected code ? |
cmon. why is this PR still blocked ? |
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.
After some exploration, I also don't have a better idea than the change suggested in this PR.
fix issue #2295
component:
TypeScriptWorker
(tsWorker.ts
)Uri.toString
invokation ongetScriptFileNames()
method_getModel()
method both with Uri encoded and not