encoding.ts ×1
Frontier kind: Code frontier
unlabeled · c_6e7a9a7b87c3
102 tests · 6336 LOC · 32 files · introduces 0 tests · 2 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
1 range 2 lines · 1 files
Tests
0 tests
Contains — complete concept membership
Neighbourhood graph
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
encoding.ts ×1 — Focused concept
Introduced files:
extHostMcp.test|title=ExtHostMcp IAuthMetadata properties should expose readonly properties|occurrence=1, extHostMcp.test|title=ExtHostMcp createAuthMetadata should create IAuthMetadata with fetched server metadata|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should handle multiple Bearer challenges and use first scope|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should return false when scopes are the same|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should return true and update scopes when WWW-Authenticate header contains new scopes|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should return false when scopes are same but in different order|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should return true when updating from defined scopes to undefined (no scope in header)|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp createAuthMetadata should handle non-401 status codes in update()|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should ignore non-Bearer schemes|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should return true when updating from undefined scopes to defined scopes|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
extHostMcp.ts ×2 — Ancestor (broader)
Introduced files:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
extHostMcp.test|title=ExtHostMcp createAuthMetadata should fall back to default metadata when server metadata fetch fails|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.ts ×4 — Ancestor (broader)
Introduced files:
extHostMcp.test|title=ExtHostMcp createAuthMetadata should use scopes from WWW-Authenticate header when resource metadata has none|occurrence=1, extHostMcp.test|title=ExtHostMcp createAuthMetadata should use scopes from WWW-Authenticate header even when resource metadata has scopes_supported|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostMcp.ts ×4 — Ancestor (broader)
Introduced files:
extHostMcpNode.ts ×8 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostMcp.test|title=ExtHostMcp createAuthMetadata should pass launch headers when fetching metadata from same origin|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.ts ×5 — Ancestor (broader)
Introduced files:
extHostMcp.test|title=ExtHostMcp createAuthMetadata should handle invalid JSON in resource metadata response|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.ts ×3 — Ancestor (broader)
Introduced files:
glob.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
extHostMcp.ts ×8 — Ancestor (broader)
Introduced files:
extHostSearch.test|title=ExtHostSearch File: multiroot sibling exclude clause|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.ts ×43 — Ancestor (broader)
Introduced files:
extHostSearch.test|title=ExtHostSearch Text: basic sibling clause|occurrence=1 — Ancestor (broader)
Introduced tests:
search.ts ×3 — Ancestor (broader)
Introduced files:
extHostSearch.test|title=ExtHostSearch File: include, sibling exclude, and subfolder|occurrence=1 — Ancestor (broader)
Introduced tests:
fileSearchManager.ts ×2 — Ancestor (broader)
Introduced files:
extHostSearch.test|title=ExtHostSearch File: basic sibling exclude clause|occurrence=1 — Ancestor (broader)
Introduced tests:
search.ts ×3 — Ancestor (broader)
Introduced files:
fileSearchManager.ts ×9 — Ancestor (broader)
Introduced files:
search.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extensionHostMain.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
reset prepareStackTrace-callback|occurrence=1, extensionHostMain.test|title=ExtensionHostMain#ErrorHandler - Wrapping prepareStackTrace can cause slowdown and eventual stack overflow #184926 prevent rewrapping|occurrence=1 — Ancestor (broader)
Introduced tests:
extensionHostMain.ts ×5 — Ancestor (broader)
Introduced files:
Introduced tests:
f0f2e182082072efdaf0f8e1537d2cce Restored, too many uses before restoration|occurrence=1 — Ancestor (broader)
Introduced tests:
extensionHostMain.ts ×1 — Ancestor (broader)
Introduced files:
extensionHostMain.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extensionHostMain.ts ×11 — Ancestor (broader)
Introduced files:
textSearchManager.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostSearch.test|title=ExtHostSearch Text: max results = 2|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostSearch.test|title=ExtHostSearch Text: max results = 1|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostSearch.test|title=ExtHostSearch Text: provider returns maxResults exactly|occurrence=1 — Ancestor (broader)
Introduced tests:
textSearchManager.ts ×2 — Ancestor (broader)
Introduced files:
extHostSearch.test|title=ExtHostSearch Text: basic results|occurrence=1, extHostSearch.test|title=ExtHostSearch Text: provider returns early with limitHit|occurrence=1 — Ancestor (broader)
Introduced tests:
excludes combined|occurrence=1 — Ancestor (broader)
Introduced tests:
textSearchManager.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostSearch.test|title=ExtHostSearch File: multiroot max results|occurrence=1 — Ancestor (broader)
Introduced tests:
textSearchManager.ts ×1 — Ancestor (broader)
Introduced files:
search.ts ×1 — Ancestor (broader)
Introduced files:
search.ts ×1 — Ancestor (broader)
Introduced files:
excludes resolved correctly|occurrence=1 — Ancestor (broader)
Introduced tests:
fileSearchManager.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
searchExtConversionTypes.ts ×10 — Ancestor (broader)
Introduced files:
extHostSearch.test|title=ExtHostSearch File: provider returns maxResults exactly|occurrence=1 — Ancestor (broader)
Introduced tests:
fileSearchManager.ts ×1 — Ancestor (broader)
Introduced files:
excludes combined|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostSearch.test|title=ExtHostSearch File: simple results|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostSearch.test|title=ExtHostSearch File: works with non-file schemes|occurrence=1 — Ancestor (broader)
Introduced tests:
fileSearchManager.ts ×1 — Ancestor (broader)
Introduced files:
fileSearchManager.ts ×10 — Ancestor (broader)
Introduced files:
excludes|occurrence=1 — Ancestor (broader)
Introduced tests:
excludes|occurrence=1 — Ancestor (broader)
Introduced tests:
excludes resolved correctly|occurrence=1 — Ancestor (broader)
Introduced tests:
textSearchManager.ts ×1 — Ancestor (broader)
Introduced files:
fileSearchManager.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
search.ts ×2 — Ancestor (broader)
Introduced files:
fileSearchManager.ts ×4 — Ancestor (broader)
Introduced files:
Introduced tests:
fileSearchManager.ts ×1 — Ancestor (broader)
Introduced files:
search.ts ×2 — Ancestor (broader)
Introduced files:
search.ts ×1 — Ancestor (broader)
Introduced files:
extHostExtensionService.ts ×64 — Ancestor (broader)
Introduced files:
extHostSearch.test|title=ExtHostSearch File: no results|occurrence=1, extHostSearch.test|title=ExtHostSearch File: provider returns null|occurrence=1 — Ancestor (broader)
Introduced tests:
fileSearchManager.ts ×3 — Ancestor (broader)
Introduced files:
search.ts ×2 — Ancestor (broader)
Introduced files:
extHostSearch.test|title=ExtHostSearch Text: no results|occurrence=1 — Ancestor (broader)
Introduced tests:
fileSearchManager.ts ×1 — Ancestor (broader)
Introduced files:
search.ts ×1 — Ancestor (broader)
Introduced files:
fileSearchManager.ts ×5 — Ancestor (broader)
Introduced files:
searchExtConversionTypes.ts ×2 — Ancestor (broader)
Introduced files:
textSearchManager.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
search.ts ×1 — Ancestor (broader)
Introduced files:
search.ts ×1 — Ancestor (broader)
Introduced files:
searchExtConversionTypes.ts ×6 — Ancestor (broader)
Introduced files:
extHostSearch.ts ×1 — Ancestor (broader)
Introduced files:
extHostSearch.test|title=ExtHostSearch File: if onlyFileScheme is set, do not call custom schemes|occurrence=1 — Ancestor (broader)
Introduced tests:
fileSearchManager.ts ×5 — Ancestor (broader)
Introduced files:
fileSearchManager.ts ×1 — Ancestor (broader)
Introduced files:
fileSearchManager.ts ×20 — Ancestor (broader)
Introduced files:
extHostTunnelService.ts ×3 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostTunnelService.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostTunnelService.ts ×4 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostTunnelService.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostTunnelService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostTunnelService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
fileSearch.ts ×31 — Ancestor (broader)
Introduced files:
remoteAgentConnection.ts ×53 — Ancestor (broader)
Introduced files:
extHostTunnelService.ts ×17 — Ancestor (broader)
Introduced files:
extHostWorkspace.ts ×67 — Ancestor (broader)
Introduced files:
folderQuerySearchTree.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
search.ts ×3 — Ancestor (broader)
Introduced files:
search.ts ×1 — Ancestor (broader)
Introduced files:
textSearchManager.ts ×25 — Ancestor (broader)
Introduced files:
encoding.ts ×12 — Ancestor (broader)
Introduced files:
Introduced tests:
textSearchManager.ts ×2 — Ancestor (broader)
Introduced files:
textSearchManager.ts ×12 — Ancestor (broader)
Introduced files:
textSearchManager.ts ×1 — Ancestor (broader)
Introduced files:
textSearchManager.ts ×16 — Ancestor (broader)
Introduced files:
search.ts ×1 — Ancestor (broader)
Introduced files:
search.ts ×9 — Ancestor (broader)
Introduced files:
textSearchManager.ts ×23 — Ancestor (broader)
Introduced files:
encoding.test|title=Encoding toDecodeStream - some stream (UTF-8 issue #102202)|occurrence=1 — Ancestor (broader)
Introduced tests:
encoding.test|title=Encoding toDecodeStream - some stream (GBK issue #101856)|occurrence=1 — Ancestor (broader)
Introduced tests:
encoding.test|title=Encoding toDecodeStream - encoding, utf16be|occurrence=1 — Ancestor (broader)
Introduced tests:
encoding.ts ×3 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.ts ×3 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.ts ×6 — Ancestor (broader)
Introduced files:
encoding.test|title=Encoding toEncodeReadable - empty readable to utf8 with BOM|occurrence=1 — Ancestor (broader)
Introduced tests:
encoding.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.ts ×1 — Ancestor (broader)
Introduced files:
encoding.ts ×5 — Ancestor (broader)
Introduced files:
encoding.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.ts ×4 — Ancestor (broader)
Introduced files:
encoding.test|title=Encoding encodingExists|occurrence=1 — Ancestor (broader)
Introduced tests:
amdX.ts ×1 — Ancestor (broader)
Introduced files:
encoding.test|title=Encoding detectEncodingFromBuffer (PDF)|occurrence=1, encoding.test|title=Encoding detectEncodingFromBuffer (PNG saved as TXT)|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
encoding.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.test|title=Encoding detectEncodingFromBuffer (CSS saved as QWOFF)|occurrence=1 — Ancestor (broader)
Introduced tests:
encoding.test|title=Encoding detectEncodingFromBuffer (XML saved as PNG)|occurrence=1, encoding.test|title=Encoding detectEncodingFromBuffer (JSON saved as PNG)|occurrence=1 — Ancestor (broader)
Introduced tests:
encoding.test|title=Encoding detectBOM ANSI|occurrence=1 — Ancestor (broader)
Introduced tests:
encoding.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
encoding.test|title=Encoding detectBOM UTF-16 BE|occurrence=1 — Ancestor (broader)
Introduced tests:
encoding.ts ×1 — Ancestor (broader)
Introduced files:
encoding.test|title=Encoding detectBOM ANSI (2)|occurrence=1 — Ancestor (broader)
Introduced tests:
encoding.test|title=Encoding detectBOM does not return error for non existing file|occurrence=1 — Ancestor (broader)
Introduced tests:
encoding.ts ×19 — Descendant (narrower)
Introduced files:
amdX.ts ×8 — Descendant (narrower)
Introduced files:
network.ts ×20 — Descendant (narrower)
Introduced files:
strings.ts ×101 — Descendant (narrower)
Introduced files:
cancellation.ts ×18 — Descendant (narrower)
Introduced files:
event.ts ×93 — Descendant (narrower)
Introduced files:
buffer.ts ×42 — Descendant (narrower)
Introduced files:
uri.ts ×2 — Descendant (narrower)
Introduced files:
uri.ts ×3 — Descendant (narrower)
Introduced files:
uri.ts ×2 — Descendant (narrower)
Introduced files:
utils.ts ×3 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×9 — Descendant (narrower)
Introduced files:
linkedList.ts ×13 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×4 — Descendant (narrower)
Introduced files:
lifecycle.ts ×6 — Descendant (narrower)
Introduced files:
lazy.ts ×1 — Descendant (narrower)
Introduced files:
lazy.ts ×3 — Descendant (narrower)
Introduced files:
uuid.ts ×3 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
uint.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
map.ts ×97 — Descendant (narrower)
Introduced files:
Introduced tests
Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Introduced code
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 2 introduced LOC across 1 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/workbench/services/textfile/common/encoding.ts 2 introduced LOC · 1 range
Open complete file
83
let decoder : IDecoderStream | undefined = undefined ;
84
if ( encoding !== UTF8 ) {
85
>
const iconv = await importAMDNodeModule < typeof import ( '@vscode/iconv-lite-umd' ) >( '@vscode/iconv-lite-umd' , 'lib/iconv-lite-umd.js' );
encoding.ts
86
>
decoder = iconv . getDecoder ( toNodeEncoding ( encoding ));
87
} else {
88
const utf8TextDecoder = new TextDecoder ();