12 lines
39 KiB
JavaScript
12 lines
39 KiB
JavaScript
var $e=Object.defineProperty;var Ge=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Ge(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./EditorWorker-43e8cbc4.js";import"./index-4ec2ce15.js";import"./editorWorker-43a98755.js";/*!-----------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
|
|
* Released under the MIT license
|
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
*-----------------------------------------------------------------------------*/var Ze=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,er=Object.getOwnPropertyNames,rr=Object.prototype.hasOwnProperty,tr=(e,n,i,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of er(n))!rr.call(e,r)&&(i||r!=="default")&&Ze(e,r,{get:()=>n[r],enumerable:!(t=Ke(n,r))||t.enumerable});return e},l={};tr(l,Qe);var nr=2*60*1e3,ir=class{constructor(e){A(this,"_defaults");A(this,"_idleCheckInterval");A(this,"_lastUsedTime");A(this,"_configChangeListener");A(this,"_worker");A(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>nr&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},oe;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(oe||(oe={}));var Y;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(Y||(Y={}));var T;(function(e){function n(t,r){return t===Number.MAX_VALUE&&(t=Y.MAX_VALUE),r===Number.MAX_VALUE&&(r=Y.MAX_VALUE),{line:t,character:r}}e.create=n;function i(t){var r=t;return o.objectLiteral(r)&&o.uinteger(r.line)&&o.uinteger(r.character)}e.is=i})(T||(T={}));var _;(function(e){function n(t,r,a,s){if(o.uinteger(t)&&o.uinteger(r)&&o.uinteger(a)&&o.uinteger(s))return{start:T.create(t,r),end:T.create(a,s)};if(T.is(t)&&T.is(r))return{start:t,end:r};throw new Error("Range#create called with invalid arguments["+t+", "+r+", "+a+", "+s+"]")}e.create=n;function i(t){var r=t;return o.objectLiteral(r)&&T.is(r.start)&&T.is(r.end)}e.is=i})(_||(_={}));var re;(function(e){function n(t,r){return{uri:t,range:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&_.is(r.range)&&(o.string(r.uri)||o.undefined(r.uri))}e.is=i})(re||(re={}));var ue;(function(e){function n(t,r,a,s){return{targetUri:t,targetRange:r,targetSelectionRange:a,originSelectionRange:s}}e.create=n;function i(t){var r=t;return o.defined(r)&&_.is(r.targetRange)&&o.string(r.targetUri)&&(_.is(r.targetSelectionRange)||o.undefined(r.targetSelectionRange))&&(_.is(r.originSelectionRange)||o.undefined(r.originSelectionRange))}e.is=i})(ue||(ue={}));var te;(function(e){function n(t,r,a,s){return{red:t,green:r,blue:a,alpha:s}}e.create=n;function i(t){var r=t;return o.numberRange(r.red,0,1)&&o.numberRange(r.green,0,1)&&o.numberRange(r.blue,0,1)&&o.numberRange(r.alpha,0,1)}e.is=i})(te||(te={}));var ce;(function(e){function n(t,r){return{range:t,color:r}}e.create=n;function i(t){var r=t;return _.is(r.range)&&te.is(r.color)}e.is=i})(ce||(ce={}));var de;(function(e){function n(t,r,a){return{label:t,textEdit:r,additionalTextEdits:a}}e.create=n;function i(t){var r=t;return o.string(r.label)&&(o.undefined(r.textEdit)||L.is(r))&&(o.undefined(r.additionalTextEdits)||o.typedArray(r.additionalTextEdits,L.is))}e.is=i})(de||(de={}));var W;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(W||(W={}));var fe;(function(e){function n(t,r,a,s,u){var c={startLine:t,endLine:r};return o.defined(a)&&(c.startCharacter=a),o.defined(s)&&(c.endCharacter=s),o.defined(u)&&(c.kind=u),c}e.create=n;function i(t){var r=t;return o.uinteger(r.startLine)&&o.uinteger(r.startLine)&&(o.undefined(r.startCharacter)||o.uinteger(r.startCharacter))&&(o.undefined(r.endCharacter)||o.uinteger(r.endCharacter))&&(o.undefined(r.kind)||o.string(r.kind))}e.is=i})(fe||(fe={}));var ne;(function(e){function n(t,r){return{location:t,message:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&re.is(r.location)&&o.string(r.message)}e.is=i})(ne||(ne={}));var N;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(N||(N={}));var le;(function(e){e.Unnecessary=1,e.Deprecated=2})(le||(le={}));var ge;(function(e){function n(i){var t=i;return t!=null&&o.string(t.href)}e.is=n})(ge||(ge={}));var $;(function(e){function n(t,r,a,s,u,c){var d={range:t,message:r};return o.defined(a)&&(d.severity=a),o.defined(s)&&(d.code=s),o.defined(u)&&(d.source=u),o.defined(c)&&(d.relatedInformation=c),d}e.create=n;function i(t){var r,a=t;return o.defined(a)&&_.is(a.range)&&o.string(a.message)&&(o.number(a.severity)||o.undefined(a.severity))&&(o.integer(a.code)||o.string(a.code)||o.undefined(a.code))&&(o.undefined(a.codeDescription)||o.string((r=a.codeDescription)===null||r===void 0?void 0:r.href))&&(o.string(a.source)||o.undefined(a.source))&&(o.undefined(a.relatedInformation)||o.typedArray(a.relatedInformation,ne.is))}e.is=i})($||($={}));var V;(function(e){function n(t,r){for(var a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];var u={title:t,command:r};return o.defined(a)&&a.length>0&&(u.arguments=a),u}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.title)&&o.string(r.command)}e.is=i})(V||(V={}));var L;(function(e){function n(a,s){return{range:a,newText:s}}e.replace=n;function i(a,s){return{range:{start:a,end:a},newText:s}}e.insert=i;function t(a){return{range:a,newText:""}}e.del=t;function r(a){var s=a;return o.objectLiteral(s)&&o.string(s.newText)&&_.is(s.range)}e.is=r})(L||(L={}));var j;(function(e){function n(t,r,a){var s={label:t};return r!==void 0&&(s.needsConfirmation=r),a!==void 0&&(s.description=a),s}e.create=n;function i(t){var r=t;return r!==void 0&&o.objectLiteral(r)&&o.string(r.label)&&(o.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(o.string(r.description)||r.description===void 0)}e.is=i})(j||(j={}));var w;(function(e){function n(i){var t=i;return typeof t=="string"}e.is=n})(w||(w={}));var P;(function(e){function n(a,s,u){return{range:a,newText:s,annotationId:u}}e.replace=n;function i(a,s,u){return{range:{start:a,end:a},newText:s,annotationId:u}}e.insert=i;function t(a,s){return{range:a,newText:"",annotationId:s}}e.del=t;function r(a){var s=a;return L.is(s)&&(j.is(s.annotationId)||w.is(s.annotationId))}e.is=r})(P||(P={}));var G;(function(e){function n(t,r){return{textDocument:t,edits:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&Q.is(r.textDocument)&&Array.isArray(r.edits)}e.is=i})(G||(G={}));var H;(function(e){function n(t,r,a){var s={kind:"create",uri:t};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(s.options=r),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(t){var r=t;return r&&r.kind==="create"&&o.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||o.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||o.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||w.is(r.annotationId))}e.is=i})(H||(H={}));var z;(function(e){function n(t,r,a,s){var u={kind:"rename",oldUri:t,newUri:r};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),s!==void 0&&(u.annotationId=s),u}e.create=n;function i(t){var r=t;return r&&r.kind==="rename"&&o.string(r.oldUri)&&o.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||o.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||o.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||w.is(r.annotationId))}e.is=i})(z||(z={}));var B;(function(e){function n(t,r,a){var s={kind:"delete",uri:t};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(s.options=r),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(t){var r=t;return r&&r.kind==="delete"&&o.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||o.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||o.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||w.is(r.annotationId))}e.is=i})(B||(B={}));var ie;(function(e){function n(i){var t=i;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(function(r){return o.string(r.kind)?H.is(r)||z.is(r)||B.is(r):G.is(r)}))}e.is=n})(ie||(ie={}));var J=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,t){var r,a;if(t===void 0?r=L.insert(n,i):w.is(t)?(a=t,r=P.insert(n,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),r=P.insert(n,i,a)),this.edits.push(r),a!==void 0)return a},e.prototype.replace=function(n,i,t){var r,a;if(t===void 0?r=L.replace(n,i):w.is(t)?(a=t,r=P.replace(n,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),r=P.replace(n,i,a)),this.edits.push(r),a!==void 0)return a},e.prototype.delete=function(n,i){var t,r;if(i===void 0?t=L.del(n):w.is(i)?(r=i,t=P.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(i),t=P.del(n,r)),this.edits.push(t),r!==void 0)return r},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),he=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var t;if(w.is(n)?t=n:(t=this.nextId(),i=n),this._annotations[t]!==void 0)throw new Error("Id "+t+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+t);return this._annotations[t]=i,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new he(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(t){if(G.is(t)){var r=new J(t.edits,i._changeAnnotations);i._textEditChanges[t.textDocument.uri]=r}})):n.changes&&Object.keys(n.changes).forEach(function(t){var r=new J(n.changes[t]);i._textEditChanges[t]=r})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(Q.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},t=this._textEditChanges[i.uri];if(!t){var r=[],a={textDocument:i,edits:r};this._workspaceEdit.documentChanges.push(a),t=new J(r,this._changeAnnotations),this._textEditChanges[i.uri]=t}return t}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var t=this._textEditChanges[n];if(!t){var r=[];this._workspaceEdit.changes[n]=r,t=new J(r),this._textEditChanges[n]=t}return t}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new he,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;j.is(i)||w.is(i)?r=i:t=i;var a,s;if(r===void 0?a=H.create(n,t):(s=w.is(r)?r:this._changeAnnotations.manage(r),a=H.create(n,t,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e.prototype.renameFile=function(n,i,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;j.is(t)||w.is(t)?a=t:r=t;var s,u;if(a===void 0?s=z.create(n,i,r):(u=w.is(a)?a:this._changeAnnotations.manage(a),s=z.create(n,i,r,u)),this._workspaceEdit.documentChanges.push(s),u!==void 0)return u},e.prototype.deleteFile=function(n,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;j.is(i)||w.is(i)?r=i:t=i;var a,s;if(r===void 0?a=B.create(n,t):(s=w.is(r)?r:this._changeAnnotations.manage(r),a=B.create(n,t,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e})();var ve;(function(e){function n(t){return{uri:t}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.uri)}e.is=i})(ve||(ve={}));var pe;(function(e){function n(t,r){return{uri:t,version:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.uri)&&o.integer(r.version)}e.is=i})(pe||(pe={}));var Q;(function(e){function n(t,r){return{uri:t,version:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.uri)&&(r.version===null||o.integer(r.version))}e.is=i})(Q||(Q={}));var me;(function(e){function n(t,r,a,s){return{uri:t,languageId:r,version:a,text:s}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.uri)&&o.string(r.languageId)&&o.integer(r.version)&&o.string(r.text)}e.is=i})(me||(me={}));var q;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(q||(q={}));(function(e){function n(i){var t=i;return t===e.PlainText||t===e.Markdown}e.is=n})(q||(q={}));var ae;(function(e){function n(i){var t=i;return o.objectLiteral(i)&&q.is(t.kind)&&o.string(t.value)}e.is=n})(ae||(ae={}));var p;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(p||(p={}));var se;(function(e){e.PlainText=1,e.Snippet=2})(se||(se={}));var _e;(function(e){e.Deprecated=1})(_e||(_e={}));var ke;(function(e){function n(t,r,a){return{newText:t,insert:r,replace:a}}e.create=n;function i(t){var r=t;return r&&o.string(r.newText)&&_.is(r.insert)&&_.is(r.replace)}e.is=i})(ke||(ke={}));var we;(function(e){e.asIs=1,e.adjustIndentation=2})(we||(we={}));var be;(function(e){function n(i){return{label:i}}e.create=n})(be||(be={}));var Ce;(function(e){function n(i,t){return{items:i||[],isIncomplete:!!t}}e.create=n})(Ce||(Ce={}));var Z;(function(e){function n(t){return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(t){var r=t;return o.string(r)||o.objectLiteral(r)&&o.string(r.language)&&o.string(r.value)}e.is=i})(Z||(Z={}));var Ee;(function(e){function n(i){var t=i;return!!t&&o.objectLiteral(t)&&(ae.is(t.contents)||Z.is(t.contents)||o.typedArray(t.contents,Z.is))&&(i.range===void 0||_.is(i.range))}e.is=n})(Ee||(Ee={}));var Ae;(function(e){function n(i,t){return t?{label:i,documentation:t}:{label:i}}e.create=n})(Ae||(Ae={}));var Se;(function(e){function n(i,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];var s={label:i};return o.defined(t)&&(s.documentation=t),o.defined(r)?s.parameters=r:s.parameters=[],s}e.create=n})(Se||(Se={}));var U;(function(e){e.Text=1,e.Read=2,e.Write=3})(U||(U={}));var ye;(function(e){function n(i,t){var r={range:i};return o.number(t)&&(r.kind=t),r}e.create=n})(ye||(ye={}));var m;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(m||(m={}));var Ie;(function(e){e.Deprecated=1})(Ie||(Ie={}));var Te;(function(e){function n(i,t,r,a,s){var u={name:i,kind:t,location:{uri:a,range:r}};return s&&(u.containerName=s),u}e.create=n})(Te||(Te={}));var Pe;(function(e){function n(t,r,a,s,u,c){var d={name:t,detail:r,kind:a,range:s,selectionRange:u};return c!==void 0&&(d.children=c),d}e.create=n;function i(t){var r=t;return r&&o.string(r.name)&&o.number(r.kind)&&_.is(r.range)&&_.is(r.selectionRange)&&(r.detail===void 0||o.string(r.detail))&&(r.deprecated===void 0||o.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}e.is=i})(Pe||(Pe={}));var Le;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Le||(Le={}));var Me;(function(e){function n(t,r){var a={diagnostics:t};return r!=null&&(a.only=r),a}e.create=n;function i(t){var r=t;return o.defined(r)&&o.typedArray(r.diagnostics,$.is)&&(r.only===void 0||o.typedArray(r.only,o.string))}e.is=i})(Me||(Me={}));var Re;(function(e){function n(t,r,a){var s={title:t},u=!0;return typeof r=="string"?(u=!1,s.kind=r):V.is(r)?s.command=r:s.edit=r,u&&a!==void 0&&(s.kind=a),s}e.create=n;function i(t){var r=t;return r&&o.string(r.title)&&(r.diagnostics===void 0||o.typedArray(r.diagnostics,$.is))&&(r.kind===void 0||o.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||V.is(r.command))&&(r.isPreferred===void 0||o.boolean(r.isPreferred))&&(r.edit===void 0||ie.is(r.edit))}e.is=i})(Re||(Re={}));var De;(function(e){function n(t,r){var a={range:t};return o.defined(r)&&(a.data=r),a}e.create=n;function i(t){var r=t;return o.defined(r)&&_.is(r.range)&&(o.undefined(r.command)||V.is(r.command))}e.is=i})(De||(De={}));var Ne;(function(e){function n(t,r){return{tabSize:t,insertSpaces:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.uinteger(r.tabSize)&&o.boolean(r.insertSpaces)}e.is=i})(Ne||(Ne={}));var Oe;(function(e){function n(t,r,a){return{range:t,target:r,data:a}}e.create=n;function i(t){var r=t;return o.defined(r)&&_.is(r.range)&&(o.undefined(r.target)||o.string(r.target))}e.is=i})(Oe||(Oe={}));var je;(function(e){function n(t,r){return{range:t,parent:r}}e.create=n;function i(t){var r=t;return r!==void 0&&_.is(r.range)&&(r.parent===void 0||e.is(r.parent))}e.is=i})(je||(je={}));var xe;(function(e){function n(a,s,u,c){return new ar(a,s,u,c)}e.create=n;function i(a){var s=a;return!!(o.defined(s)&&o.string(s.uri)&&(o.undefined(s.languageId)||o.string(s.languageId))&&o.uinteger(s.lineCount)&&o.func(s.getText)&&o.func(s.positionAt)&&o.func(s.offsetAt))}e.is=i;function t(a,s){for(var u=a.getText(),c=r(s,function(I,R){var x=I.range.start.line-R.range.start.line;return x===0?I.range.start.character-R.range.start.character:x}),d=u.length,v=c.length-1;v>=0;v--){var g=c[v],b=a.offsetAt(g.range.start),h=a.offsetAt(g.range.end);if(h<=d)u=u.substring(0,b)+g.newText+u.substring(h,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=t;function r(a,s){if(a.length<=1)return a;var u=a.length/2|0,c=a.slice(0,u),d=a.slice(u);r(c,s),r(d,s);for(var v=0,g=0,b=0;v<c.length&&g<d.length;){var h=s(c[v],d[g]);h<=0?a[b++]=c[v++]:a[b++]=d[g++]}for(;v<c.length;)a[b++]=c[v++];for(;g<d.length;)a[b++]=d[g++];return a}})(xe||(xe={}));var ar=function(){function e(n,i,t,r){this._uri=n,this._languageId=i,this._version=t,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(n){if(n){var i=this.offsetAt(n.start),t=this.offsetAt(n.end);return this._content.substring(i,t)}return this._content},e.prototype.update=function(n,i){this._content=n.text,this._version=i,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var n=[],i=this._content,t=!0,r=0;r<i.length;r++){t&&(n.push(r),t=!1);var a=i.charAt(r);t=a==="\r"||a===`
|
|
`,a==="\r"&&r+1<i.length&&i.charAt(r+1)===`
|
|
`&&r++}t&&i.length>0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),t=0,r=i.length;if(r===0)return T.create(0,n);for(;t<r;){var a=Math.floor((t+r)/2);i[a]>n?r=a:t=a+1}var s=t-1;return T.create(s,n-i[s])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var t=i[n.line],r=n.line+1<i.length?i[n.line+1]:this._content.length;return Math.max(Math.min(t+n.character,r),t)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),o;(function(e){var n=Object.prototype.toString;function i(h){return typeof h!="undefined"}e.defined=i;function t(h){return typeof h=="undefined"}e.undefined=t;function r(h){return h===!0||h===!1}e.boolean=r;function a(h){return n.call(h)==="[object String]"}e.string=a;function s(h){return n.call(h)==="[object Number]"}e.number=s;function u(h,I,R){return n.call(h)==="[object Number]"&&I<=h&&h<=R}e.numberRange=u;function c(h){return n.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}e.integer=c;function d(h){return n.call(h)==="[object Number]"&&0<=h&&h<=2147483647}e.uinteger=d;function v(h){return n.call(h)==="[object Function]"}e.func=v;function g(h){return h!==null&&typeof h=="object"}e.objectLiteral=g;function b(h,I){return Array.isArray(h)&&h.every(I)}e.typedArray=b})(o||(o={}));var sr=class{constructor(e,n,i){A(this,"_disposables",[]);A(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const t=a=>{let s=a.getLanguageId();if(s!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,s),500)}),this._doValidate(a.uri,s)},r=a=>{l.editor.setModelMarkers(a,this._languageId,[]);let s=a.uri.toString(),u=this._listener[s];u&&(u.dispose(),delete this._listener[s])};this._disposables.push(l.editor.onDidCreateModel(t)),this._disposables.push(l.editor.onWillDisposeModel(r)),this._disposables.push(l.editor.onDidChangeModelLanguage(a=>{r(a.model),t(a.model)})),this._disposables.push(i(a=>{l.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(r(s),t(s))})})),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(r);for(let a in this._listener)this._listener[a].dispose()}}),l.editor.getModels().forEach(t)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const t=i.map(a=>ur(e,a));let r=l.editor.getModel(e);r&&r.getLanguageId()===n&&l.editor.setModelMarkers(r,n,t)}).then(void 0,i=>{console.error(i)})}};function or(e){switch(e){case N.Error:return l.MarkerSeverity.Error;case N.Warning:return l.MarkerSeverity.Warning;case N.Information:return l.MarkerSeverity.Info;case N.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}function ur(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:or(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var cr=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,t){const r=e.uri;return this._worker(r).then(a=>a.doComplete(r.toString(),M(n))).then(a=>{if(!a)return;const s=e.getWordUntilPosition(n),u=new l.Range(n.lineNumber,s.startColumn,n.lineNumber,s.endColumn),c=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:lr(d.command),range:u,kind:fr(d.kind)};return d.textEdit&&(dr(d.textEdit)?v.range={insert:S(d.textEdit.insert),replace:S(d.textEdit.replace)}:v.range=S(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(X)),d.insertTextFormat===se.Snippet&&(v.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:c}})}};function M(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ze(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function S(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function dr(e){return typeof e.insert!="undefined"&&typeof e.replace!="undefined"}function fr(e){const n=l.languages.CompletionItemKind;switch(e){case p.Text:return n.Text;case p.Method:return n.Method;case p.Function:return n.Function;case p.Constructor:return n.Constructor;case p.Field:return n.Field;case p.Variable:return n.Variable;case p.Class:return n.Class;case p.Interface:return n.Interface;case p.Module:return n.Module;case p.Property:return n.Property;case p.Unit:return n.Unit;case p.Value:return n.Value;case p.Enum:return n.Enum;case p.Keyword:return n.Keyword;case p.Snippet:return n.Snippet;case p.Color:return n.Color;case p.File:return n.File;case p.Reference:return n.Reference}return n.Property}function X(e){if(e)return{range:S(e.range),text:e.newText}}function lr(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var gr=class{constructor(e){this._worker=e}provideHover(e,n,i){let t=e.uri;return this._worker(t).then(r=>r.doHover(t.toString(),M(n))).then(r=>{if(r)return{range:S(r.range),contents:vr(r.contents)}})}};function hr(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Fe(e){return typeof e=="string"?{value:e}:hr(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+`
|
|
`+e.value+"\n```\n"}}function vr(e){if(e)return Array.isArray(e)?e.map(Fe):[Fe(e)]}var qr=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const t=e.uri;return this._worker(t).then(r=>r.findDocumentHighlights(t.toString(),M(n))).then(r=>{if(r)return r.map(a=>({range:S(a.range),kind:pr(a.kind)}))})}};function pr(e){switch(e){case U.Read:return l.languages.DocumentHighlightKind.Read;case U.Write:return l.languages.DocumentHighlightKind.Write;case U.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Xr=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const t=e.uri;return this._worker(t).then(r=>r.findDefinition(t.toString(),M(n))).then(r=>{if(r)return[Be(r)]})}};function Be(e){return{uri:l.Uri.parse(e.uri),range:S(e.range)}}var Jr=class{constructor(e){this._worker=e}provideReferences(e,n,i,t){const r=e.uri;return this._worker(r).then(a=>a.findReferences(r.toString(),M(n))).then(a=>{if(a)return a.map(Be)})}},Yr=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,t){const r=e.uri;return this._worker(r).then(a=>a.doRename(r.toString(),M(n),i)).then(a=>mr(a))}};function mr(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const t=l.Uri.parse(i);for(let r of e.changes[i])n.push({resource:t,edit:{range:S(r.range),text:r.newText}})}return{edits:n}}var _r=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(t=>t.findDocumentSymbols(i.toString())).then(t=>{if(t)return t.map(r=>({name:r.name,detail:"",containerName:r.containerName,kind:kr(r.kind),range:S(r.location.range),selectionRange:S(r.location.range),tags:[]}))})}};function kr(e){let n=l.languages.SymbolKind;switch(e){case m.File:return n.Array;case m.Module:return n.Module;case m.Namespace:return n.Namespace;case m.Package:return n.Package;case m.Class:return n.Class;case m.Method:return n.Method;case m.Property:return n.Property;case m.Field:return n.Field;case m.Constructor:return n.Constructor;case m.Enum:return n.Enum;case m.Interface:return n.Interface;case m.Function:return n.Function;case m.Variable:return n.Variable;case m.Constant:return n.Constant;case m.String:return n.String;case m.Number:return n.Number;case m.Boolean:return n.Boolean;case m.Array:return n.Array}return n.Function}var $r=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(t=>t.findDocumentLinks(i.toString())).then(t=>{if(t)return{links:t.map(r=>({range:S(r.range),url:r.target}))}})}},wr=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const t=e.uri;return this._worker(t).then(r=>r.format(t.toString(),null,qe(n)).then(a=>{if(!(!a||a.length===0))return a.map(X)}))}},br=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,t){const r=e.uri;return this._worker(r).then(a=>a.format(r.toString(),ze(n),qe(i)).then(s=>{if(!(!s||s.length===0))return s.map(X)}))}};function qe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Cr=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(t=>t.findDocumentColors(i.toString())).then(t=>{if(t)return t.map(r=>({color:r.color,range:S(r.range)}))})}provideColorPresentations(e,n,i){const t=e.uri;return this._worker(t).then(r=>r.getColorPresentations(t.toString(),n.color,ze(n.range))).then(r=>{if(r)return r.map(a=>{let s={label:a.label};return a.textEdit&&(s.textEdit=X(a.textEdit)),a.additionalTextEdits&&(s.additionalTextEdits=a.additionalTextEdits.map(X)),s})})}},Er=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const t=e.uri;return this._worker(t).then(r=>r.getFoldingRanges(t.toString(),n)).then(r=>{if(r)return r.map(a=>{const s={start:a.startLine+1,end:a.endLine+1};return typeof a.kind!="undefined"&&(s.kind=Ar(a.kind)),s})})}};function Ar(e){switch(e){case W.Comment:return l.languages.FoldingRangeKind.Comment;case W.Imports:return l.languages.FoldingRangeKind.Imports;case W.Region:return l.languages.FoldingRangeKind.Region}}var Sr=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const t=e.uri;return this._worker(t).then(r=>r.getSelectionRanges(t.toString(),n.map(M))).then(r=>{if(r)return r.map(a=>{const s=[];for(;a;)s.push({range:S(a.range)}),a=a.parent;return s})})}};function yr(e,n){n===void 0&&(n=!1);var i=e.length,t=0,r="",a=0,s=16,u=0,c=0,d=0,v=0,g=0;function b(f,C){for(var y=0,E=0;y<f||!C;){var k=e.charCodeAt(t);if(k>=48&&k<=57)E=E*16+k-48;else if(k>=65&&k<=70)E=E*16+k-65+10;else if(k>=97&&k<=102)E=E*16+k-97+10;else break;t++,y++}return y<f&&(E=-1),E}function h(f){t=f,r="",a=0,s=16,g=0}function I(){var f=t;if(e.charCodeAt(t)===48)t++;else for(t++;t<e.length&&D(e.charCodeAt(t));)t++;if(t<e.length&&e.charCodeAt(t)===46)if(t++,t<e.length&&D(e.charCodeAt(t)))for(t++;t<e.length&&D(e.charCodeAt(t));)t++;else return g=3,e.substring(f,t);var C=t;if(t<e.length&&(e.charCodeAt(t)===69||e.charCodeAt(t)===101))if(t++,(t<e.length&&e.charCodeAt(t)===43||e.charCodeAt(t)===45)&&t++,t<e.length&&D(e.charCodeAt(t))){for(t++;t<e.length&&D(e.charCodeAt(t));)t++;C=t}else g=3;return e.substring(f,C)}function R(){for(var f="",C=t;;){if(t>=i){f+=e.substring(C,t),g=2;break}var y=e.charCodeAt(t);if(y===34){f+=e.substring(C,t),t++;break}if(y===92){if(f+=e.substring(C,t),t++,t>=i){g=2;break}var E=e.charCodeAt(t++);switch(E){case 34:f+='"';break;case 92:f+="\\";break;case 47:f+="/";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+=`
|
|
`;break;case 114:f+="\r";break;case 116:f+=" ";break;case 117:var k=b(4,!0);k>=0?f+=String.fromCharCode(k):g=4;break;default:g=5}C=t;continue}if(y>=0&&y<=31)if(F(y)){f+=e.substring(C,t),g=2;break}else g=6;t++}return f}function x(){if(r="",g=0,a=t,c=u,v=d,t>=i)return a=i,s=17;var f=e.charCodeAt(t);if(ee(f)){do t++,r+=String.fromCharCode(f),f=e.charCodeAt(t);while(ee(f));return s=15}if(F(f))return t++,r+=String.fromCharCode(f),f===13&&e.charCodeAt(t)===10&&(t++,r+=`
|
|
`),u++,d=t,s=14;switch(f){case 123:return t++,s=1;case 125:return t++,s=2;case 91:return t++,s=3;case 93:return t++,s=4;case 58:return t++,s=6;case 44:return t++,s=5;case 34:return t++,r=R(),s=10;case 47:var C=t-1;if(e.charCodeAt(t+1)===47){for(t+=2;t<i&&!F(e.charCodeAt(t));)t++;return r=e.substring(C,t),s=12}if(e.charCodeAt(t+1)===42){t+=2;for(var y=i-1,E=!1;t<y;){var k=e.charCodeAt(t);if(k===42&&e.charCodeAt(t+1)===47){t+=2,E=!0;break}t++,F(k)&&(k===13&&e.charCodeAt(t)===10&&t++,u++,d=t)}return E||(t++,g=1),r=e.substring(C,t),s=13}return r+=String.fromCharCode(f),t++,s=16;case 45:if(r+=String.fromCharCode(f),t++,t===i||!D(e.charCodeAt(t)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r+=I(),s=11;default:for(;t<i&&Je(f);)t++,f=e.charCodeAt(t);if(a!==t){switch(r=e.substring(a,t),r){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return r+=String.fromCharCode(f),t++,s=16}}function Je(f){if(ee(f)||F(f))return!1;switch(f){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Ye(){var f;do f=x();while(f>=12&&f<=15);return f}return{setPosition:h,getPosition:function(){return t},scan:n?Ye:x,getToken:function(){return s},getTokenValue:function(){return r},getTokenOffset:function(){return a},getTokenLength:function(){return t-a},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return a-v},getTokenError:function(){return g}}}function ee(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function F(e){return e===10||e===13||e===8232||e===8233}function D(e){return e>=48&&e<=57}var We;(function(e){e.DEFAULT={allowTrailingComma:!1}})(We||(We={}));var Ir=yr;function Tr(e){return{getInitialState:()=>new K(null,null,!1,null),tokenize:(n,i)=>Fr(e,n,i)}}var Ue="delimiter.bracket.json",Ve="delimiter.array.json",Pr="delimiter.colon.json",Lr="delimiter.comma.json",Mr="keyword.json",Rr="keyword.json",Dr="string.value.json",Nr="number.json",Or="string.key.json",jr="comment.block.json",xr="comment.line.json",O=class{constructor(e,n){this.parent=e,this.type=n}static pop(e){return e?e.parent:null}static push(e,n){return new O(e,n)}static equals(e,n){if(!e&&!n)return!0;if(!e||!n)return!1;for(;e&&n;){if(e===n)return!0;if(e.type!==n.type)return!1;e=e.parent,n=n.parent}return!0}},K=class{constructor(e,n,i,t){A(this,"_state");A(this,"scanError");A(this,"lastWasColon");A(this,"parents");this._state=e,this.scanError=n,this.lastWasColon=i,this.parents=t}clone(){return new K(this._state,this.scanError,this.lastWasColon,this.parents)}equals(e){return e===this?!0:!e||!(e instanceof K)?!1:this.scanError===e.scanError&&this.lastWasColon===e.lastWasColon&&O.equals(this.parents,e.parents)}getStateData(){return this._state}setStateData(e){this._state=e}};function Fr(e,n,i,t=0){let r=0,a=!1;switch(i.scanError){case 2:n='"'+n,r=1;break;case 1:n="/*"+n,r=2;break}const s=Ir(n);let u=i.lastWasColon,c=i.parents;const d={tokens:[],endState:i.clone()};for(;;){let v=t+s.getPosition(),g="";const b=s.scan();if(b===17)break;if(v===t+s.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+n.substr(s.getPosition(),3));switch(a&&(v-=r),a=r>0,b){case 1:c=O.push(c,0),g=Ue,u=!1;break;case 2:c=O.pop(c),g=Ue,u=!1;break;case 3:c=O.push(c,1),g=Ve,u=!1;break;case 4:c=O.pop(c),g=Ve,u=!1;break;case 6:g=Pr,u=!0;break;case 5:g=Lr,u=!1;break;case 8:case 9:g=Mr,u=!1;break;case 7:g=Rr,u=!1;break;case 10:const I=(c?c.type:0)===1;g=u||I?Dr:Or,u=!1;break;case 11:g=Nr,u=!1;break}if(e)switch(b){case 12:g=xr;break;case 13:g=jr;break}d.endState=new K(i.getStateData(),s.getTokenError(),u,c),d.tokens.push({startIndex:v,scopes:g})}return d}var Wr=class extends sr{constructor(e,n,i){super(e,n,i.onDidChange),this._disposables.push(l.editor.onWillDisposeModel(t=>{this._resetSchema(t.uri)})),this._disposables.push(l.editor.onDidChangeModelLanguage(t=>{this._resetSchema(t.model.uri)}))}_resetSchema(e){this._worker().then(n=>{n.resetSchema(e.toString())})}};function Gr(e){const n=[],i=[],t=new ir(e);n.push(t);const r=(...u)=>t.getLanguageServiceWorker(...u);function a(){const{languageId:u,modeConfiguration:c}=e;Xe(i),c.documentFormattingEdits&&i.push(l.languages.registerDocumentFormattingEditProvider(u,new wr(r))),c.documentRangeFormattingEdits&&i.push(l.languages.registerDocumentRangeFormattingEditProvider(u,new br(r))),c.completionItems&&i.push(l.languages.registerCompletionItemProvider(u,new cr(r,[" ",":",'"']))),c.hovers&&i.push(l.languages.registerHoverProvider(u,new gr(r))),c.documentSymbols&&i.push(l.languages.registerDocumentSymbolProvider(u,new _r(r))),c.tokens&&i.push(l.languages.setTokensProvider(u,Tr(!0))),c.colors&&i.push(l.languages.registerColorProvider(u,new Cr(r))),c.foldingRanges&&i.push(l.languages.registerFoldingRangeProvider(u,new Er(r))),c.diagnostics&&i.push(new Wr(u,r,e)),c.selectionRanges&&i.push(l.languages.registerSelectionRangeProvider(u,new Sr(r)))}a(),n.push(l.languages.setLanguageConfiguration(e.languageId,Ur));let s=e.modeConfiguration;return e.onDidChange(u=>{u.modeConfiguration!==s&&(s=u.modeConfiguration,a())}),n.push(He(i)),He(n)}function He(e){return{dispose:()=>Xe(e)}}function Xe(e){for(;e.length;)e.pop().dispose()}var Ur={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};export{cr as CompletionAdapter,Xr as DefinitionAdapter,sr as DiagnosticsAdapter,Cr as DocumentColorAdapter,wr as DocumentFormattingEditProvider,qr as DocumentHighlightAdapter,$r as DocumentLinkAdapter,br as DocumentRangeFormattingEditProvider,_r as DocumentSymbolAdapter,Er as FoldingRangeAdapter,gr as HoverAdapter,Jr as ReferenceAdapter,Yr as RenameAdapter,Sr as SelectionRangeAdapter,ir as WorkerManager,M as fromPosition,ze as fromRange,Gr as setupMode,S as toRange,X as toTextEdit};
|