ruru
Version:
Grafast-flavoured GraphiQL distribution
2 lines • 23.1 kB
JavaScript
export const __webpack_id__=6828;export const __webpack_ids__=[6828,6911];export const __webpack_modules__={3361:(e,r,o)=>{o.d(r,{F:()=>n});var t=o(22573),i=o(28976);const n={JSONContribution:"base.contributions.json"},a=new class{constructor(){this._onDidChangeSchema=new t.vl,this.schemasById={}}registerSchema(e,r){var o;this.schemasById[(o=e,o.length>0&&"#"===o.charAt(o.length-1)?o.substring(0,o.length-1):o)]=r,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};i.O.add(n.JSONContribution,a)},16911:(e,r,o)=>{o.r(r),o.d(r,{IModelService:()=>t});const t=(0,o(35184).u1)("modelService")},19729:(e,r,o)=>{o.d(r,{Fd:()=>g,Gy:()=>c,Pz:()=>s,Yf:()=>u,lR:()=>k,zy:()=>l});var t=o(22573),i=o(32293),n=o(35184),a=o(28976),d=o(4968);const c=(0,n.u1)("themeService");function u(e){return{id:e}}function s(e){switch(e){case d.zM.DARK:return"vs-dark";case d.zM.HIGH_CONTRAST_DARK:return"hc-black";case d.zM.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const g={ThemingContribution:"base.contributions.theming"},h=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new t.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,i.s)(()=>{const r=this.themingParticipants.indexOf(e);this.themingParticipants.splice(r,1)})}getThemingParticipants(){return this.themingParticipants}};function l(e){return h.onColorThemeChange(e)}a.O.add(g.ThemingContribution,h);class k extends i.jG{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(e=>this.onThemeChange(e)))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},20808:(e,r,o)=>{o.d(r,{DR:()=>c,cj:()=>t,oc:()=>i});var t,i,n=o(55730),a=o(12003),d=o(35184);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(t||(t={})),function(e){e.compare=function(e,r){return r-e};const r=Object.create(null);r[e.Error]=(0,a.kg)("sev.error","Error"),r[e.Warning]=(0,a.kg)("sev.warning","Warning"),r[e.Info]=(0,a.kg)("sev.info","Info"),e.toString=function(e){return r[e]||""},e.fromSeverity=function(r){switch(r){case n.A.Error:return e.Error;case n.A.Warning:return e.Warning;case n.A.Info:return e.Info;case n.A.Ignore:return e.Hint}},e.toSeverity=function(r){switch(r){case e.Error:return n.A.Error;case e.Warning:return n.A.Warning;case e.Info:return n.A.Info;case e.Hint:return n.A.Ignore}}}(t||(t={})),function(e){const r="";function o(e,o){const i=[r];return e.source?i.push(e.source.replace("¦","\\¦")):i.push(r),e.code?"string"==typeof e.code?i.push(e.code.replace("¦","\\¦")):i.push(e.code.value.replace("¦","\\¦")):i.push(r),void 0!==e.severity&&null!==e.severity?i.push(t.toString(e.severity)):i.push(r),e.message&&o?i.push(e.message.replace("¦","\\¦")):i.push(r),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(r),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(r),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(r),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(r),i.push(r),i.join("¦")}e.makeKey=function(e){return o(e,!0)},e.makeKeyOptionalMessage=o}(i||(i={}));const c=(0,d.u1)("markerService")},28976:(e,r,o)=>{o.d(r,{O:()=>n});var t=o(72667),i=o(69708);const n=new class{constructor(){this.data=new Map}add(e,r){t.ok(i.Kg(e)),t.ok(i.Gv(r)),t.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,r)}as(e){return this.data.get(e)||null}}},35184:(e,r,o)=>{var t;o.d(r,{_$:()=>t,_Y:()=>i,u1:()=>n}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(r){return r[e.DI_DEPENDENCIES]||[]}}(t||(t={}));const i=n("instantiationService");function n(e){if(t.serviceIds.has(e))return t.serviceIds.get(e);const r=function(e,o,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,r,o){r[t.DI_TARGET]===r?r[t.DI_DEPENDENCIES].push({id:e,index:o}):(r[t.DI_DEPENDENCIES]=[{id:e,index:o}],r[t.DI_TARGET]=r)}(r,e,i)};return r.toString=()=>e,t.serviceIds.set(e,r),r}},35420:(e,r,o)=>{function t(e,r){const o=[],t=[];for(const t of e)r.has(t)||o.push(t);for(const o of r)e.has(o)||t.push(o);return{removed:o,added:t}}function i(e,r){const o=new Set;for(const t of r)e.has(t)&&o.add(t);return o}o.d(r,{E:()=>i,Z:()=>t})},41422:(e,r,o)=>{o.d(r,{A3:()=>D,AQ:()=>q,Am:()=>y,As:()=>L,BD:()=>X,Bo:()=>Z,CM:()=>w,D0:()=>u,Ek:()=>M,H0:()=>I,I2:()=>V,IW:()=>ee,If:()=>J,JB:()=>R,L0:()=>k,Mf:()=>c,P1:()=>ne,Pe:()=>te,Qt:()=>b,WD:()=>ie,WS:()=>oe,WY:()=>ae,Xr:()=>E,aZ:()=>O,bB:()=>re,hz:()=>B,je:()=>h,kG:()=>d,kM:()=>s,l5:()=>U,lQ:()=>W,n4:()=>$,ob:()=>A,ow:()=>x,s7:()=>K,sC:()=>g,sH:()=>j,sN:()=>Q,ss:()=>z,tK:()=>_,tp:()=>G,vP:()=>C,vV:()=>v,vp:()=>N,w4:()=>f,we:()=>l,x9:()=>H,yI:()=>T,yw:()=>S,zp:()=>Y});var t=o(12003),i=o(63962),n=o(31237),a=o(19729);const d=(0,n.x1A)("editor.lineHighlightBackground",null,t.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),c=(0,n.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:n.b1q},t.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),u=((0,n.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},t.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,n.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:n.buw,hcLight:n.buw},t.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,n.x1A)("editor.symbolHighlightBackground",{dark:n.Ubg,light:n.Ubg,hcDark:null,hcLight:null},t.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,n.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:n.buw,hcLight:n.buw},t.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,n.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:i.Q1.black,hcDark:i.Q1.white,hcLight:"#0F4A85"},t.kg("caret","Color of the editor cursor."))),s=(0,n.x1A)("editorCursor.background",null,t.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),g=(0,n.x1A)("editorMultiCursor.primary.foreground",u,t.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),h=(0,n.x1A)("editorMultiCursor.primary.background",s,t.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),l=(0,n.x1A)("editorMultiCursor.secondary.foreground",u,t.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),k=(0,n.x1A)("editorMultiCursor.secondary.background",s,t.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),f=(0,n.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},t.kg("editorWhitespaces","Color of whitespace characters in the editor.")),b=(0,n.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:i.Q1.white,hcLight:"#292929"},t.kg("editorLineNumbers","Color of editor line numbers.")),m=(0,n.x1A)("editorIndentGuide.background",f,t.kg("editorIndentGuides","Color of the editor indentation guides."),!1,t.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),p=(0,n.x1A)("editorIndentGuide.activeBackground",f,t.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,t.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),v=(0,n.x1A)("editorIndentGuide.background1",m,t.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),A=(0,n.x1A)("editorIndentGuide.background2","#00000000",t.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),B=(0,n.x1A)("editorIndentGuide.background3","#00000000",t.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),x=(0,n.x1A)("editorIndentGuide.background4","#00000000",t.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),C=(0,n.x1A)("editorIndentGuide.background5","#00000000",t.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),w=(0,n.x1A)("editorIndentGuide.background6","#00000000",t.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),I=(0,n.x1A)("editorIndentGuide.activeBackground1",p,t.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),y=(0,n.x1A)("editorIndentGuide.activeBackground2","#00000000",t.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),_=(0,n.x1A)("editorIndentGuide.activeBackground3","#00000000",t.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),D=(0,n.x1A)("editorIndentGuide.activeBackground4","#00000000",t.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),G=(0,n.x1A)("editorIndentGuide.activeBackground5","#00000000",t.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),L=(0,n.x1A)("editorIndentGuide.activeBackground6","#00000000",t.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),F=(0,n.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:n.buw,hcLight:n.buw},t.kg("editorActiveLineNumber","Color of editor active line number"),!1,t.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),R=((0,n.x1A)("editorLineNumber.activeForeground",F,t.kg("editorActiveLineNumber","Color of editor active line number")),(0,n.x1A)("editorLineNumber.dimmedForeground",null,t.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed."))),H=((0,n.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:i.Q1.lightgrey,hcDark:i.Q1.white,hcLight:"#292929"},t.kg("editorRuler","Color of the editor rulers.")),(0,n.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},t.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,n.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},t.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,n.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:n.b1q,hcLight:n.b1q},t.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,n.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},t.kg("editorOverviewRulerBorder","Color of the overview ruler border."))),E=(0,n.x1A)("editorOverviewRuler.background",null,t.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),S=((0,n.x1A)("editorGutter.background",n.YtV,t.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,n.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#fff").transparent(.8),hcLight:n.b1q},t.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,n.x1A)("editorUnnecessaryCode.opacity",{dark:i.Q1.fromHex("#000a"),light:i.Q1.fromHex("#0007"),hcDark:null,hcLight:null},t.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."))),M=((0,n.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#fff").transparent(.8),hcLight:i.Q1.fromHex("#292929").transparent(.8)},t.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,n.x1A)("editorGhostText.foreground",{dark:i.Q1.fromHex("#ffffff56"),light:i.Q1.fromHex("#0007"),hcDark:null,hcLight:null},t.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor."))),P=((0,n.x1A)("editorGhostText.background",null,t.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new i.Q1(new i.bU(0,122,204,.6))),N=(0,n.x1A)("editorOverviewRuler.rangeHighlightForeground",P,t.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),T=(0,n.x1A)("editorOverviewRuler.errorForeground",{dark:new i.Q1(new i.bU(255,18,18,.7)),light:new i.Q1(new i.bU(255,18,18,.7)),hcDark:new i.Q1(new i.bU(255,50,50,1)),hcLight:"#B5200D"},t.kg("overviewRuleError","Overview ruler marker color for errors.")),O=(0,n.x1A)("editorOverviewRuler.warningForeground",{dark:n.Hng,light:n.Hng,hcDark:n.Stt,hcLight:n.Stt},t.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),q=(0,n.x1A)("editorOverviewRuler.infoForeground",{dark:n.pOz,light:n.pOz,hcDark:n.IIb,hcLight:n.IIb},t.kg("overviewRuleInfo","Overview ruler marker color for infos.")),Q=(0,n.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},t.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),W=(0,n.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},t.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),z=(0,n.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},t.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),U=(0,n.x1A)("editorBracketHighlight.foreground4","#00000000",t.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),j=(0,n.x1A)("editorBracketHighlight.foreground5","#00000000",t.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),Y=(0,n.x1A)("editorBracketHighlight.foreground6","#00000000",t.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),K=(0,n.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new i.Q1(new i.bU(255,18,18,.8)),light:new i.Q1(new i.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},t.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),$=(0,n.x1A)("editorBracketPairGuide.background1","#00000000",t.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),V=(0,n.x1A)("editorBracketPairGuide.background2","#00000000",t.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),Z=(0,n.x1A)("editorBracketPairGuide.background3","#00000000",t.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),J=(0,n.x1A)("editorBracketPairGuide.background4","#00000000",t.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),X=(0,n.x1A)("editorBracketPairGuide.background5","#00000000",t.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),ee=(0,n.x1A)("editorBracketPairGuide.background6","#00000000",t.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),re=(0,n.x1A)("editorBracketPairGuide.activeBackground1","#00000000",t.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),oe=(0,n.x1A)("editorBracketPairGuide.activeBackground2","#00000000",t.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),te=(0,n.x1A)("editorBracketPairGuide.activeBackground3","#00000000",t.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),ie=(0,n.x1A)("editorBracketPairGuide.activeBackground4","#00000000",t.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),ne=(0,n.x1A)("editorBracketPairGuide.activeBackground5","#00000000",t.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),ae=(0,n.x1A)("editorBracketPairGuide.activeBackground6","#00000000",t.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,n.x1A)("editorUnicodeHighlight.border",n.Hng,t.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,n.x1A)("editorUnicodeHighlight.background",n.whs,t.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters.")),(0,a.zy)((e,r)=>{const o=e.getColor(n.YtV),t=e.getColor(d),i=t&&!t.isTransparent()?t:o;i&&r.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${i}; }`)})},55730:(e,r,o)=>{o.d(r,{A:()=>n});var t,i=o(60891);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(t||(t={})),function(e){const r="error",o="warning",t="info";e.fromValue=function(n){return n?i.Q_(r,n)?e.Error:i.Q_(o,n)||i.Q_("warn",n)?e.Warning:i.Q_(t,n)?e.Info:e.Ignore:e.Ignore},e.toString=function(i){switch(i){case e.Error:return r;case e.Warning:return o;case e.Info:return t;default:return"ignore"}}}(t||(t={}));const n=t},72524:(e,r,o)=>{o.r(r),o.d(r,{MarkerDecorationsService:()=>b});var t=o(20808),i=o(32293),n=o(92692),a=o(19729),d=o(41422),c=o(16911),u=o(81304),s=o(54835),g=o(22573),h=o(31237),l=o(27735),k=o(35420),f=function(e,r){return function(o,t){r(o,t,e)}};let b=class extends i.jG{constructor(e,r){super(),this._markerService=r,this._onDidChangeMarker=this._register(new g.vl),this._markerDecorations=new l.fT,e.getModels().forEach(e=>this._onModelAdded(e)),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(e=>e.dispose()),this._markerDecorations.clear()}getMarker(e,r){const o=this._markerDecorations.get(e);return o&&o.getMarker(r)||null}_handleMarkerChange(e){e.forEach(e=>{const r=this._markerDecorations.get(e);r&&this._updateDecorations(r)})}_onModelAdded(e){const r=new m(e);this._markerDecorations.set(e.uri,r),this._updateDecorations(r)}_onModelRemoved(e){const r=this._markerDecorations.get(e.uri);r&&(r.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==s.ny.inMemory&&e.uri.scheme!==s.ny.internal&&e.uri.scheme!==s.ny.vscode||this._markerService?.read({resource:e.uri}).map(e=>e.owner).forEach(r=>this._markerService.remove(r,[e.uri]))}_updateDecorations(e){const r=this._markerService.read({resource:e.model.uri,take:500});e.update(r)&&this._onDidChangeMarker.fire(e.model)}};b=function(e,r,o,t){var i,n=arguments.length,a=n<3?r:null===t?t=Object.getOwnPropertyDescriptor(r,o):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,o,t);else for(var d=e.length-1;d>=0;d--)(i=e[d])&&(a=(n<3?i(a):n>3?i(r,o,a):i(r,o))||a);return n>3&&a&&Object.defineProperty(r,o,a),a}([f(0,c.IModelService),f(1,t.DR)],b);class m extends i.jG{constructor(e){super(),this.model=e,this._map=new l.cO,this._register((0,i.s)(()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()}))}update(e){const{added:r,removed:o}=(0,k.Z)(new Set(this._map.keys()),new Set(e));if(0===r.length&&0===o.length)return!1;const t=o.map(e=>this._map.get(e)),i=r.map(e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)})),n=this.model.deltaDecorations(t,i);for(const e of o)this._map.delete(e);for(let e=0;e<n.length;e++)this._map.set(r[e],n[e]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,r){let o=u.Q.lift(r);if(r.severity!==t.cj.Hint||this._hasMarkerTag(r,1)||this._hasMarkerTag(r,2)||(o=o.setEndPosition(o.startLineNumber,o.startColumn+2)),o=e.validateRange(o),o.isEmpty()){const r=e.getLineLastNonWhitespaceColumn(o.startLineNumber)||e.getLineMaxColumn(o.startLineNumber);if(1===r||o.endColumn>=r)return o;const t=e.getWordAtPosition(o.getStartPosition());t&&(o=new u.Q(o.startLineNumber,t.startColumn,o.endLineNumber,t.endColumn))}else if(r.endColumn===Number.MAX_VALUE&&1===r.startColumn&&o.startLineNumber===o.endLineNumber){const t=e.getLineFirstNonWhitespaceColumn(r.startLineNumber);t<o.endColumn&&(o=new u.Q(o.startLineNumber,t,o.endLineNumber,o.endColumn),r.startColumn=t)}return o}_createDecorationOption(e){let r,o,i,c,u;switch(e.severity){case t.cj.Hint:r=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",i=0;break;case t.cj.Info:r="squiggly-info",o=(0,a.Yf)(d.AQ),i=10,u={color:(0,a.Yf)(h.KoI),position:1};break;case t.cj.Warning:r="squiggly-warning",o=(0,a.Yf)(d.aZ),i=20,u={color:(0,a.Yf)(h.uMG),position:1};break;case t.cj.Error:default:r="squiggly-error",o=(0,a.Yf)(d.yI),i=30,u={color:(0,a.Yf)(h.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(c="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(c="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:r,showIfCollapsed:!0,overviewRuler:{color:o,position:n.A5.Right},minimap:u,zIndex:i,inlineClassName:c}}_hasMarkerTag(e,r){return!!e.tags&&e.tags.indexOf(r)>=0}}}};
//# sourceMappingURL=6828.js.map