Spelling (#44)
* spelling: collections Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: highlighting Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: silently Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: which Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --------- Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Родитель
2860516e2c
Коммит
6fe1b6fcf3
|
@ -9,7 +9,7 @@ export class Hi extends React.Component {
|
|||
render() {
|
||||
let children = this.props.children
|
||||
if (!children) return null
|
||||
if (typeof children !== 'string') return children // Gracefully (and sliently) fail if not a string.
|
||||
if (typeof children !== 'string') return children // Gracefully (and silently) fail if not a string.
|
||||
|
||||
let term = this.context
|
||||
if (!term || term.length <= 1) return children
|
||||
|
|
|
@ -169,7 +169,7 @@ function renderMessageWithEmbeddedLinks(result: Result, message: string) {
|
|||
if (isNaN(id as any)) return id // `id` is a URI string
|
||||
|
||||
// Else `id` is a number
|
||||
// TODO: search other location coolections
|
||||
// TODO: search other location collections
|
||||
// RelatedLocations is typically [{ id: 1, ...}, { id: 2, ...}]
|
||||
const physicalLocation = result.relatedLocations?.find(location => location.id === +id)?.physicalLocation
|
||||
return getRepoUri(physicalLocation?.artifactLocation?.uri, result.run, physicalLocation?.region)
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
&::before {
|
||||
content: "";
|
||||
width: 100%;
|
||||
height: 108px; // 108px is a 6-line snippet whcih is very common.
|
||||
height: 108px; // 108px is a 6-line snippet which is very common.
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
|
|
|
@ -35,7 +35,7 @@ import {tryOr} from './try'
|
|||
|
||||
const crst = contextRegion.snippet.text
|
||||
|
||||
// Search/Filter hilighting is active so bypass snippet highlighting and return plain text.
|
||||
// Search/Filter highlighting is active so bypass snippet highlighting and return plain text.
|
||||
if (term) return crst
|
||||
|
||||
// Carriage returns (\n) causing hljs colorization off-by-one errors, thus stripping them here.
|
||||
|
|
Загрузка…
Ссылка в новой задаче