-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[browser] host improvements #123726
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
base: main
Are you sure you want to change the base?
[browser] host improvements #123726
Changes from all commits
bd9700f
657eb98
c28568a
a2de51a
3e2a287
6ee3b41
67dcece
a8e14b7
83f4958
180585c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -92,7 +92,8 @@ public void FullyQualifiedName() | |||||||||||||||||||||||||||||||
| // Browser will include the path (/), so strip it | ||||||||||||||||||||||||||||||||
| if (PlatformDetection.IsBrowser && loc.Length > 1) | ||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||
| loc = loc.Substring(1); | ||||||||||||||||||||||||||||||||
| const string browserVirtualAppBase = "/managed/"; // keep in sync other places that define browserVirtualAppBase | ||||||||||||||||||||||||||||||||
| loc = loc.Replace(browserVirtualAppBase, ""); | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
| loc = loc.Replace(browserVirtualAppBase, ""); | |
| if (loc.StartsWith(browserVirtualAppBase, StringComparison.Ordinal)) | |
| { | |
| int prefixLength = browserVirtualAppBase.Length; | |
| if (loc.Length > prefixLength && loc[prefixLength] == '/') | |
| { | |
| prefixLength++; | |
| } | |
| loc = loc[prefixLength..]; | |
| } | |
| else if (loc[0] == '/') | |
| { | |
| loc = loc[1..]; | |
| } |
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 think this would break runtime tests on nodeJS as they depend on the exit code resolution.
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.
Ok, this needs bit more work