Protected ReadonlyfileProtected ReadonlyfileThe optional third slash denotes an empty authority (file:///path); the match runs to the first
whitespace or character that commonly delimits a URL in prose.
Protected ReadonlyloggerProtected ReadonlyopenerProtectedisProtectedsplitSplits a trailing :line or :line:column suffix (as in file:///x.ts:10:5) off the matched
URL into a one-based editor position. The drive colon of file:///C:/x.ts is not affected, as
it is not followed by digits at the end of the string.
ProtectedtoProtectedtrim
Linkifies
file://URLs printed in the terminal and opens the referenced local file in the editor.A dedicated provider is needed because
UrlLinkProvideronly matcheshttp(s)andFileLinkProvider's path regex excludes:, so neither recognizes thefile:scheme.