linkComputer.ts ×10

Frontier kind: Code frontier

unlabeled · c_8ff0d90056f9

30 tests · 3556 LOC · 21 files · introduces 0 tests · 82 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges82 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
503 ranges3556 lines · 21 files · Browse complete extent
All tests (intent)
30 testsBrowse complete intent

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.

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.

Introduced files, introduced tests, and structurally relevant concept specializationeditorWebWorker.test|title=EditorWebWorker [Bug] Getting Message "Overlapping ranges are not allowed" and nothing happens with Inline-Chat|occurrence=1 · 0 introduced LOCeditorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker computeHumanReadableDiff 2|occurrence=1 · 0 introduced LOCeditorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker computeHumanReadableDiff 4|occurrence=1 · 0 introduced LOCeditorWebWorker.test|tit…editorWebWorker.ts ×1 · 1 introduced LOCeditorWebWorker.ts ×1editorWebWorker.test|title=EditorWebWorker computeHumanReadableDiff 3|occurrence=1 · 0 introduced LOCeditorWebWorker.test|tit…textModelSync.impl.ts ×1 · 3 introduced LOCtextModelSync.impl.ts ×1editorWebWorker.ts ×3 · 14 introduced LOCeditorWebWorker.ts ×3editorWebWorker.test|title=EditorWebWorker MoreMinimal, issue #15385 newline changes and other|occurrence=1 · 0 introduced LOCeditorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker MoreMinimal|occurrence=1 · 0 introduced LOCeditorWebWorker.test|tit…2|occurrence=1 · 0 introduced LOC2|occurrence=1editorWebWorker.ts ×2 · 23 introduced LOCeditorWebWorker.ts ×2editorWebWorker.ts ×1 · 2 introduced LOCeditorWebWorker.ts ×1editorWebWorker.ts ×1 · 4 introduced LOCeditorWebWorker.ts ×1editorWebWorker.ts ×11 · 67 introduced LOCeditorWebWorker.ts ×11editorWebWorker.ts ×1 · 3 introduced LOCeditorWebWorker.ts ×1editorWebWorker.ts ×8 · 29 introduced LOCeditorWebWorker.ts ×8textModelSync.impl.ts ×1 · 2 introduced LOCtextModelSync.impl.ts ×1textModelSync.impl.ts ×2 · 11 introduced LOCtextModelSync.impl.ts ×2textModelSync.impl.ts ×1 · 2 introduced LOCtextModelSync.impl.ts ×1textModelSync.impl.ts ×1 · 2 introduced LOCtextModelSync.impl.ts ×1editorWebWorker.ts ×3 · 20 introduced LOCeditorWebWorker.ts ×3editorWebWorker.test|title=EditorWebWorker ICommonModel#offsetAt|occurrence=1 · 0 introduced LOCeditorWebWorker.test|tit…textModelSync.impl.ts ×1 · 2 introduced LOCtextModelSync.impl.ts ×1editorWebWorker.test|title=EditorWebWorker ICommonModel#positionAt|occurrence=1 · 0 introduced LOCeditorWebWorker.test|tit…textModelSync.impl.ts ×1 · 13 introduced LOCtextModelSync.impl.ts ×1editorWebWorker.test|title=EditorWebWorker ICommonModel#getValueInRange, issue #17424|occurrence=1 · 0 introduced LOCeditorWebWorker.test|tit…prefixSumComputer.ts ×1 · 2 introduced LOCprefixSumComputer.ts ×1textModelSync.impl.ts ×1 · 8 introduced LOCtextModelSync.impl.ts ×1textModelSync.impl.ts ×1 · 2 introduced LOCtextModelSync.impl.ts ×1textModelSync.impl.ts ×1 · 4 introduced LOCtextModelSync.impl.ts ×1textModelSync.impl.ts ×4 · 13 introduced LOCtextModelSync.impl.ts ×4textModelSync.impl.ts ×1 · 4 introduced LOCtextModelSync.impl.ts ×1textModelSync.impl.ts ×1 · 2 introduced LOCtextModelSync.impl.ts ×1textModelSync.impl.ts ×7 · 22 introduced LOCtextModelSync.impl.ts ×7textModelSync.impl.ts ×3 · 41 introduced LOCtextModelSync.impl.ts ×3mirrorTextModel.ts ×1 · 10 introduced LOCmirrorTextModel.ts ×1textModelSync.impl.ts ×28 · 1416 introduced LOCtextModelSync.impl.ts ×2…linkComputer.ts ×3 · 5 introduced LOClinkComputer.ts ×3linkComputer.ts ×1 · 3 introduced LOClinkComputer.ts ×1linkComputer.ts ×1 · 2 introduced LOClinkComputer.ts ×1linkComputer.ts ×1 · 1 introduced LOClinkComputer.ts ×1linkComputer.ts ×1 · 1 introduced LOClinkComputer.ts ×1linkComputer.ts ×1 · 5 introduced LOClinkComputer.ts ×1linkComputer.ts ×1 · 4 introduced LOClinkComputer.ts ×1linkComputer.ts ×2 · 5 introduced LOClinkComputer.ts ×2linkComputer.ts ×3 · 3 introduced LOClinkComputer.ts ×3linkComputer.test|title=Editor Modes - Link Computer issue #121438: Link detection stops at《...》|occurrence=1, linkComputer.test|title=Editor Modes - Link Computer issue #121438: Link detection stops at【...】|occurrence=1, +2 · 0 introduced LOClinkComputer.test|title=…linkComputer.ts ×1 · 3 introduced LOClinkComputer.ts ×1linkComputer.test|title=Editor Modes - Link Computer issue #86358: URL wrong recognition pattern|occurrence=1, linkComputer.test|title=Editor Modes - Link Computer issue #225513: Cmd-Click doesn't work on JSDoc {@link URL%7CLinkText} format|occurrence=1 · 0 introduced LOClinkComputer.test|title=…linkComputer.ts ×1 · 3 introduced LOClinkComputer.ts ×1linkComputer.ts ×1 · 2 introduced LOClinkComputer.ts ×1linkComputer.ts ×1 · 2 introduced LOClinkComputer.ts ×1linkComputer.ts ×1 · 1 introduced LOClinkComputer.ts ×1linkComputer.ts ×3 · 7 introduced LOClinkComputer.ts ×3linkComputer.ts ×1 · 3 introduced LOClinkComputer.ts ×1linkComputer.ts ×1 · 2 introduced LOClinkComputer.ts ×1linkComputer.ts ×26 · 209 introduced LOClinkComputer.ts ×26linkComputer.ts ×1 · 3 introduced LOClinkComputer.ts ×1linkComputer.ts ×1 · 1 introduced LOClinkComputer.ts ×1characterClassifier.ts ×10 · 51 introduced LOCcharacterClassifier.ts ×…uri.test|title=URI URI#file, win-speciale|occurrence=1, charCode.test|title=CharCode has good values|occurrence=1, +2 · 0 introduced LOCuri.test|title=URI URI#f…utils.ts ×3 · 9 introduced LOCutils.ts ×3lifecycle.ts ×2 · 4 introduced LOClifecycle.ts ×2lifecycle.ts ×1 · 2 introduced LOClifecycle.ts ×1lifecycle.ts ×4 · 8 introduced LOClifecycle.ts ×4lifecycle.ts ×6 · 16 introduced LOClifecycle.ts ×6lifecycle.ts ×1 · 2 introduced LOClifecycle.ts ×1lifecycle.ts ×1 · 2 introduced LOClifecycle.ts ×1uint.ts ×2 · 43 introduced LOCuint.ts ×2lifecycle.ts ×1 · 3 introduced LOClifecycle.ts ×1map.ts ×97 · 3334 introduced LOCmap.ts ×97src/vs/base/common/arrays.ts · 949 LOCcommon/arrays.tssrc/vs/base/common/arraysFind.ts · 226 LOCcommon/arraysFind.tssrc/vs/base/common/assert.ts · 91 LOCcommon/assert.tssrc/vs/base/common/charCode.ts · 450 LOCcommon/charCode.tssrc/vs/base/common/collections.ts · 176 LOCcommon/collections.tssrc/vs/base/common/diff/diff.ts · 1315 LOCdiff/diff.tssrc/vs/base/common/errors.ts · 357 LOCcommon/errors.tssrc/vs/base/common/functional.ts · 32 LOCcommon/functional.tssrc/vs/base/common/iterator.ts · 194 LOCcommon/iterator.tssrc/vs/base/common/lifecycle.ts · 974 LOCcommon/lifecycle.tssrc/vs/base/common/map.ts · 1016 LOCcommon/map.tssrc/vs/base/common/marshallingIds.ts · 33 LOCcommon/marshallingIds.tssrc/vs/base/common/path.ts · 1589 LOCcommon/path.tssrc/vs/base/common/platform.ts · 281 LOCcommon/platform.tssrc/vs/base/common/process.ts · 76 LOCcommon/process.tssrc/vs/base/common/types.ts · 410 LOCcommon/types.tssrc/vs/base/common/uint.ts · 59 LOCcommon/uint.tssrc/vs/base/common/uri.ts · 754 LOCcommon/uri.tssrc/vs/base/test/common/utils.ts · 107 LOCcommon/utils.tssrc/vs/editor/common/core/characterClassifier.ts · 86 LOCcore/characterClassifier…src/vs/editor/common/core/position.ts · 184 LOCcore/position.tssrc/vs/editor/common/diff/externalLinesDiffComputer.ts · 98 LOCdiff/externalLinesDiffCo…src/vs/editor/common/diff/linesDiffComputers.ts · 16 LOCdiff/linesDiffComputers.…src/vs/editor/common/languages/linkComputer.ts · 351 LOClanguages/linkComputer.t…src/vs/editor/common/languages/supports/inplaceReplaceSupport.ts · 99 LOCsupports/inplaceReplaceS…src/vs/editor/common/model/mirrorTextModel.ts · 197 LOCmodel/mirrorTextModel.tssrc/vs/editor/common/model/prefixSumComputer.ts · 308 LOCmodel/prefixSumComputer.…src/vs/editor/common/services/editorBaseApi.ts · 44 LOCservices/editorBaseApi.t…src/vs/editor/common/services/editorWebWorker.ts · 567 LOCservices/editorWebWorker…src/vs/editor/common/services/textModelSync/textModelSync.impl.ts · 427 LOCtextModelSync/textModelS…src/vs/editor/common/standalone/standaloneEnums.ts · 1017 LOCstandalone/standaloneEnu…src/vs/nls.ts · 244 LOCvs/nls.tscharCode.test|title=CharCode has good values|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/charCode.test|title=CharCode has good values|occurrence=1charCode.test|title=Char…path.test|title=Paths (Node Implementation) path|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/path.test|title=Paths (Node Implementation) path|occurrence=1path.test|title=Paths (N…uri.test|title=URI File paths containing apostrophes break URI parsing and cannot be opened #276075|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI File paths containing apostrophes break URI parsing and cannot be opened #276075|occurrence=1uri.test|title=URI File …uri.test|title=URI URI#file, win-speciale|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI URI#file, win-speciale|occurrence=1uri.test|title=URI URI#f…linkComputer.test|title=Editor Modes - Link Computer Null model|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer Null model|occurrence=1linkComputer.test|title=…linkComputer.test|title=Editor Modes - Link Computer Parsing|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer Parsing|occurrence=1linkComputer.test|title=…linkComputer.test|title=Editor Modes - Link Computer issue #100353: Link detection stops at &(double-byte)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer issue #100353: Link detection stops at &(double-byte)|occurrence=1linkComputer.test|title=…linkComputer.test|title=Editor Modes - Link Computer issue #121438: Link detection stops at “...”|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer issue #121438: Link detection stops at “...”|occurrence=1linkComputer.test|title=…linkComputer.test|title=Editor Modes - Link Computer issue #121438: Link detection stops at《...》|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer issue #121438: Link detection stops at《...》|occurrence=1linkComputer.test|title=…linkComputer.test|title=Editor Modes - Link Computer issue #121438: Link detection stops at【...】|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer issue #121438: Link detection stops at【...】|occurrence=1linkComputer.test|title=…linkComputer.test|title=Editor Modes - Link Computer issue #150905: Colon after bare hyperlink is treated as its part|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer issue #150905: Colon after bare hyperlink is treated as its part|occurrence=1linkComputer.test|title=…linkComputer.test|title=Editor Modes - Link Computer issue #156875: Links include quotes|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer issue #156875: Links include quotes|occurrence=1linkComputer.test|title=…linkComputer.test|title=Editor Modes - Link Computer issue #225513: Cmd-Click doesn't work on JSDoc {@link URL%7CLinkText} format|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer issue #225513: Cmd-Click doesn't work on JSDoc {@link URL%7CLinkText} format|occurrence=1linkComputer.test|title=…linkComputer.test|title=Editor Modes - Link Computer issue #62278: "Ctrl + click to follow link" for IPv6 URLs|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer issue #62278: "Ctrl + click to follow link" for IPv6 URLs|occurrence=1linkComputer.test|title=…linkComputer.test|title=Editor Modes - Link Computer issue #67022: Space as end of hyperlink isn't always good idea|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer issue #67022: Space as end of hyperlink isn't always good idea|occurrence=1linkComputer.test|title=…linkComputer.test|title=Editor Modes - Link Computer issue #70254: bold links dont open in markdown file using editor mode with ctrl + click|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer issue #70254: bold links dont open in markdown file using editor mode with ctrl + click|occurrence=1linkComputer.test|title=…linkComputer.test|title=Editor Modes - Link Computer issue #7855|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer issue #7855|occurrence=1linkComputer.test|title=…linkComputer.test|title=Editor Modes - Link Computer issue #86358: URL wrong recognition pattern|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/linkComputer.test|title=Editor Modes - Link Computer issue #86358: URL wrong recognition pattern|occurrence=1linkComputer.test|title=…editorWebWorker.test|title=EditorWebWorker ICommonModel#getValueInRange, issue #17424|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker ICommonModel#getValueInRange, issue #17424|occurrence=1editorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker ICommonModel#offsetAt|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker ICommonModel#offsetAt|occurrence=1editorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker ICommonModel#positionAt|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker ICommonModel#positionAt|occurrence=1editorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker ICommonModel#validatePosition, issue #15882|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker ICommonModel#validatePosition, issue #15882|occurrence=1editorWebWorker.test|tit…2|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker MoreMinimal, issue #15385 newline changes and other 2/2|occurrence=12|occurrence=1editorWebWorker.test|title=EditorWebWorker MoreMinimal, issue #15385 newline changes and other|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker MoreMinimal, issue #15385 newline changes and other|occurrence=1editorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker MoreMinimal, issue #15385 newline changes only|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker MoreMinimal, issue #15385 newline changes only|occurrence=1editorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker MoreMinimal, merge adjacent edits|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker MoreMinimal, merge adjacent edits|occurrence=1editorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker MoreMinimal|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker MoreMinimal|occurrence=1editorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker [Bug] Getting Message "Overlapping ranges are not allowed" and nothing happens with Inline-Chat|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker [Bug] Getting Message "Overlapping ranges are not allowed" and nothing happens with Inline-Chat|occurrence=1editorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker computeHumanReadableDiff 1|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker computeHumanReadableDiff 1|occurrence=1editorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker computeHumanReadableDiff 2|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker computeHumanReadableDiff 2|occurrence=1editorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker computeHumanReadableDiff 3|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker computeHumanReadableDiff 3|occurrence=1editorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker computeHumanReadableDiff 4|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker computeHumanReadableDiff 4|occurrence=1editorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker get words via iterator, issue #46930|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker get words via iterator, issue #46930|occurrence=1editorWebWorker.test|tit…editorWebWorker.test|title=EditorWebWorker textualSuggest, issue #17785|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/editorWebWorker.test|title=EditorWebWorker textualSuggest, issue #17785|occurrence=1editorWebWorker.test|tit…Focused concept · linkComputer.ts ×10 · 82 introduced LOClinkComputer.ts ×10

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

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: 82 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/editor/common/languages/linkComputer.ts 82 introduced LOC · 10 ranges

Open complete file

1 > /*--------------------------------------------------------------------------------------------- linkComputer.ts
2 > * Copyright (c) Microsoft Corporation. All rights reserved.
3 > * Licensed under the MIT License. See License.txt in the project root for license information.
4 > *--------------------------------------------------------------------------------------------*/
5 >
6 > import { CharCode } from '../../../base/common/charCode.js';
7 > import { CharacterClassifier } from '../core/characterClassifier.js';
8 > import { ILink } from '../languages.js';
9 >
10 > export interface ILinkComputerTarget {
11 > getLineCount(): number;
12 > getLineContent(lineNumber: number): string;
13 > }
14 >
15 > export const enum State {
16 > Invalid = 0,
17 > Start = 1,
18 > H = 2,
19 > HT = 3,
20 > HTT = 4,
21 > HTTP = 5,
22 > F = 6,
23 > FI = 7,
24 > FIL = 8,
25 > BeforeColon = 9,
26 > AfterColon = 10,
27 > AlmostThere = 11,
28 > End = 12,
29 > Accept = 13,
30 > LastKnownState = 14 // marker, custom states may follow
31 > }
32 >
33 > export type Edge = [State, number, State];
34 >
35 > class Uint8Matrix {
36 >
37 > private readonly _data: Uint8Array;
38 > public readonly rows: number;
39 > public readonly cols: number;
40 >
41 > constructor(rows: number, cols: number, defaultValue: number) {
42 const data = new Uint8Array(rows * cols);
43 for (let i = 0, len = rows * cols; i < len; i++) {
49 this.cols = cols;
50 }
52 > public get(row: number, col: number): number {
53 return this._data[row * this.cols + col];
54 }
56 > public set(row: number, col: number, value: number): void {
57 this._data[row * this.cols + col] = value;
58 }
60 >
61 > export class StateMachine {
62 >
63 > private readonly _states: Uint8Matrix;
64 > private readonly _maxCharCode: number;
65 >
66 > constructor(edges: Edge[]) {
67 let maxCharCode = 0;
68 let maxState = State.Invalid;
92 this._maxCharCode = maxCharCode;
93 }
95 > public nextState(currentState: State, chCode: number): State {
96 if (chCode < 0 || chCode >= this._maxCharCode) {
97 return State.Invalid;
99 return this._states.get(currentState, chCode);
100 }
101 > } linkComputer.ts
102 >
103 > // State machine for http:// or https:// or file://
104 > let _stateMachine: StateMachine | null = null;
105 function getStateMachine(): StateMachine {
106 if (_stateMachine === null) {
142 return _stateMachine;
143 }
145 >
146 > const enum CharacterClass {
147 > None = 0,
148 > ForceTermination = 1,
149 > CannotEndIn = 2
150 > }
151 >
152 > let _classifier: CharacterClassifier<CharacterClass> | null = null;
153 function getClassifier(): CharacterClassifier<CharacterClass> {
154 if (_classifier === null) {
168 return _classifier;
169 }
171 > export class LinkComputer {
172 >
173 > private static _createLink(classifier: CharacterClassifier<CharacterClass>, line: string, lineNumber: number, linkBeginIndex: number, linkEndIndex: number): ILink {
174 // Do not allow to end link in certain characters...
175 let lastIncludedCharIndex = linkEndIndex - 1;
210 };
211 }
213 > public static computeLinks(model: ILinkComputerTarget, stateMachine: StateMachine = getStateMachine()): ILink[] {
214 const classifier = getClassifier();
215
336 return result;
337 }
338 > } linkComputer.ts
339 >
340 > /**
341 > * Returns an array of all links contains in the provided
342 > * document. *Note* that this operation is computational
343 > * expensive and should not run in the UI thread.
344 > */
345 > export function computeLinks(model: ILinkComputerTarget | null): ILink[] {
346 if (!model || typeof model.getLineCount !== 'function' || typeof model.getLineContent !== 'function') {
347 // Unknown caller!