UNPKG

ruru

Version:

Grafast-flavoured GraphiQL distribution

2 lines 27.4 kB
export const __webpack_esm_id__=6828;export const __webpack_esm_ids__=[6828,6911];export const __webpack_esm_modules__={35420(e,r,o){function i(e,r){const o=[],i=[];for(const i of e)r.has(i)||o.push(i);for(const o of r)e.has(o)||i.push(o);return{removed:o,added:i}}function t(e,r){const o=new Set;for(const i of r)e.has(i)&&o.add(i);return o}o.r(r),o.d(r,{diffSets:()=>i,intersection:()=>t})},55730(e,r,o){o.r(r),o.d(r,{default:()=>n});var i,t=o(60891);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){const r="error",o="warning",i="info";e.fromValue=function(n){return n?t.equalsIgnoreCase(r,n)?e.Error:t.equalsIgnoreCase(o,n)||t.equalsIgnoreCase("warn",n)?e.Warning:t.equalsIgnoreCase(i,n)?e.Info:e.Ignore:e.Ignore},e.toString=function(t){switch(t){case e.Error:return r;case e.Warning:return o;case e.Info:return i;default:return"ignore"}}}(i||(i={}));const n=i},41422(e,r,o){o.r(r),o.d(r,{deprecatedEditorActiveIndentGuides:()=>I,deprecatedEditorIndentGuides:()=>b,editorActiveIndentGuide1:()=>_,editorActiveIndentGuide2:()=>R,editorActiveIndentGuide3:()=>S,editorActiveIndentGuide4:()=>H,editorActiveIndentGuide5:()=>L,editorActiveIndentGuide6:()=>A,editorActiveLineNumber:()=>P,editorBracketHighlightingForeground1:()=>re,editorBracketHighlightingForeground2:()=>oe,editorBracketHighlightingForeground3:()=>ie,editorBracketHighlightingForeground4:()=>te,editorBracketHighlightingForeground5:()=>ne,editorBracketHighlightingForeground6:()=>ae,editorBracketHighlightingUnexpectedBracketForeground:()=>de,editorBracketMatchBackground:()=>x,editorBracketMatchBorder:()=>O,editorBracketPairGuideActiveBackground1:()=>ke,editorBracketPairGuideActiveBackground2:()=>fe,editorBracketPairGuideActiveBackground3:()=>me,editorBracketPairGuideActiveBackground4:()=>Ce,editorBracketPairGuideActiveBackground5:()=>ve,editorBracketPairGuideActiveBackground6:()=>Be,editorBracketPairGuideBackground1:()=>ce,editorBracketPairGuideBackground2:()=>le,editorBracketPairGuideBackground3:()=>se,editorBracketPairGuideBackground4:()=>ue,editorBracketPairGuideBackground5:()=>ge,editorBracketPairGuideBackground6:()=>he,editorCodeLensForeground:()=>N,editorCursorBackground:()=>k,editorCursorForeground:()=>h,editorDimmedLineNumber:()=>E,editorGutter:()=>U,editorIndentGuide1:()=>G,editorIndentGuide2:()=>w,editorIndentGuide3:()=>y,editorIndentGuide4:()=>D,editorIndentGuide5:()=>z,editorIndentGuide6:()=>F,editorLineHighlight:()=>d,editorLineHighlightBorder:()=>c,editorLineNumbers:()=>p,editorMultiCursorPrimaryBackground:()=>m,editorMultiCursorPrimaryForeground:()=>f,editorMultiCursorSecondaryBackground:()=>v,editorMultiCursorSecondaryForeground:()=>C,editorOverviewRulerBackground:()=>W,editorOverviewRulerBorder:()=>q,editorRangeHighlight:()=>l,editorRangeHighlightBorder:()=>s,editorRuler:()=>T,editorSymbolHighlight:()=>u,editorSymbolHighlightBorder:()=>g,editorUnicodeHighlightBackground:()=>be,editorUnicodeHighlightBorder:()=>pe,editorUnnecessaryCodeBorder:()=>j,editorUnnecessaryCodeOpacity:()=>K,editorWhitespaces:()=>B,ghostTextBackground:()=>V,ghostTextBorder:()=>$,ghostTextForeground:()=>J,overviewRulerError:()=>Y,overviewRulerInfo:()=>ee,overviewRulerRangeHighlight:()=>Q,overviewRulerWarning:()=>Z});var i=o(12003),t=o(63962),n=o(53698),a=o(19729);const d=(0,n.registerColor)("editor.lineHighlightBackground",null,i.localize("lineHighlight","Background color for the highlight of line at the cursor position.")),c=(0,n.registerColor)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:n.contrastBorder},i.localize("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),l=(0,n.registerColor)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},i.localize("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),s=(0,n.registerColor)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:n.activeContrastBorder,hcLight:n.activeContrastBorder},i.localize("rangeHighlightBorder","Background color of the border around highlighted ranges.")),u=(0,n.registerColor)("editor.symbolHighlightBackground",{dark:n.editorFindMatchHighlight,light:n.editorFindMatchHighlight,hcDark:null,hcLight:null},i.localize("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),g=(0,n.registerColor)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:n.activeContrastBorder,hcLight:n.activeContrastBorder},i.localize("symbolHighlightBorder","Background color of the border around highlighted symbols.")),h=(0,n.registerColor)("editorCursor.foreground",{dark:"#AEAFAD",light:t.Color.black,hcDark:t.Color.white,hcLight:"#0F4A85"},i.localize("caret","Color of the editor cursor.")),k=(0,n.registerColor)("editorCursor.background",null,i.localize("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),f=(0,n.registerColor)("editorMultiCursor.primary.foreground",h,i.localize("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),m=(0,n.registerColor)("editorMultiCursor.primary.background",k,i.localize("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.")),C=(0,n.registerColor)("editorMultiCursor.secondary.foreground",h,i.localize("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),v=(0,n.registerColor)("editorMultiCursor.secondary.background",k,i.localize("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.")),B=(0,n.registerColor)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},i.localize("editorWhitespaces","Color of whitespace characters in the editor.")),p=(0,n.registerColor)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:t.Color.white,hcLight:"#292929"},i.localize("editorLineNumbers","Color of editor line numbers.")),b=(0,n.registerColor)("editorIndentGuide.background",B,i.localize("editorIndentGuides","Color of the editor indentation guides."),!1,i.localize("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),I=(0,n.registerColor)("editorIndentGuide.activeBackground",B,i.localize("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,i.localize("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),G=(0,n.registerColor)("editorIndentGuide.background1",b,i.localize("editorIndentGuides1","Color of the editor indentation guides (1).")),w=(0,n.registerColor)("editorIndentGuide.background2","#00000000",i.localize("editorIndentGuides2","Color of the editor indentation guides (2).")),y=(0,n.registerColor)("editorIndentGuide.background3","#00000000",i.localize("editorIndentGuides3","Color of the editor indentation guides (3).")),D=(0,n.registerColor)("editorIndentGuide.background4","#00000000",i.localize("editorIndentGuides4","Color of the editor indentation guides (4).")),z=(0,n.registerColor)("editorIndentGuide.background5","#00000000",i.localize("editorIndentGuides5","Color of the editor indentation guides (5).")),F=(0,n.registerColor)("editorIndentGuide.background6","#00000000",i.localize("editorIndentGuides6","Color of the editor indentation guides (6).")),_=(0,n.registerColor)("editorIndentGuide.activeBackground1",I,i.localize("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),R=(0,n.registerColor)("editorIndentGuide.activeBackground2","#00000000",i.localize("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),S=(0,n.registerColor)("editorIndentGuide.activeBackground3","#00000000",i.localize("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),H=(0,n.registerColor)("editorIndentGuide.activeBackground4","#00000000",i.localize("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),L=(0,n.registerColor)("editorIndentGuide.activeBackground5","#00000000",i.localize("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),A=(0,n.registerColor)("editorIndentGuide.activeBackground6","#00000000",i.localize("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),M=(0,n.registerColor)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:n.activeContrastBorder,hcLight:n.activeContrastBorder},i.localize("editorActiveLineNumber","Color of editor active line number"),!1,i.localize("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),P=(0,n.registerColor)("editorLineNumber.activeForeground",M,i.localize("editorActiveLineNumber","Color of editor active line number")),E=(0,n.registerColor)("editorLineNumber.dimmedForeground",null,i.localize("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),T=(0,n.registerColor)("editorRuler.foreground",{dark:"#5A5A5A",light:t.Color.lightgrey,hcDark:t.Color.white,hcLight:"#292929"},i.localize("editorRuler","Color of the editor rulers.")),N=(0,n.registerColor)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},i.localize("editorCodeLensForeground","Foreground color of editor CodeLens")),x=(0,n.registerColor)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},i.localize("editorBracketMatchBackground","Background color behind matching brackets")),O=(0,n.registerColor)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:n.contrastBorder,hcLight:n.contrastBorder},i.localize("editorBracketMatchBorder","Color for matching brackets boxes")),q=(0,n.registerColor)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},i.localize("editorOverviewRulerBorder","Color of the overview ruler border.")),W=(0,n.registerColor)("editorOverviewRuler.background",null,i.localize("editorOverviewRulerBackground","Background color of the editor overview ruler.")),U=(0,n.registerColor)("editorGutter.background",n.editorBackground,i.localize("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),j=(0,n.registerColor)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:t.Color.fromHex("#fff").transparent(.8),hcLight:n.contrastBorder},i.localize("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),K=(0,n.registerColor)("editorUnnecessaryCode.opacity",{dark:t.Color.fromHex("#000a"),light:t.Color.fromHex("#0007"),hcDark:null,hcLight:null},i.localize("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.")),$=(0,n.registerColor)("editorGhostText.border",{dark:null,light:null,hcDark:t.Color.fromHex("#fff").transparent(.8),hcLight:t.Color.fromHex("#292929").transparent(.8)},i.localize("editorGhostTextBorder","Border color of ghost text in the editor.")),J=(0,n.registerColor)("editorGhostText.foreground",{dark:t.Color.fromHex("#ffffff56"),light:t.Color.fromHex("#0007"),hcDark:null,hcLight:null},i.localize("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),V=(0,n.registerColor)("editorGhostText.background",null,i.localize("editorGhostTextBackground","Background color of the ghost text in the editor.")),X=new t.Color(new t.RGBA(0,122,204,.6)),Q=(0,n.registerColor)("editorOverviewRuler.rangeHighlightForeground",X,i.localize("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Y=(0,n.registerColor)("editorOverviewRuler.errorForeground",{dark:new t.Color(new t.RGBA(255,18,18,.7)),light:new t.Color(new t.RGBA(255,18,18,.7)),hcDark:new t.Color(new t.RGBA(255,50,50,1)),hcLight:"#B5200D"},i.localize("overviewRuleError","Overview ruler marker color for errors.")),Z=(0,n.registerColor)("editorOverviewRuler.warningForeground",{dark:n.editorWarningForeground,light:n.editorWarningForeground,hcDark:n.editorWarningBorder,hcLight:n.editorWarningBorder},i.localize("overviewRuleWarning","Overview ruler marker color for warnings.")),ee=(0,n.registerColor)("editorOverviewRuler.infoForeground",{dark:n.editorInfoForeground,light:n.editorInfoForeground,hcDark:n.editorInfoBorder,hcLight:n.editorInfoBorder},i.localize("overviewRuleInfo","Overview ruler marker color for infos.")),re=(0,n.registerColor)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},i.localize("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),oe=(0,n.registerColor)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},i.localize("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),ie=(0,n.registerColor)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},i.localize("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),te=(0,n.registerColor)("editorBracketHighlight.foreground4","#00000000",i.localize("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),ne=(0,n.registerColor)("editorBracketHighlight.foreground5","#00000000",i.localize("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),ae=(0,n.registerColor)("editorBracketHighlight.foreground6","#00000000",i.localize("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),de=(0,n.registerColor)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new t.Color(new t.RGBA(255,18,18,.8)),light:new t.Color(new t.RGBA(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},i.localize("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),ce=(0,n.registerColor)("editorBracketPairGuide.background1","#00000000",i.localize("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),le=(0,n.registerColor)("editorBracketPairGuide.background2","#00000000",i.localize("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),se=(0,n.registerColor)("editorBracketPairGuide.background3","#00000000",i.localize("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),ue=(0,n.registerColor)("editorBracketPairGuide.background4","#00000000",i.localize("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),ge=(0,n.registerColor)("editorBracketPairGuide.background5","#00000000",i.localize("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),he=(0,n.registerColor)("editorBracketPairGuide.background6","#00000000",i.localize("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),ke=(0,n.registerColor)("editorBracketPairGuide.activeBackground1","#00000000",i.localize("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),fe=(0,n.registerColor)("editorBracketPairGuide.activeBackground2","#00000000",i.localize("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),me=(0,n.registerColor)("editorBracketPairGuide.activeBackground3","#00000000",i.localize("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),Ce=(0,n.registerColor)("editorBracketPairGuide.activeBackground4","#00000000",i.localize("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),ve=(0,n.registerColor)("editorBracketPairGuide.activeBackground5","#00000000",i.localize("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),Be=(0,n.registerColor)("editorBracketPairGuide.activeBackground6","#00000000",i.localize("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),pe=(0,n.registerColor)("editorUnicodeHighlight.border",n.editorWarningForeground,i.localize("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),be=(0,n.registerColor)("editorUnicodeHighlight.background",n.editorWarningBackground,i.localize("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,a.registerThemingParticipant)((e,r)=>{const o=e.getColor(n.editorBackground),i=e.getColor(d),t=i&&!i.isTransparent()?i:o;t&&r.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${t}; }`)})},72524(e,r,o){o.r(r),o.d(r,{MarkerDecorationsService:()=>m});var i=o(20808),t=o(32293),n=o(92692),a=o(19729),d=o(41422),c=o(16911),l=o(81304),s=o(54835),u=o(22573),g=o(53698),h=o(27735),k=o(35420),f=function(e,r){return function(o,i){r(o,i,e)}};let m=class extends t.Disposable{constructor(e,r){super(),this._markerService=r,this._onDidChangeMarker=this._register(new u.Emitter),this._markerDecorations=new h.ResourceMap,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 C(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.Schemas.inMemory&&e.uri.scheme!==s.Schemas.internal&&e.uri.scheme!==s.Schemas.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)}};m=function(e,r,o,i){var t,n=arguments.length,a=n<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,o,i);else for(var d=e.length-1;d>=0;d--)(t=e[d])&&(a=(n<3?t(a):n>3?t(r,o,a):t(r,o))||a);return n>3&&a&&Object.defineProperty(r,o,a),a}([f(0,c.IModelService),f(1,i.IMarkerService)],m);class C extends t.Disposable{constructor(e){super(),this.model=e,this._map=new h.BidirectionalMap,this._register((0,t.toDisposable)(()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()}))}update(e){const{added:r,removed:o}=(0,k.diffSets)(new Set(this._map.keys()),new Set(e));if(0===r.length&&0===o.length)return!1;const i=o.map(e=>this._map.get(e)),t=r.map(e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)})),n=this.model.deltaDecorations(i,t);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=l.Range.lift(r);if(r.severity!==i.MarkerSeverity.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 i=e.getWordAtPosition(o.getStartPosition());i&&(o=new l.Range(o.startLineNumber,i.startColumn,o.endLineNumber,i.endColumn))}else if(r.endColumn===Number.MAX_VALUE&&1===r.startColumn&&o.startLineNumber===o.endLineNumber){const i=e.getLineFirstNonWhitespaceColumn(r.startLineNumber);i<o.endColumn&&(o=new l.Range(o.startLineNumber,i,o.endLineNumber,o.endColumn),r.startColumn=i)}return o}_createDecorationOption(e){let r,o,t,c,l;switch(e.severity){case i.MarkerSeverity.Hint:r=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",t=0;break;case i.MarkerSeverity.Info:r="squiggly-info",o=(0,a.themeColorFromId)(d.overviewRulerInfo),t=10,l={color:(0,a.themeColorFromId)(g.minimapInfo),position:1};break;case i.MarkerSeverity.Warning:r="squiggly-warning",o=(0,a.themeColorFromId)(d.overviewRulerWarning),t=20,l={color:(0,a.themeColorFromId)(g.minimapWarning),position:1};break;case i.MarkerSeverity.Error:default:r="squiggly-error",o=(0,a.themeColorFromId)(d.overviewRulerError),t=30,l={color:(0,a.themeColorFromId)(g.minimapError),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.OverviewRulerLane.Right},minimap:l,zIndex:t,inlineClassName:c}}_hasMarkerTag(e,r){return!!e.tags&&e.tags.indexOf(r)>=0}}},16911(e,r,o){o.r(r),o.d(r,{IModelService:()=>i});const i=(0,o(35184).createDecorator)("modelService")},35184(e,r,o){var i;o.r(r),o.d(r,{IInstantiationService:()=>t,_util:()=>i,createDecorator:()=>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]||[]}}(i||(i={}));const t=n("instantiationService");function n(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const r=function(e,o,t){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,r,o){r[i.DI_TARGET]===r?r[i.DI_DEPENDENCIES].push({id:e,index:o}):(r[i.DI_DEPENDENCIES]=[{id:e,index:o}],r[i.DI_TARGET]=r)}(r,e,t)};return r.toString=()=>e,i.serviceIds.set(e,r),r}},3361(e,r,o){o.r(r),o.d(r,{Extensions:()=>n});var i=o(22573),t=o(28976);const n={JSONContribution:"base.contributions.json"},a=new class{constructor(){this._onDidChangeSchema=new i.Emitter,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)}};t.Registry.add(n.JSONContribution,a)},20808(e,r,o){o.r(r),o.d(r,{IMarkerData:()=>t,IMarkerService:()=>c,MarkerSeverity:()=>i});var i,t,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"}(i||(i={})),function(e){e.compare=function(e,r){return r-e};const r=Object.create(null);r[e.Error]=(0,a.localize)("sev.error","Error"),r[e.Warning]=(0,a.localize)("sev.warning","Warning"),r[e.Info]=(0,a.localize)("sev.info","Info"),e.toString=function(e){return r[e]||""},e.fromSeverity=function(r){switch(r){case n.default.Error:return e.Error;case n.default.Warning:return e.Warning;case n.default.Info:return e.Info;case n.default.Ignore:return e.Hint}},e.toSeverity=function(r){switch(r){case e.Error:return n.default.Error;case e.Warning:return n.default.Warning;case e.Info:return n.default.Info;case e.Hint:return n.default.Ignore}}}(i||(i={})),function(e){const r="";function o(e,o){const t=[r];return e.source?t.push(e.source.replace("¦","\\¦")):t.push(r),e.code?"string"==typeof e.code?t.push(e.code.replace("¦","\\¦")):t.push(e.code.value.replace("¦","\\¦")):t.push(r),void 0!==e.severity&&null!==e.severity?t.push(i.toString(e.severity)):t.push(r),e.message&&o?t.push(e.message.replace("¦","\\¦")):t.push(r),void 0!==e.startLineNumber&&null!==e.startLineNumber?t.push(e.startLineNumber.toString()):t.push(r),void 0!==e.startColumn&&null!==e.startColumn?t.push(e.startColumn.toString()):t.push(r),void 0!==e.endLineNumber&&null!==e.endLineNumber?t.push(e.endLineNumber.toString()):t.push(r),void 0!==e.endColumn&&null!==e.endColumn?t.push(e.endColumn.toString()):t.push(r),t.push(r),t.join("¦")}e.makeKey=function(e){return o(e,!0)},e.makeKeyOptionalMessage=o}(t||(t={}));const c=(0,d.createDecorator)("markerService")},28976(e,r,o){o.r(r),o.d(r,{Registry:()=>n});var i=o(72667),t=o(69708);const n=new class{constructor(){this.data=new Map}add(e,r){i.ok(t.isString(e)),i.ok(t.isObject(r)),i.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}}},19729(e,r,o){o.r(r),o.d(r,{Extensions:()=>u,IThemeService:()=>c,Themable:()=>k,getThemeTypeSelector:()=>s,registerThemingParticipant:()=>h,themeColorFromId:()=>l});var i=o(22573),t=o(32293),n=o(35184),a=o(28976),d=o(4968);const c=(0,n.createDecorator)("themeService");function l(e){return{id:e}}function s(e){switch(e){case d.ColorScheme.DARK:return"vs-dark";case d.ColorScheme.HIGH_CONTRAST_DARK:return"hc-black";case d.ColorScheme.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const u={ThemingContribution:"base.contributions.theming"},g=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new i.Emitter}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,t.toDisposable)(()=>{const r=this.themingParticipants.indexOf(e);this.themingParticipants.splice(r,1)})}getThemingParticipants(){return this.themingParticipants}};function h(e){return g.onColorThemeChange(e)}a.Registry.add(u.ThemingContribution,g);class k extends t.Disposable{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(){}}}}; //# sourceMappingURL=6828.js.map