chrome-devtools-frontend 1.0.972361 → 1.0.973446

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/config/gni/devtools_grd_files.gni +2 -1
  2. package/front_end/core/i18n/locales/en-US.json +24 -0
  3. package/front_end/core/i18n/locales/en-XL.json +24 -0
  4. package/front_end/core/sdk/NetworkManager.ts +15 -7
  5. package/front_end/core/sdk/NetworkRequest.ts +16 -14
  6. package/front_end/core/sdk/ResourceTreeModel.ts +8 -10
  7. package/front_end/core/sdk/SourceMap.ts +9 -9
  8. package/front_end/entrypoints/lighthouse_worker/{LighthouseService.ts → LighthouseWorkerService.ts} +69 -36
  9. package/front_end/entrypoints/lighthouse_worker/lighthouse_worker.ts +1 -1
  10. package/front_end/models/bindings/SASSSourceMapping.ts +4 -3
  11. package/front_end/models/har/HARFormat.ts +4 -2
  12. package/front_end/models/har/Importer.ts +0 -1
  13. package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +4 -4
  14. package/front_end/models/persistence/IsolatedFileSystem.ts +0 -1
  15. package/front_end/models/text_utils/StaticContentProvider.ts +5 -4
  16. package/front_end/panels/application/ServiceWorkerCacheViews.ts +2 -1
  17. package/front_end/panels/elements/components/LayoutPane.ts +1 -1
  18. package/front_end/panels/lighthouse/LighthouseController.ts +13 -2
  19. package/front_end/panels/lighthouse/LighthousePanel.ts +57 -8
  20. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +94 -30
  21. package/front_end/panels/lighthouse/LighthouseStartView.ts +6 -2
  22. package/front_end/panels/lighthouse/LighthouseStartViewFR.ts +61 -0
  23. package/front_end/panels/lighthouse/LighthouseTimespanView.ts +99 -0
  24. package/front_end/panels/sources/NavigatorView.ts +1 -3
  25. package/front_end/third_party/codemirror.next/bundle.ts +1 -1
  26. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  27. package/front_end/third_party/codemirror.next/chunk/json.js +2 -1
  28. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +28 -2
  29. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  30. package/front_end/third_party/codemirror.next/package.json +10 -10
  31. package/front_end/ui/components/expandable_list/expandableList.css +1 -1
  32. package/front_end/ui/components/text_editor/config.ts +1 -0
  33. package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +7 -4
  34. package/package.json +1 -1
@@ -1 +1,2 @@
1
- import{L as O,N as e,a as r,i as a,c as t,b as s,d as P,s as Q,t as n,e as o}from"./codemirror.js";const i=O.deserialize({version:13,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[[e.openedBy,7,"{",12,"["],[e.closedBy,8,"}",13,"]"]],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),c=()=>O=>{try{JSON.parse(O.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const r=function(O,e){let r;return(r=O.message.match(/at position (\d+)/))?Math.min(+r[1],e.length):(r=O.message.match(/at line (\d+) column (\d+)/))?Math.min(e.line(+r[1]).from+ +r[2]-1,e.length):0}(e,O.state.doc);return[{from:r,message:e.message,severity:"error",to:r}]}return[]};const p=r.define({parser:i.configure({props:[a.add({Object:t({except:/^\s*\}/}),Array:t({except:/^\s*\]/})}),s.add({"Object Array":P}),Q({String:n.string,Number:n.number,"True False":n.bool,PropertyName:n.propertyName,null:n.null,",":n.separator,"[ ]":n.squareBracket,"{ }":n.brace})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function g(){return new o(p)}export{g as json,p as jsonLanguage,c as jsonParseLinter};
1
+ import{a as r,b as s,c as t,d as P,e as n,i as a,L as O,N as e,s as Q,t as o}from"./codemirror.js";
2
+ const i=O.deserialize({version:13,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[[e.openedBy,7,"{",12,"["],[e.closedBy,8,"}",13,"]"]],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),c=()=>O=>{try{JSON.parse(O.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const r=function(O,e){let r;return(r=O.message.match(/at position (\d+)/))?Math.min(+r[1],e.length):(r=O.message.match(/at line (\d+) column (\d+)/))?Math.min(e.line(+r[1]).from+ +r[2]-1,e.length):0}(e,O.state.doc);return[{from:r,message:e.message,severity:"error",to:r}]}return[]};const p=r.define({parser:i.configure({props:[a.add({Object:t({except:/^\s*\}/}),Array:t({except:/^\s*\]/})}),s.add({"Object Array":P}),Q({String:o.string,Number:o.number,"True False":o.bool,PropertyName:o.propertyName,Null:o.null,",":o.separator,"[ ]":o.squareBracket,"{ }":o.brace})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function g(){return new n(p)}export{g as json,p as jsonLanguage,c as jsonParseLinter};
@@ -573,7 +573,9 @@ declare class ChangeSet extends ChangeDesc {
573
573
  map(other: ChangeDesc, before?: boolean): ChangeSet;
574
574
  /**
575
575
  Iterate over the changed ranges in the document, calling `f` for
576
- each.
576
+ each, with the range in the original document (`fromA`-`toA`)
577
+ and the range that replaces it in the new document
578
+ (`fromB`-`toB`).
577
579
 
578
580
  When `individual` is true, adjacent changes are reported
579
581
  separately.
@@ -5639,6 +5641,30 @@ constructor is no longer provided.) Values of `null` are ignored.
5639
5641
  */
5640
5642
  declare const showPanel: Facet<PanelConstructor | null, readonly (PanelConstructor | null)[]>;
5641
5643
 
5644
+ declare type HighlightOptions = {
5645
+ /**
5646
+ Determines whether, when nothing is selected, the word around
5647
+ the cursor is matched instead. Defaults to false.
5648
+ */
5649
+ highlightWordAroundCursor?: boolean;
5650
+ /**
5651
+ The minimum length of the selection before it is highlighted.
5652
+ Defaults to 1 (always highlight non-cursor selections).
5653
+ */
5654
+ minSelectionLength?: number;
5655
+ /**
5656
+ The amount of matches (in the viewport) at which to disable
5657
+ highlighting. Defaults to 100.
5658
+ */
5659
+ maxMatches?: number;
5660
+ };
5661
+ /**
5662
+ This extension highlights text that matches the selection. It uses
5663
+ the `"cm-selectionMatch"` class for the highlighting. When
5664
+ `highlightWordAroundCursor` is enabled, the word at the cursor
5665
+ itself will be highlighted with `"cm-selectionMatch-main"`.
5666
+ */
5667
+ declare function highlightSelectionMatches(options?: HighlightOptions): Extension;
5642
5668
  /**
5643
5669
  Select next occurrence of the current selection.
5644
5670
  Expand selection to the word when selection range is empty.
@@ -5786,4 +5812,4 @@ declare function shell(): Promise<StreamLanguage<unknown>>;
5786
5812
  declare function wast(): Promise<typeof _codemirror_lang_wast>;
5787
5813
  declare function xml(): Promise<typeof _codemirror_lang_xml>;
5788
5814
 
5789
- export { Annotation, AnnotationType, ChangeDesc, ChangeSet, ChangeSpec, Command, Compartment, Completion, CompletionContext, CompletionResult, CompletionSource, Decoration, DecorationSet, EditorSelection, EditorState, EditorStateConfig, EditorView, Extension, Facet, GutterMarker, HighlightStyle, KeyBinding, LRParser, Language, LanguageSupport, Line$1 as Line, MapMode, MatchDecorator, NodeProp, NodeSet, NodeType, Panel, Parser, Prec, Range, RangeSet, RangeSetBuilder, SelectionRange, StateEffect, StateEffectType, StateField, StreamLanguage, StreamParser, StringStream, StyleModule, SyntaxNode, Tag, TagStyle, Text, TextIterator, Tooltip, TooltipView, Transaction, TransactionSpec, Tree, TreeCursor, ViewPlugin, ViewUpdate, WidgetType, acceptCompletion, autocompletion, bracketMatching, clojure, closeBrackets, closeBracketsKeymap, closeCompletion, codeFolding, coffeescript, completeAnyWord, cpp, index_d$2 as css, currentCompletions, cursorMatchingBracket, cursorSubwordBackward, cursorSubwordForward, drawSelection, ensureSyntaxTree, foldGutter, foldKeymap, gutter, gutters, highlightSpecialChars, highlightTree, history, historyKeymap, index_d$1 as html, ifNotIn, indentLess, indentMore, indentOnInput, indentUnit, insertNewlineAndIndent, java, index_d as javascript, json, keymap, lineNumberMarkers, lineNumbers, markdown, php, placeholder, python, redo, redoSelection, repositionTooltips, scrollPastEnd, selectMatchingBracket, selectNextOccurrence, selectSubwordBackward, selectSubwordForward, selectedCompletion, shell, showPanel, showTooltip, standardKeymap, startCompletion, syntaxTree, tags, toggleComment, tooltips, undo, undoSelection, wast, xml };
5815
+ export { Annotation, AnnotationType, ChangeDesc, ChangeSet, ChangeSpec, Command, Compartment, Completion, CompletionContext, CompletionResult, CompletionSource, Decoration, DecorationSet, EditorSelection, EditorState, EditorStateConfig, EditorView, Extension, Facet, GutterMarker, HighlightStyle, KeyBinding, LRParser, Language, LanguageSupport, Line$1 as Line, MapMode, MatchDecorator, NodeProp, NodeSet, NodeType, Panel, Parser, Prec, Range, RangeSet, RangeSetBuilder, SelectionRange, StateEffect, StateEffectType, StateField, StreamLanguage, StreamParser, StringStream, StyleModule, SyntaxNode, Tag, TagStyle, Text, TextIterator, Tooltip, TooltipView, Transaction, TransactionSpec, Tree, TreeCursor, ViewPlugin, ViewUpdate, WidgetType, acceptCompletion, autocompletion, bracketMatching, clojure, closeBrackets, closeBracketsKeymap, closeCompletion, codeFolding, coffeescript, completeAnyWord, cpp, index_d$2 as css, currentCompletions, cursorMatchingBracket, cursorSubwordBackward, cursorSubwordForward, drawSelection, ensureSyntaxTree, foldGutter, foldKeymap, gutter, gutters, highlightSelectionMatches, highlightSpecialChars, highlightTree, history, historyKeymap, index_d$1 as html, ifNotIn, indentLess, indentMore, indentOnInput, indentUnit, insertNewlineAndIndent, java, index_d as javascript, json, keymap, lineNumberMarkers, lineNumbers, markdown, php, placeholder, python, redo, redoSelection, repositionTooltips, scrollPastEnd, selectMatchingBracket, selectNextOccurrence, selectSubwordBackward, selectSubwordForward, selectedCompletion, shell, showPanel, showTooltip, standardKeymap, startCompletion, syntaxTree, tags, toggleComment, tooltips, undo, undoSelection, wast, xml };
@@ -1,2 +1,2 @@
1
- export{$ as cursorSubwordForward,_ as cursorSubwordBackward,A as java,a$ as scrollPastEnd,a0 as indentLess,a1 as indentMore,a2 as insertNewlineAndIndent,a3 as selectMatchingBracket,a4 as selectSubwordBackward,a5 as selectSubwordForward,a6 as standardKeymap,a7 as toggleComment,a8 as codeFolding,a9 as foldGutter,a_ as placeholder,aa as foldKeymap,aA as selectNextOccurrence,aB as Annotation,ab as gutter,aC as AnnotationType,ac as GutterMarker,aD as ChangeDesc,ad as gutters,aE as ChangeSet,ae as lineNumberMarkers,aF as Compartment,af as lineNumbers,aG as EditorState,ag as HighlightStyle,aH as Facet,ah as highlightTree,aI as MapMode,ai as Tag,aJ as SelectionRange,aj as history,aK as StateEffect,ak as historyKeymap,aL as StateEffectType,al as redo,aM as StateField,am as redoSelection,aN as Transaction,an as undo,aO as StreamLanguage,ao as undoSelection,aP as StringStream,ap as css,aQ as Line,aq as html,aR as Text,ar as javascript,as as ensureSyntaxTree,aS as repositionTooltips,at as indentOnInput,aT as showTooltip,au as indentUnit,aU as tooltips,aV as Decoration,av as bracketMatching,aW as drawSelection,aw as showPanel,aX as EditorView,ax as Range,ay as RangeSet,aY as highlightSpecialChars,aZ as MatchDecorator,az as RangeSetBuilder,B as json,b0 as ViewPlugin,b1 as ViewUpdate,b2 as WidgetType,b3 as TreeCursor,b4 as StyleModule,D as markdown,e as LanguageSupport,F as php,g as NodeType,G as python,h as NodeSet,H as shell,I as wast,j as Language,J as xml,K as acceptCompletion,k as syntaxTree,L as LRParser,m as EditorSelection,M as autocompletion,N as NodeProp,n as Prec,O as closeCompletion,o as keymap,P as Parser,Q as completeAnyWord,R as CompletionContext,S as currentCompletions,T as Tree,t as tags,U as ifNotIn,V as selectedCompletion,W as startCompletion,x as clojure,X as closeBrackets,Y as closeBracketsKeymap,y as coffeescript,z as cpp,Z as cursorMatchingBracket}from"./chunk/codemirror.js";
1
+ export{$ as cursorSubwordForward,_ as cursorSubwordBackward,A as java,a$ as placeholder,a0 as indentLess,a1 as indentMore,a2 as insertNewlineAndIndent,a3 as selectMatchingBracket,a4 as selectSubwordBackward,a5 as selectSubwordForward,a6 as standardKeymap,a7 as toggleComment,a8 as codeFolding,a9 as foldGutter,a_ as MatchDecorator,aa as foldKeymap,aA as selectNextOccurrence,ab as gutter,aB as highlightSelectionMatches,aC as Annotation,ac as GutterMarker,aD as AnnotationType,ad as gutters,aE as ChangeDesc,ae as lineNumberMarkers,aF as ChangeSet,af as lineNumbers,aG as Compartment,ag as HighlightStyle,aH as EditorState,ah as highlightTree,aI as Facet,ai as Tag,aJ as MapMode,aj as history,aK as SelectionRange,ak as historyKeymap,aL as StateEffect,al as redo,aM as StateEffectType,am as redoSelection,aN as StateField,an as undo,aO as Transaction,ao as undoSelection,aP as StreamLanguage,ap as css,aQ as StringStream,aq as html,aR as Line,ar as javascript,aS as Text,as as ensureSyntaxTree,at as indentOnInput,aT as repositionTooltips,au as indentUnit,aU as showTooltip,av as bracketMatching,aV as tooltips,aW as Decoration,aw as showPanel,ax as Range,aX as drawSelection,aY as EditorView,ay as RangeSet,az as RangeSetBuilder,aZ as highlightSpecialChars,B as json,b0 as scrollPastEnd,b1 as ViewPlugin,b2 as ViewUpdate,b3 as WidgetType,b4 as TreeCursor,b5 as StyleModule,D as markdown,e as LanguageSupport,F as php,g as NodeType,G as python,h as NodeSet,H as shell,I as wast,j as Language,J as xml,K as acceptCompletion,k as syntaxTree,L as LRParser,m as EditorSelection,M as autocompletion,N as NodeProp,n as Prec,O as closeCompletion,o as keymap,P as Parser,Q as completeAnyWord,R as CompletionContext,S as currentCompletions,T as Tree,t as tags,U as ifNotIn,V as selectedCompletion,W as startCompletion,x as clojure,X as closeBrackets,Y as closeBracketsKeymap,y as coffeescript,z as cpp,Z as cursorMatchingBracket}from"./chunk/codemirror.js";
2
2
 
@@ -3,10 +3,10 @@
3
3
  "version": "0.0.1",
4
4
  "private": true,
5
5
  "dependencies": {
6
- "@codemirror/autocomplete": "0.19.12",
6
+ "@codemirror/autocomplete": "0.19.13",
7
7
  "@codemirror/closebrackets": "0.19.0",
8
8
  "@codemirror/commands": "0.19.8",
9
- "@codemirror/comment": "0.19.0",
9
+ "@codemirror/comment": "0.19.1",
10
10
  "@codemirror/fold": "0.19.3",
11
11
  "@codemirror/gutter": "0.19.9",
12
12
  "@codemirror/highlight": "0.19.7",
@@ -16,7 +16,7 @@
16
16
  "@codemirror/lang-html": "0.19.4",
17
17
  "@codemirror/lang-java": "0.19.1",
18
18
  "@codemirror/lang-javascript": "0.19.7",
19
- "@codemirror/lang-json": "0.19.1",
19
+ "@codemirror/lang-json": "0.19.2",
20
20
  "@codemirror/lang-markdown": "0.19.6",
21
21
  "@codemirror/lang-php": "0.19.1",
22
22
  "@codemirror/lang-python": "0.19.4",
@@ -24,15 +24,15 @@
24
24
  "@codemirror/lang-xml": "0.19.2",
25
25
  "@codemirror/language": "0.19.7",
26
26
  "@codemirror/legacy-modes": "0.19.0",
27
- "@codemirror/matchbrackets": "0.19.3",
27
+ "@codemirror/matchbrackets": "0.19.4",
28
28
  "@codemirror/panel": "0.19.1",
29
- "@codemirror/rangeset": "0.19.6",
30
- "@codemirror/search": "0.19.6",
31
- "@codemirror/state": "0.19.6",
32
- "@codemirror/stream-parser": "0.19.5",
29
+ "@codemirror/rangeset": "0.19.7",
30
+ "@codemirror/search": "0.19.8",
31
+ "@codemirror/state": "0.19.9",
32
+ "@codemirror/stream-parser": "0.19.6",
33
33
  "@codemirror/text": "0.19.6",
34
- "@codemirror/tooltip": "0.19.13",
35
- "@codemirror/view": "0.19.42",
34
+ "@codemirror/tooltip": "0.19.14",
35
+ "@codemirror/view": "0.19.43",
36
36
  "@lezer/common": "0.15.11",
37
37
  "@lezer/lr": "0.15.8",
38
38
  "@rollup/plugin-node-resolve": "^13.0.4",
@@ -17,7 +17,7 @@ div {
17
17
 
18
18
  .arrow-icon {
19
19
  display: inline-block;
20
- -webkit-mask-image: url("Images/treeoutlineTriangles.svg");
20
+ -webkit-mask-image: var(--image-file-treeoutlineTriangles);
21
21
  -webkit-mask-size: 32px 24px;
22
22
  -webkit-mask-position: 0 0;
23
23
  background-color: var(--color-text-primary);
@@ -224,6 +224,7 @@ export function baseConfiguration(text: string): CM.Extension {
224
224
  return [
225
225
  theme(),
226
226
  CM.highlightSpecialChars(),
227
+ CM.highlightSelectionMatches(),
227
228
  CM.history(),
228
229
  CM.drawSelection(),
229
230
  CM.EditorState.allowMultipleSelections.of(true),
@@ -3,10 +3,13 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import type * as Common from '../../../../core/common/common.js';
6
+ import type * as Platform from '../../../../core/platform/platform.js';
6
7
  import * as TextUtils from '../../../../models/text_utils/text_utils.js';
7
8
 
8
9
  import {ResourceSourceFrame} from './ResourceSourceFrame.js';
9
10
 
11
+ // TODO(crbug.com/1253323): Casts to UrlString will be removed from this file when migration to branded types is complete.
12
+
10
13
  export class BinaryResourceViewFactory {
11
14
  private base64content: string;
12
15
  private readonly contentUrl: string;
@@ -67,8 +70,8 @@ export class BinaryResourceViewFactory {
67
70
  }
68
71
 
69
72
  createHexView(): ResourceSourceFrame {
70
- const hexViewerContentProvider =
71
- new TextUtils.StaticContentProvider.StaticContentProvider(this.contentUrl, this.resourceType, async () => {
73
+ const hexViewerContentProvider = new TextUtils.StaticContentProvider.StaticContentProvider(
74
+ this.contentUrl as Platform.DevToolsPath.UrlString, this.resourceType, async () => {
72
75
  const contentAsArray = await this.fetchContentAsArray();
73
76
  const content = BinaryResourceViewFactory.uint8ArrayToHexViewer(contentAsArray);
74
77
  return {content, isEncoded: false};
@@ -79,8 +82,8 @@ export class BinaryResourceViewFactory {
79
82
 
80
83
  createUtf8View(): ResourceSourceFrame {
81
84
  const utf8fn = this.utf8.bind(this);
82
- const utf8ContentProvider =
83
- new TextUtils.StaticContentProvider.StaticContentProvider(this.contentUrl, this.resourceType, utf8fn);
85
+ const utf8ContentProvider = new TextUtils.StaticContentProvider.StaticContentProvider(
86
+ this.contentUrl as Platform.DevToolsPath.UrlString, this.resourceType, utf8fn);
84
87
  return new ResourceSourceFrame(
85
88
  utf8ContentProvider, this.resourceType.canonicalMimeType(), {lineNumbers: true, lineWrapping: true});
86
89
  }
package/package.json CHANGED
@@ -54,5 +54,5 @@
54
54
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
55
55
  "watch": "third_party/node/node.py --output scripts/watch_build.js"
56
56
  },
57
- "version": "1.0.972361"
57
+ "version": "1.0.973446"
58
58
  }