@coderline/alphatab-monaco 1.7.0-alpha.1626 → 1.7.0-alpha.1628
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.
- package/dist/alphaTab.monaco.d.ts +2 -40
- package/dist/alphaTab.monaco.mjs +3 -2
- package/dist/alphatex.mjs +27 -0
- package/{src/lsp.ts → dist/lsp.mjs} +42 -112
- package/{src/lspMonacoMappings.ts → dist/lspMonacoMappings.mjs} +80 -136
- package/{src/textmate.ts → dist/textmate.mjs} +26 -22
- package/dist/{alphaTab.monaco.min.mjs → types.mjs} +2 -2
- package/dist/worker.mjs +6097 -0
- package/package.json +11 -3
- package/biome.jsonc +0 -31
- package/dist/abap.mjs +0 -1419
- package/dist/alphaTab.monaco2.mjs +0 -205141
- package/dist/alphatab-monaco.css +0 -7100
- package/dist/apex.mjs +0 -351
- package/dist/azcli.mjs +0 -89
- package/dist/bat.mjs +0 -121
- package/dist/bicep.mjs +0 -130
- package/dist/cameligo.mjs +0 -195
- package/dist/clojure.mjs +0 -782
- package/dist/coffee.mjs +0 -253
- package/dist/cpp.mjs +0 -410
- package/dist/csharp.mjs +0 -347
- package/dist/csp.mjs +0 -74
- package/dist/css.mjs +0 -206
- package/dist/cssMode.mjs +0 -2106
- package/dist/cypher.mjs +0 -284
- package/dist/dart.mjs +0 -302
- package/dist/dockerfile.mjs +0 -151
- package/dist/ecl.mjs +0 -477
- package/dist/elixir.mjs +0 -590
- package/dist/flow9.mjs +0 -163
- package/dist/freemarker2.mjs +0 -1029
- package/dist/fsharp.mjs +0 -238
- package/dist/go.mjs +0 -239
- package/dist/graphql.mjs +0 -172
- package/dist/handlebars.mjs +0 -452
- package/dist/hcl.mjs +0 -204
- package/dist/html.mjs +0 -341
- package/dist/htmlMode.mjs +0 -2121
- package/dist/ini.mjs +0 -92
- package/dist/java.mjs +0 -253
- package/dist/javascript.mjs +0 -90
- package/dist/jsonMode.mjs +0 -2830
- package/dist/julia.mjs +0 -532
- package/dist/kotlin.mjs +0 -274
- package/dist/less.mjs +0 -182
- package/dist/lexon.mjs +0 -178
- package/dist/liquid.mjs +0 -273
- package/dist/lua.mjs +0 -183
- package/dist/m3.mjs +0 -231
- package/dist/markdown.mjs +0 -250
- package/dist/mdx.mjs +0 -197
- package/dist/mips.mjs +0 -219
- package/dist/msdax.mjs +0 -396
- package/dist/mysql.mjs +0 -899
- package/dist/objective-c.mjs +0 -204
- package/dist/pascal.mjs +0 -272
- package/dist/pascaligo.mjs +0 -185
- package/dist/perl.mjs +0 -647
- package/dist/pgsql.mjs +0 -872
- package/dist/php.mjs +0 -521
- package/dist/pla.mjs +0 -158
- package/dist/postiats.mjs +0 -928
- package/dist/powerquery.mjs +0 -911
- package/dist/powershell.mjs +0 -260
- package/dist/protobuf.mjs +0 -441
- package/dist/pug.mjs +0 -423
- package/dist/python.mjs +0 -333
- package/dist/qsharp.mjs +0 -322
- package/dist/r.mjs +0 -264
- package/dist/razor.mjs +0 -583
- package/dist/redis.mjs +0 -323
- package/dist/redshift.mjs +0 -830
- package/dist/restructuredtext.mjs +0 -195
- package/dist/ruby.mjs +0 -532
- package/dist/rust.mjs +0 -364
- package/dist/sb.mjs +0 -136
- package/dist/scala.mjs +0 -391
- package/dist/scheme.mjs +0 -129
- package/dist/scss.mjs +0 -281
- package/dist/shell.mjs +0 -242
- package/dist/solidity.mjs +0 -1388
- package/dist/sophia.mjs +0 -220
- package/dist/sparql.mjs +0 -222
- package/dist/sql.mjs +0 -874
- package/dist/st.mjs +0 -437
- package/dist/swift.mjs +0 -333
- package/dist/systemverilog.mjs +0 -597
- package/dist/tcl.mjs +0 -253
- package/dist/tsMode.mjs +0 -1384
- package/dist/twig.mjs +0 -413
- package/dist/types/alphatab/src/AlphaTabApiBase.d.ts +0 -2550
- package/dist/types/alphatab/src/AlphaTabError.d.ts +0 -15
- package/dist/types/alphatab/src/CoreSettings.d.ts +0 -212
- package/dist/types/alphatab/src/DisplaySettings.d.ts +0 -340
- package/dist/types/alphatab/src/EngravingSettings.d.ts +0 -430
- package/dist/types/alphatab/src/Environment.d.ts +0 -230
- package/dist/types/alphatab/src/EventEmitter.d.ts +0 -62
- package/dist/types/alphatab/src/ExporterSettings.d.ts +0 -23
- package/dist/types/alphatab/src/FileLoadError.d.ts +0 -9
- package/dist/types/alphatab/src/FormatError.d.ts +0 -8
- package/dist/types/alphatab/src/ImporterSettings.d.ts +0 -64
- package/dist/types/alphatab/src/LayoutMode.d.ts +0 -14
- package/dist/types/alphatab/src/LogLevel.d.ts +0 -27
- package/dist/types/alphatab/src/Logger.d.ts +0 -33
- package/dist/types/alphatab/src/NotationSettings.d.ts +0 -509
- package/dist/types/alphatab/src/PlayerSettings.d.ts +0 -411
- package/dist/types/alphatab/src/ProgressEventArgs.d.ts +0 -20
- package/dist/types/alphatab/src/RenderingResources.d.ts +0 -175
- package/dist/types/alphatab/src/ResizeEventArgs.d.ts +0 -19
- package/dist/types/alphatab/src/Settings.d.ts +0 -59
- package/dist/types/alphatab/src/SmuflMetadata.d.ts +0 -84
- package/dist/types/alphatab/src/StaveProfile.d.ts +0 -27
- package/dist/types/alphatab/src/alphaTab.core.d.ts +0 -36
- package/dist/types/alphatab/src/alphaTab.main.d.ts +0 -1
- package/dist/types/alphatab/src/alphaTab.polyfills.d.ts +0 -1
- package/dist/types/alphatab/src/exporter/AlphaTexExporter.d.ts +0 -24
- package/dist/types/alphatab/src/exporter/Gp7Exporter.d.ts +0 -10
- package/dist/types/alphatab/src/exporter/GpifWriter.d.ts +0 -61
- package/dist/types/alphatab/src/exporter/ScoreExporter.d.ts +0 -29
- package/dist/types/alphatab/src/exporter/_barrel.d.ts +0 -3
- package/dist/types/alphatab/src/generated/CoreSettingsJson.d.ts +0 -172
- package/dist/types/alphatab/src/generated/CoreSettingsSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/DisplaySettingsJson.d.ts +0 -328
- package/dist/types/alphatab/src/generated/DisplaySettingsSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/EngravingSettingsCloner.d.ts +0 -7
- package/dist/types/alphatab/src/generated/EngravingSettingsJson.d.ts +0 -388
- package/dist/types/alphatab/src/generated/EngravingSettingsSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/EngravingStemInfoJson.d.ts +0 -20
- package/dist/types/alphatab/src/generated/EngravingStemInfoSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/ExporterSettingsJson.d.ts +0 -24
- package/dist/types/alphatab/src/generated/ExporterSettingsSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/ImporterSettingsJson.d.ts +0 -65
- package/dist/types/alphatab/src/generated/ImporterSettingsSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/NotationSettingsJson.d.ts +0 -210
- package/dist/types/alphatab/src/generated/NotationSettingsSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/PlayerSettingsJson.d.ts +0 -276
- package/dist/types/alphatab/src/generated/PlayerSettingsSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/RenderingResourcesJson.d.ts +0 -168
- package/dist/types/alphatab/src/generated/RenderingResourcesSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/SettingsJson.d.ts +0 -48
- package/dist/types/alphatab/src/generated/SettingsSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/SlidePlaybackSettingsJson.d.ts +0 -31
- package/dist/types/alphatab/src/generated/SlidePlaybackSettingsSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/VersionInfo.d.ts +0 -9
- package/dist/types/alphatab/src/generated/VibratoPlaybackSettingsJson.d.ts +0 -49
- package/dist/types/alphatab/src/generated/VibratoPlaybackSettingsSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/_jsonbarrel.d.ts +0 -14
- package/dist/types/alphatab/src/generated/model/AutomationCloner.d.ts +0 -7
- package/dist/types/alphatab/src/generated/model/AutomationSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/BackingTrackSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/BarSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/BarStyleSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/BeatCloner.d.ts +0 -7
- package/dist/types/alphatab/src/generated/model/BeatSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/BeatStyleSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/BendPointCloner.d.ts +0 -7
- package/dist/types/alphatab/src/generated/model/BendPointSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/ChordSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/FermataSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/HeaderFooterStyleSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/InstrumentArticulationSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/MasterBarSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/NoteCloner.d.ts +0 -7
- package/dist/types/alphatab/src/generated/model/NoteSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/NoteStyleSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/PlaybackInformationSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/RenderStylesheetSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/ScoreSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/ScoreStyleSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/SectionSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/StaffSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/SustainPedalMarkerSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/SyncPointDataCloner.d.ts +0 -7
- package/dist/types/alphatab/src/generated/model/SyncPointDataSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/TrackSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/TrackStyleSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/TuningSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/VoiceSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/generated/model/VoiceStyleSerializer.d.ts +0 -9
- package/dist/types/alphatab/src/importer/AlphaTexImporter.d.ts +0 -69
- package/dist/types/alphatab/src/importer/BinaryStylesheet.d.ts +0 -70
- package/dist/types/alphatab/src/importer/CapellaImporter.d.ts +0 -10
- package/dist/types/alphatab/src/importer/CapellaParser.d.ts +0 -75
- package/dist/types/alphatab/src/importer/Gp3To5Importer.d.ts +0 -95
- package/dist/types/alphatab/src/importer/Gp7To8Importer.d.ts +0 -10
- package/dist/types/alphatab/src/importer/GpifParser.d.ts +0 -131
- package/dist/types/alphatab/src/importer/GpxFileSystem.d.ts +0 -82
- package/dist/types/alphatab/src/importer/GpxImporter.d.ts +0 -10
- package/dist/types/alphatab/src/importer/LayoutConfiguration.d.ts +0 -38
- package/dist/types/alphatab/src/importer/MusicXmlImporter.d.ts +0 -128
- package/dist/types/alphatab/src/importer/PartConfiguration.d.ts +0 -27
- package/dist/types/alphatab/src/importer/ScoreImporter.d.ts +0 -22
- package/dist/types/alphatab/src/importer/ScoreLoader.d.ts +0 -32
- package/dist/types/alphatab/src/importer/UnsupportedFormatError.d.ts +0 -9
- package/dist/types/alphatab/src/importer/_barrel.d.ts +0 -5
- package/dist/types/alphatab/src/importer/alphaTex/ATNF.d.ts +0 -19
- package/dist/types/alphatab/src/importer/alphaTex/AlphaTex1EnumMappings.d.ts +0 -75
- package/dist/types/alphatab/src/importer/alphaTex/AlphaTex1LanguageDefinitions.d.ts +0 -39
- package/dist/types/alphatab/src/importer/alphaTex/AlphaTex1LanguageHandler.d.ts +0 -72
- package/dist/types/alphatab/src/importer/alphaTex/AlphaTex1MetaDataReader.d.ts +0 -42
- package/dist/types/alphatab/src/importer/alphaTex/AlphaTexAst.d.ts +0 -504
- package/dist/types/alphatab/src/importer/alphaTex/AlphaTexLexer.d.ts +0 -43
- package/dist/types/alphatab/src/importer/alphaTex/AlphaTexParser.d.ts +0 -60
- package/dist/types/alphatab/src/importer/alphaTex/AlphaTexShared.d.ts +0 -290
- package/dist/types/alphatab/src/importer/alphaTex/IAlphaTexLanguageImportHandler.d.ts +0 -50
- package/dist/types/alphatab/src/importer/alphaTex/IAlphaTexMetaDataReader.d.ts +0 -12
- package/dist/types/alphatab/src/importer/alphaTex/_barrel.d.ts +0 -4
- package/dist/types/alphatab/src/io/BitReader.d.ts +0 -18
- package/dist/types/alphatab/src/io/ByteBuffer.d.ts +0 -26
- package/dist/types/alphatab/src/io/IOHelper.d.ts +0 -38
- package/dist/types/alphatab/src/io/IReadable.d.ts +0 -48
- package/dist/types/alphatab/src/io/IWriteable.d.ts +0 -22
- package/dist/types/alphatab/src/io/JsonHelper.d.ts +0 -26
- package/dist/types/alphatab/src/io/TypeConversions.d.ts +0 -20
- package/dist/types/alphatab/src/io/_barrel.d.ts +0 -4
- package/dist/types/alphatab/src/midi/AlphaSynthMidiFileHandler.d.ts +0 -28
- package/dist/types/alphatab/src/midi/BeatTickLookup.d.ts +0 -63
- package/dist/types/alphatab/src/midi/ControllerType.d.ts +0 -84
- package/dist/types/alphatab/src/midi/DeprecatedEvents.d.ts +0 -103
- package/dist/types/alphatab/src/midi/GeneralMidi.d.ts +0 -13
- package/dist/types/alphatab/src/midi/IMidiFileHandler.d.ts +0 -79
- package/dist/types/alphatab/src/midi/MasterBarTickLookup.d.ts +0 -85
- package/dist/types/alphatab/src/midi/MidiEvent.d.ts +0 -292
- package/dist/types/alphatab/src/midi/MidiFile.d.ts +0 -72
- package/dist/types/alphatab/src/midi/MidiFileGenerator.d.ts +0 -150
- package/dist/types/alphatab/src/midi/MidiPlaybackController.d.ts +0 -36
- package/dist/types/alphatab/src/midi/MidiTickLookup.d.ts +0 -167
- package/dist/types/alphatab/src/midi/MidiUtils.d.ts +0 -37
- package/dist/types/alphatab/src/midi/_barrel.d.ts +0 -10
- package/dist/types/alphatab/src/model/AccentuationType.d.ts +0 -22
- package/dist/types/alphatab/src/model/AccidentalType.d.ts +0 -42
- package/dist/types/alphatab/src/model/Automation.d.ts +0 -113
- package/dist/types/alphatab/src/model/BackingTrack.d.ts +0 -13
- package/dist/types/alphatab/src/model/Bar.d.ts +0 -329
- package/dist/types/alphatab/src/model/BarreShape.d.ts +0 -18
- package/dist/types/alphatab/src/model/Beat.d.ts +0 -559
- package/dist/types/alphatab/src/model/BendPoint.d.ts +0 -26
- package/dist/types/alphatab/src/model/BendStyle.d.ts +0 -18
- package/dist/types/alphatab/src/model/BendType.d.ts +0 -46
- package/dist/types/alphatab/src/model/BrushType.d.ts +0 -26
- package/dist/types/alphatab/src/model/Chord.d.ts +0 -48
- package/dist/types/alphatab/src/model/Clef.d.ts +0 -26
- package/dist/types/alphatab/src/model/Color.d.ts +0 -40
- package/dist/types/alphatab/src/model/CrescendoType.d.ts +0 -18
- package/dist/types/alphatab/src/model/Direction.d.ts +0 -25
- package/dist/types/alphatab/src/model/Duration.d.ts +0 -50
- package/dist/types/alphatab/src/model/DynamicValue.d.ts +0 -92
- package/dist/types/alphatab/src/model/ElementStyle.d.ts +0 -13
- package/dist/types/alphatab/src/model/FadeType.d.ts +0 -22
- package/dist/types/alphatab/src/model/Fermata.d.ts +0 -34
- package/dist/types/alphatab/src/model/Fingers.d.ts +0 -34
- package/dist/types/alphatab/src/model/Font.d.ts +0 -117
- package/dist/types/alphatab/src/model/GolpeType.d.ts +0 -18
- package/dist/types/alphatab/src/model/GraceGroup.d.ts +0 -26
- package/dist/types/alphatab/src/model/GraceType.d.ts +0 -22
- package/dist/types/alphatab/src/model/HarmonicType.d.ts +0 -34
- package/dist/types/alphatab/src/model/InstrumentArticulation.d.ts +0 -71
- package/dist/types/alphatab/src/model/JsonConverter.d.ts +0 -95
- package/dist/types/alphatab/src/model/KeySignature.d.ts +0 -66
- package/dist/types/alphatab/src/model/KeySignatureType.d.ts +0 -14
- package/dist/types/alphatab/src/model/Lyrics.d.ts +0 -30
- package/dist/types/alphatab/src/model/MasterBar.d.ts +0 -182
- package/dist/types/alphatab/src/model/ModelUtils.d.ts +0 -134
- package/dist/types/alphatab/src/model/MusicFontSymbol.d.ts +0 -289
- package/dist/types/alphatab/src/model/Note.d.ts +0 -516
- package/dist/types/alphatab/src/model/NoteAccidentalMode.d.ts +0 -34
- package/dist/types/alphatab/src/model/NoteOrnament.d.ts +0 -11
- package/dist/types/alphatab/src/model/Ottavia.d.ts +0 -26
- package/dist/types/alphatab/src/model/PercussionMapper.d.ts +0 -15
- package/dist/types/alphatab/src/model/PickStroke.d.ts +0 -18
- package/dist/types/alphatab/src/model/PlaybackInformation.d.ts +0 -45
- package/dist/types/alphatab/src/model/Rasgueado.d.ts +0 -25
- package/dist/types/alphatab/src/model/RenderStylesheet.d.ts +0 -135
- package/dist/types/alphatab/src/model/RepeatGroup.d.ts +0 -33
- package/dist/types/alphatab/src/model/Score.d.ts +0 -224
- package/dist/types/alphatab/src/model/Section.d.ts +0 -17
- package/dist/types/alphatab/src/model/SimileMark.d.ts +0 -24
- package/dist/types/alphatab/src/model/SlideInType.d.ts +0 -18
- package/dist/types/alphatab/src/model/SlideOutType.d.ts +0 -34
- package/dist/types/alphatab/src/model/Staff.d.ts +0 -100
- package/dist/types/alphatab/src/model/Track.d.ts +0 -124
- package/dist/types/alphatab/src/model/TripletFeel.d.ts +0 -34
- package/dist/types/alphatab/src/model/Tuning.d.ts +0 -60
- package/dist/types/alphatab/src/model/TupletGroup.d.ts +0 -37
- package/dist/types/alphatab/src/model/VibratoType.d.ts +0 -18
- package/dist/types/alphatab/src/model/Voice.d.ts +0 -81
- package/dist/types/alphatab/src/model/WahPedal.d.ts +0 -9
- package/dist/types/alphatab/src/model/WhammyType.d.ts +0 -36
- package/dist/types/alphatab/src/model/_barrel.d.ts +0 -57
- package/dist/types/alphatab/src/platform/Cursors.d.ts +0 -31
- package/dist/types/alphatab/src/platform/ICanvas.d.ts +0 -102
- package/dist/types/alphatab/src/platform/IContainer.d.ts +0 -71
- package/dist/types/alphatab/src/platform/IMouseEventArgs.d.ts +0 -27
- package/dist/types/alphatab/src/platform/IUiFacade.d.ts +0 -175
- package/dist/types/alphatab/src/platform/_barrel.d.ts +0 -8
- package/dist/types/alphatab/src/platform/javascript/AlphaSynthAudioExporterWorkerApi.d.ts +0 -21
- package/dist/types/alphatab/src/platform/javascript/AlphaSynthAudioWorkletOutput.d.ts +0 -30
- package/dist/types/alphatab/src/platform/javascript/AlphaSynthScriptProcessorOutput.d.ts +0 -21
- package/dist/types/alphatab/src/platform/javascript/AlphaSynthWebAudioOutputBase.d.ts +0 -57
- package/dist/types/alphatab/src/platform/javascript/AlphaSynthWebWorker.d.ts +0 -31
- package/dist/types/alphatab/src/platform/javascript/AlphaSynthWebWorkerApi.d.ts +0 -98
- package/dist/types/alphatab/src/platform/javascript/AlphaSynthWorkerSynthOutput.d.ts +0 -33
- package/dist/types/alphatab/src/platform/javascript/AlphaTabApi.d.ts +0 -111
- package/dist/types/alphatab/src/platform/javascript/AlphaTabWebWorker.d.ts +0 -16
- package/dist/types/alphatab/src/platform/javascript/AlphaTabWorkerScoreRenderer.d.ts +0 -34
- package/dist/types/alphatab/src/platform/javascript/AudioElementBackingTrackSynthOutput.d.ts +0 -49
- package/dist/types/alphatab/src/platform/javascript/BrowserMouseEventArgs.d.ts +0 -14
- package/dist/types/alphatab/src/platform/javascript/BrowserUiFacade.d.ts +0 -96
- package/dist/types/alphatab/src/platform/javascript/Html5Canvas.d.ts +0 -57
- package/dist/types/alphatab/src/platform/javascript/HtmlElementContainer.d.ts +0 -45
- package/dist/types/alphatab/src/platform/javascript/IWorkerScope.d.ts +0 -8
- package/dist/types/alphatab/src/platform/javascript/IntersectionObserverPolyfill.d.ts +0 -15
- package/dist/types/alphatab/src/platform/javascript/JQueryAlphaTab.d.ts +0 -68
- package/dist/types/alphatab/src/platform/javascript/ResizeObserverPolyfill.d.ts +0 -15
- package/dist/types/alphatab/src/platform/javascript/ScalableHtmlElementContainer.d.ts +0 -26
- package/dist/types/alphatab/src/platform/javascript/WebPlatform.d.ts +0 -10
- package/dist/types/alphatab/src/platform/skia/SkiaCanvas.d.ts +0 -86
- package/dist/types/alphatab/src/platform/svg/CssFontSvgCanvas.d.ts +0 -11
- package/dist/types/alphatab/src/platform/svg/FontSizes.d.ts +0 -32
- package/dist/types/alphatab/src/platform/svg/SvgCanvas.d.ts +0 -48
- package/dist/types/alphatab/src/rendering/BarRendererBase.d.ts +0 -177
- package/dist/types/alphatab/src/rendering/BarRendererFactory.d.ts +0 -21
- package/dist/types/alphatab/src/rendering/BeatXPosition.d.ts +0 -31
- package/dist/types/alphatab/src/rendering/EffectBand.d.ts +0 -31
- package/dist/types/alphatab/src/rendering/EffectBandSizingInfo.d.ts +0 -12
- package/dist/types/alphatab/src/rendering/EffectBandSlot.d.ts +0 -22
- package/dist/types/alphatab/src/rendering/EffectBarGlyphSizing.d.ts +0 -37
- package/dist/types/alphatab/src/rendering/EffectBarRenderer.d.ts +0 -29
- package/dist/types/alphatab/src/rendering/EffectBarRendererFactory.d.ts +0 -22
- package/dist/types/alphatab/src/rendering/EffectBarRendererInfo.d.ts +0 -62
- package/dist/types/alphatab/src/rendering/IScoreRenderer.d.ts +0 -151
- package/dist/types/alphatab/src/rendering/LineBarRenderer.d.ts +0 -64
- package/dist/types/alphatab/src/rendering/MultiBarRestBeatContainerGlyph.d.ts +0 -10
- package/dist/types/alphatab/src/rendering/NumberedBarRenderer.d.ts +0 -54
- package/dist/types/alphatab/src/rendering/NumberedBarRendererFactory.d.ts +0 -18
- package/dist/types/alphatab/src/rendering/NumberedBeatContainerGlyph.d.ts +0 -9
- package/dist/types/alphatab/src/rendering/RenderFinishedEventArgs.d.ts +0 -47
- package/dist/types/alphatab/src/rendering/ScoreBarRenderer.d.ts +0 -68
- package/dist/types/alphatab/src/rendering/ScoreBarRendererFactory.d.ts +0 -18
- package/dist/types/alphatab/src/rendering/ScoreBeatContainerGlyph.d.ts +0 -12
- package/dist/types/alphatab/src/rendering/ScoreRenderer.d.ts +0 -55
- package/dist/types/alphatab/src/rendering/ScoreRendererWrapper.d.ts +0 -37
- package/dist/types/alphatab/src/rendering/SlashBarRenderer.d.ts +0 -41
- package/dist/types/alphatab/src/rendering/SlashBarRendererFactory.d.ts +0 -18
- package/dist/types/alphatab/src/rendering/SlashBeatContainerGlyph.d.ts +0 -9
- package/dist/types/alphatab/src/rendering/TabBarRenderer.d.ts +0 -57
- package/dist/types/alphatab/src/rendering/TabBarRendererFactory.d.ts +0 -22
- package/dist/types/alphatab/src/rendering/_barrel.d.ts +0 -11
- package/dist/types/alphatab/src/rendering/effects/AlternateEndingsEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/BeatBarreEffectInfo.d.ts +0 -21
- package/dist/types/alphatab/src/rendering/effects/BeatTimerEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/CapoEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/ChordsEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/CrescendoEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/DirectionsEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/DynamicsEffectInfo.d.ts +0 -21
- package/dist/types/alphatab/src/rendering/effects/FadeEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/FermataEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/FingeringEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/FreeTimeEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/GolpeEffectInfo.d.ts +0 -23
- package/dist/types/alphatab/src/rendering/effects/HarmonicsEffectInfo.d.ts +0 -23
- package/dist/types/alphatab/src/rendering/effects/LeftHandTapEffectInfo.d.ts +0 -16
- package/dist/types/alphatab/src/rendering/effects/LetRingEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/LyricsEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/MarkerEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/NoteEffectInfoBase.d.ts +0 -15
- package/dist/types/alphatab/src/rendering/effects/NoteOrnamentEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/OttaviaEffectInfo.d.ts +0 -22
- package/dist/types/alphatab/src/rendering/effects/PalmMuteEffectInfo.d.ts +0 -16
- package/dist/types/alphatab/src/rendering/effects/PickSlideEffectInfo.d.ts +0 -16
- package/dist/types/alphatab/src/rendering/effects/PickStrokeEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/RasgueadoEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/SlightBeatVibratoEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/SlightNoteVibratoEffectInfo.d.ts +0 -18
- package/dist/types/alphatab/src/rendering/effects/SustainPedalEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/TapEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/TempoEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/TextEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/TrillEffectInfo.d.ts +0 -16
- package/dist/types/alphatab/src/rendering/effects/TripletFeelEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/WahPedalEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/WhammyBarEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/WideBeatVibratoEffectInfo.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/effects/WideNoteVibratoEffectInfo.d.ts +0 -16
- package/dist/types/alphatab/src/rendering/glyphs/AccentuationGlyph.d.ts +0 -13
- package/dist/types/alphatab/src/rendering/glyphs/AccidentalGlyph.d.ts +0 -10
- package/dist/types/alphatab/src/rendering/glyphs/AccidentalGroupGlyph.d.ts +0 -8
- package/dist/types/alphatab/src/rendering/glyphs/AlternateEndingsGlyph.d.ts +0 -15
- package/dist/types/alphatab/src/rendering/glyphs/ArticStaccatoAboveGlyph.d.ts +0 -8
- package/dist/types/alphatab/src/rendering/glyphs/AugmentationDotGlyph.d.ts +0 -8
- package/dist/types/alphatab/src/rendering/glyphs/BarLineGlyph.d.ts +0 -11
- package/dist/types/alphatab/src/rendering/glyphs/BarNumberGlyph.d.ts +0 -11
- package/dist/types/alphatab/src/rendering/glyphs/BarTempoGlyph.d.ts +0 -14
- package/dist/types/alphatab/src/rendering/glyphs/BeatContainerGlyph.d.ts +0 -34
- package/dist/types/alphatab/src/rendering/glyphs/BeatGlyphBase.d.ts +0 -24
- package/dist/types/alphatab/src/rendering/glyphs/BeatOnNoteGlyphBase.d.ts +0 -18
- package/dist/types/alphatab/src/rendering/glyphs/BeatTimerGlyph.d.ts +0 -14
- package/dist/types/alphatab/src/rendering/glyphs/BeatVibratoGlyph.d.ts +0 -9
- package/dist/types/alphatab/src/rendering/glyphs/BendNoteHeadGroupGlyph.d.ts +0 -26
- package/dist/types/alphatab/src/rendering/glyphs/ChordDiagramContainerGlyph.d.ts +0 -10
- package/dist/types/alphatab/src/rendering/glyphs/ChordDiagramGlyph.d.ts +0 -16
- package/dist/types/alphatab/src/rendering/glyphs/ClefGlyph.d.ts +0 -15
- package/dist/types/alphatab/src/rendering/glyphs/CrescendoGlyph.d.ts +0 -12
- package/dist/types/alphatab/src/rendering/glyphs/DeadNoteHeadGlyph.d.ts +0 -7
- package/dist/types/alphatab/src/rendering/glyphs/DeadSlappedBeatGlyph.d.ts +0 -10
- package/dist/types/alphatab/src/rendering/glyphs/DiamondNoteHeadGlyph.d.ts +0 -9
- package/dist/types/alphatab/src/rendering/glyphs/DirectionsContainerGlyph.d.ts +0 -15
- package/dist/types/alphatab/src/rendering/glyphs/DynamicsGlyph.d.ts +0 -10
- package/dist/types/alphatab/src/rendering/glyphs/EffectGlyph.d.ts +0 -24
- package/dist/types/alphatab/src/rendering/glyphs/FadeGlyph.d.ts +0 -11
- package/dist/types/alphatab/src/rendering/glyphs/FermataGlyph.d.ts +0 -11
- package/dist/types/alphatab/src/rendering/glyphs/FingeringGroupGlyph.d.ts +0 -28
- package/dist/types/alphatab/src/rendering/glyphs/FlagGlyph.d.ts +0 -11
- package/dist/types/alphatab/src/rendering/glyphs/GhostNoteContainerGlyph.d.ts +0 -29
- package/dist/types/alphatab/src/rendering/glyphs/GhostParenthesisGlyph.d.ts +0 -13
- package/dist/types/alphatab/src/rendering/glyphs/Glyph.d.ts +0 -18
- package/dist/types/alphatab/src/rendering/glyphs/GlyphGroup.d.ts +0 -15
- package/dist/types/alphatab/src/rendering/glyphs/GroupedEffectGlyph.d.ts +0 -20
- package/dist/types/alphatab/src/rendering/glyphs/GuitarGolpeGlyph.d.ts +0 -8
- package/dist/types/alphatab/src/rendering/glyphs/KeySignatureGlyph.d.ts +0 -8
- package/dist/types/alphatab/src/rendering/glyphs/LeftHandTapGlyph.d.ts +0 -8
- package/dist/types/alphatab/src/rendering/glyphs/LeftToRightLayoutingGlyphGroup.d.ts +0 -11
- package/dist/types/alphatab/src/rendering/glyphs/LineRangedGlyph.d.ts +0 -14
- package/dist/types/alphatab/src/rendering/glyphs/LyricsGlyph.d.ts +0 -14
- package/dist/types/alphatab/src/rendering/glyphs/MultiBarRestGlyph.d.ts +0 -12
- package/dist/types/alphatab/src/rendering/glyphs/MusicFontGlyph.d.ts +0 -34
- package/dist/types/alphatab/src/rendering/glyphs/NoteHeadGlyph.d.ts +0 -14
- package/dist/types/alphatab/src/rendering/glyphs/NoteNumberGlyph.d.ts +0 -20
- package/dist/types/alphatab/src/rendering/glyphs/NoteOrnamentGlyph.d.ts +0 -10
- package/dist/types/alphatab/src/rendering/glyphs/NoteVibratoGlyph.d.ts +0 -26
- package/dist/types/alphatab/src/rendering/glyphs/NumberGlyph.d.ts +0 -16
- package/dist/types/alphatab/src/rendering/glyphs/NumberedBeatGlyph.d.ts +0 -37
- package/dist/types/alphatab/src/rendering/glyphs/NumberedDashGlyph.d.ts +0 -12
- package/dist/types/alphatab/src/rendering/glyphs/NumberedKeySignatureGlyph.d.ts +0 -17
- package/dist/types/alphatab/src/rendering/glyphs/NumberedNoteHeadGlyph.d.ts +0 -14
- package/dist/types/alphatab/src/rendering/glyphs/NumberedSlurGlyph.d.ts +0 -14
- package/dist/types/alphatab/src/rendering/glyphs/NumberedTieGlyph.d.ts +0 -21
- package/dist/types/alphatab/src/rendering/glyphs/OttavaGlyph.d.ts +0 -15
- package/dist/types/alphatab/src/rendering/glyphs/PercussionNoteHeadGlyph.d.ts +0 -14
- package/dist/types/alphatab/src/rendering/glyphs/PickStrokeGlyph.d.ts +0 -10
- package/dist/types/alphatab/src/rendering/glyphs/PictEdgeOfCymbalGlyph.d.ts +0 -8
- package/dist/types/alphatab/src/rendering/glyphs/RepeatCountGlyph.d.ts +0 -11
- package/dist/types/alphatab/src/rendering/glyphs/RowContainerGlyph.d.ts +0 -12
- package/dist/types/alphatab/src/rendering/glyphs/RowGlyphContainer.d.ts +0 -13
- package/dist/types/alphatab/src/rendering/glyphs/ScoreBeatGlyph.d.ts +0 -29
- package/dist/types/alphatab/src/rendering/glyphs/ScoreBeatPreNotesGlyph.d.ts +0 -14
- package/dist/types/alphatab/src/rendering/glyphs/ScoreBendGlyph.d.ts +0 -17
- package/dist/types/alphatab/src/rendering/glyphs/ScoreBrushGlyph.d.ts +0 -13
- package/dist/types/alphatab/src/rendering/glyphs/ScoreHelperNotesBaseGlyph.d.ts +0 -15
- package/dist/types/alphatab/src/rendering/glyphs/ScoreLegatoGlyph.d.ts +0 -16
- package/dist/types/alphatab/src/rendering/glyphs/ScoreNoteChordGlyph.d.ts +0 -35
- package/dist/types/alphatab/src/rendering/glyphs/ScoreNoteChordGlyphBase.d.ts +0 -25
- package/dist/types/alphatab/src/rendering/glyphs/ScoreNoteGlyphInfo.d.ts +0 -9
- package/dist/types/alphatab/src/rendering/glyphs/ScoreRestGlyph.d.ts +0 -17
- package/dist/types/alphatab/src/rendering/glyphs/ScoreSlideLineGlyph.d.ts +0 -22
- package/dist/types/alphatab/src/rendering/glyphs/ScoreSlurGlyph.d.ts +0 -18
- package/dist/types/alphatab/src/rendering/glyphs/ScoreTieGlyph.d.ts +0 -20
- package/dist/types/alphatab/src/rendering/glyphs/ScoreTimeSignatureGlyph.d.ts +0 -8
- package/dist/types/alphatab/src/rendering/glyphs/ScoreWhammyBarGlyph.d.ts +0 -14
- package/dist/types/alphatab/src/rendering/glyphs/SlashBeatGlyph.d.ts +0 -24
- package/dist/types/alphatab/src/rendering/glyphs/SlashNoteHeadGlyph.d.ts +0 -24
- package/dist/types/alphatab/src/rendering/glyphs/SlashRestGlyph.d.ts +0 -9
- package/dist/types/alphatab/src/rendering/glyphs/SlashTieGlyph.d.ts +0 -21
- package/dist/types/alphatab/src/rendering/glyphs/SpacingGlyph.d.ts +0 -8
- package/dist/types/alphatab/src/rendering/glyphs/StringNumberContainerGlyph.d.ts +0 -11
- package/dist/types/alphatab/src/rendering/glyphs/SustainPedalGlyph.d.ts +0 -10
- package/dist/types/alphatab/src/rendering/glyphs/TabBeatContainerGlyph.d.ts +0 -13
- package/dist/types/alphatab/src/rendering/glyphs/TabBeatGlyph.d.ts +0 -25
- package/dist/types/alphatab/src/rendering/glyphs/TabBeatPreNotesGlyph.d.ts +0 -9
- package/dist/types/alphatab/src/rendering/glyphs/TabBendGlyph.d.ts +0 -24
- package/dist/types/alphatab/src/rendering/glyphs/TabBendRenderPoint.d.ts +0 -8
- package/dist/types/alphatab/src/rendering/glyphs/TabBrushGlyph.d.ts +0 -13
- package/dist/types/alphatab/src/rendering/glyphs/TabClefGlyph.d.ts +0 -8
- package/dist/types/alphatab/src/rendering/glyphs/TabNoteChordGlyph.d.ts +0 -33
- package/dist/types/alphatab/src/rendering/glyphs/TabRestGlyph.d.ts +0 -15
- package/dist/types/alphatab/src/rendering/glyphs/TabSlideLineGlyph.d.ts +0 -21
- package/dist/types/alphatab/src/rendering/glyphs/TabSlurGlyph.d.ts +0 -14
- package/dist/types/alphatab/src/rendering/glyphs/TabTieGlyph.d.ts +0 -21
- package/dist/types/alphatab/src/rendering/glyphs/TabTimeSignatureGlyph.d.ts +0 -9
- package/dist/types/alphatab/src/rendering/glyphs/TabWhammyBarGlyph.d.ts +0 -19
- package/dist/types/alphatab/src/rendering/glyphs/TextGlyph.d.ts +0 -18
- package/dist/types/alphatab/src/rendering/glyphs/TieGlyph.d.ts +0 -40
- package/dist/types/alphatab/src/rendering/glyphs/TimeSignatureGlyph.d.ts +0 -18
- package/dist/types/alphatab/src/rendering/glyphs/TremoloPickingGlyph.d.ts +0 -9
- package/dist/types/alphatab/src/rendering/glyphs/TrillGlyph.d.ts +0 -10
- package/dist/types/alphatab/src/rendering/glyphs/TripletFeelGlyph.d.ts +0 -15
- package/dist/types/alphatab/src/rendering/glyphs/TuningContainerGlyph.d.ts +0 -7
- package/dist/types/alphatab/src/rendering/glyphs/TuningGlyph.d.ts +0 -16
- package/dist/types/alphatab/src/rendering/glyphs/VoiceContainerGlyph.d.ts +0 -26
- package/dist/types/alphatab/src/rendering/glyphs/WahPedalGlyph.d.ts +0 -11
- package/dist/types/alphatab/src/rendering/layout/HorizontalScreenLayout.d.ts +0 -23
- package/dist/types/alphatab/src/rendering/layout/PageViewLayout.d.ts +0 -28
- package/dist/types/alphatab/src/rendering/layout/ScoreLayout.d.ts +0 -73
- package/dist/types/alphatab/src/rendering/staves/BarLayoutingInfo.d.ts +0 -44
- package/dist/types/alphatab/src/rendering/staves/MasterBarsRenderers.d.ts +0 -18
- package/dist/types/alphatab/src/rendering/staves/RenderStaff.d.ts +0 -72
- package/dist/types/alphatab/src/rendering/staves/Spring.d.ts +0 -16
- package/dist/types/alphatab/src/rendering/staves/StaffSystem.d.ts +0 -75
- package/dist/types/alphatab/src/rendering/staves/StaffTrackGroup.d.ts +0 -20
- package/dist/types/alphatab/src/rendering/utils/AccidentalHelper.d.ts +0 -89
- package/dist/types/alphatab/src/rendering/utils/BarBounds.d.ts +0 -45
- package/dist/types/alphatab/src/rendering/utils/BarCollisionHelper.d.ts +0 -31
- package/dist/types/alphatab/src/rendering/utils/BarHelpers.d.ts +0 -18
- package/dist/types/alphatab/src/rendering/utils/BeamDirection.d.ts +0 -7
- package/dist/types/alphatab/src/rendering/utils/BeamingHelper.d.ts +0 -92
- package/dist/types/alphatab/src/rendering/utils/BeatBounds.d.ts +0 -52
- package/dist/types/alphatab/src/rendering/utils/Bounds.d.ts +0 -23
- package/dist/types/alphatab/src/rendering/utils/BoundsLookup.d.ts +0 -98
- package/dist/types/alphatab/src/rendering/utils/ElementStyleHelper.d.ts +0 -29
- package/dist/types/alphatab/src/rendering/utils/MasterBarBounds.d.ts +0 -64
- package/dist/types/alphatab/src/rendering/utils/NoteBounds.d.ts +0 -25
- package/dist/types/alphatab/src/rendering/utils/StaffSystemBounds.d.ts +0 -45
- package/dist/types/alphatab/src/synth/ActiveBeatsChangedEventArgs.d.ts +0 -12
- package/dist/types/alphatab/src/synth/AlphaSynth.d.ts +0 -248
- package/dist/types/alphatab/src/synth/AlphaSynthWrapper.d.ts +0 -92
- package/dist/types/alphatab/src/synth/BackingTrackPlayer.d.ts +0 -53
- package/dist/types/alphatab/src/synth/ExternalMediaPlayer.d.ts +0 -55
- package/dist/types/alphatab/src/synth/IAlphaSynth.d.ts +0 -271
- package/dist/types/alphatab/src/synth/IAudioExporter.d.ts +0 -127
- package/dist/types/alphatab/src/synth/IAudioSampleSynthesizer.d.ts +0 -126
- package/dist/types/alphatab/src/synth/ISynthOutput.d.ts +0 -90
- package/dist/types/alphatab/src/synth/MidiEventsPlayedEventArgs.d.ts +0 -16
- package/dist/types/alphatab/src/synth/MidiFileSequencer.d.ts +0 -98
- package/dist/types/alphatab/src/synth/PlaybackRange.d.ts +0 -14
- package/dist/types/alphatab/src/synth/PlaybackRangeChangedEventArgs.d.ts +0 -16
- package/dist/types/alphatab/src/synth/PlayerState.d.ts +0 -14
- package/dist/types/alphatab/src/synth/PlayerStateChangedEventArgs.d.ts +0 -21
- package/dist/types/alphatab/src/synth/PositionChangedEventArgs.d.ts +0 -44
- package/dist/types/alphatab/src/synth/SynthConstants.d.ts +0 -30
- package/dist/types/alphatab/src/synth/SynthHelper.d.ts +0 -9
- package/dist/types/alphatab/src/synth/_barrel.d.ts +0 -19
- package/dist/types/alphatab/src/synth/ds/CircularSampleBuffer.d.ts +0 -38
- package/dist/types/alphatab/src/synth/ds/Queue.d.ts +0 -13
- package/dist/types/alphatab/src/synth/soundfont/Hydra.d.ts +0 -133
- package/dist/types/alphatab/src/synth/soundfont/RiffChunk.d.ts +0 -10
- package/dist/types/alphatab/src/synth/synthesis/Channel.d.ts +0 -21
- package/dist/types/alphatab/src/synth/synthesis/Channels.d.ts +0 -11
- package/dist/types/alphatab/src/synth/synthesis/Envelope.d.ts +0 -16
- package/dist/types/alphatab/src/synth/synthesis/LoopMode.d.ts +0 -8
- package/dist/types/alphatab/src/synth/synthesis/OutputMode.d.ts +0 -18
- package/dist/types/alphatab/src/synth/synthesis/Preset.d.ts +0 -10
- package/dist/types/alphatab/src/synth/synthesis/Region.d.ts +0 -110
- package/dist/types/alphatab/src/synth/synthesis/SynthEvent.d.ts +0 -12
- package/dist/types/alphatab/src/synth/synthesis/TinySoundFont.d.ts +0 -252
- package/dist/types/alphatab/src/synth/synthesis/Voice.d.ts +0 -43
- package/dist/types/alphatab/src/synth/synthesis/VoiceEnvelope.d.ts +0 -31
- package/dist/types/alphatab/src/synth/synthesis/VoiceLfo.d.ts +0 -10
- package/dist/types/alphatab/src/synth/synthesis/VoiceLowPass.d.ts +0 -16
- package/dist/types/alphatab/src/synth/vorbis/IntBitReader.d.ts +0 -26
- package/dist/types/alphatab/src/synth/vorbis/OggReader.d.ts +0 -23
- package/dist/types/alphatab/src/synth/vorbis/VorbisFile.d.ts +0 -9
- package/dist/types/alphatab/src/synth/vorbis/VorbisStream.d.ts +0 -13
- package/dist/types/alphatab/src/synth/vorbis/VorbisStreamDecoder.d.ts +0 -260
- package/dist/types/alphatab/src/synth/vorbis/VorbisStreamReader.d.ts +0 -49
- package/dist/types/alphatab/src/util/FontLoadingChecker.d.ts +0 -16
- package/dist/types/alphatab/src/util/Lazy.d.ts +0 -12
- package/dist/types/alphatab/src/xml/XmlDocument.d.ts +0 -10
- package/dist/types/alphatab/src/xml/XmlError.d.ts +0 -9
- package/dist/types/alphatab/src/xml/XmlNode.d.ts +0 -34
- package/dist/types/alphatab/src/xml/XmlParser.d.ts +0 -39
- package/dist/types/alphatab/src/xml/XmlWriter.d.ts +0 -20
- package/dist/types/alphatab/src/zip/Crc32.d.ts +0 -32
- package/dist/types/alphatab/src/zip/Deflater.d.ts +0 -74
- package/dist/types/alphatab/src/zip/DeflaterConstants.d.ts +0 -20
- package/dist/types/alphatab/src/zip/DeflaterEngine.d.ts +0 -124
- package/dist/types/alphatab/src/zip/DeflaterHuffman.d.ts +0 -76
- package/dist/types/alphatab/src/zip/HuffTools.d.ts +0 -11
- package/dist/types/alphatab/src/zip/Huffman.d.ts +0 -28
- package/dist/types/alphatab/src/zip/Inflate.d.ts +0 -40
- package/dist/types/alphatab/src/zip/PendingBuffer.d.ts +0 -65
- package/dist/types/alphatab/src/zip/ZipEntry.d.ts +0 -14
- package/dist/types/alphatab/src/zip/ZipReader.d.ts +0 -11
- package/dist/types/alphatab/src/zip/ZipWriter.d.ts +0 -16
- package/dist/types/alphatex/src/common.d.ts +0 -4
- package/dist/types/alphatex/src/definitions.d.ts +0 -8
- package/dist/types/alphatex/src/enum.d.ts +0 -48
- package/dist/types/alphatex/src/metadata/bar/ac.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/accidentals.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/ae.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/barlineleft.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/barlineright.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/clef.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/db.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/ft.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/jump.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/ks.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/ottava.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/rc.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/ro.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/scale.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/section.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/simile.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/spd.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/sph.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/spu.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/sync.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/tempo.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/tf.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/ts.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/bar/width.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/album.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/artist.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/bracketextendmode.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/copyright.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/copyright2.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/defaultsystemslayout.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/firstsystemtracknamemode.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/firstsystemtracknameorientation.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/hidedynamics.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/instructions.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/multibarrest.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/multitracktracknamepolicy.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/music.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/notices.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/othersystemtracknamemode.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/othersystemtracknameorientation.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/showdynamics.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/singletracktracknamepolicy.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/subtitle.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/systemslayout.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/tab.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/title.d.ts +0 -4
- package/dist/types/alphatex/src/metadata/score/usesystemsignseparator.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/words.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/score/wordsandmusic.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/staff/articulation.d.ts +0 -3
- package/dist/types/alphatex/src/metadata/staff/capo.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/staff/chord.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/staff/displaytranspose.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/staff/instrument.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/staff/lyrics.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/staff/transpose.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/staff/tuning.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/structural/staff.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/structural/track.d.ts +0 -2
- package/dist/types/alphatex/src/metadata/structural/voice.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/ad.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/au.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/balance.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/bank.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/barre.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/bd.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/beam.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/bu.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/ch.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/cre.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/d.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/dd.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/dec.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/ds.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/dy.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/f.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/fermata.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/fo.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/glpf.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/glpt.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/gr.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/instrument.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/legatoOrigin.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/lyrics.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/ot.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/p.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/rasg.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/s.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/sd.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/slashed.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/spd.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/spe.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/sph.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/spu.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/su.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/tb.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/tbe.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/tempo.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/timer.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/tp.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/tt.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/tu.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/txt.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/v.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/volume.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/vs.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/vw.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/wahc.d.ts +0 -2
- package/dist/types/alphatex/src/properties/beat/waho.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/ac.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/acc.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/ah.d.ts +0 -3
- package/dist/types/alphatex/src/properties/note/b.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/be.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/fh.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/g.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/h.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/hac.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/hide.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/iturn.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/lf.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/lht.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/lmordent.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/lr.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/nh.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/ph.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/pm.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/psd.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/psu.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/rf.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/sh.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/sia.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/sib.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/sl.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/slur.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/sod.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/sou.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/ss.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/st.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/string.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/t.d.ts +0 -3
- package/dist/types/alphatex/src/properties/note/ten.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/th.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/tr.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/turn.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/umordent.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/v.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/vw.d.ts +0 -2
- package/dist/types/alphatex/src/properties/note/x.d.ts +0 -2
- package/dist/types/alphatex/src/types.d.ts +0 -161
- package/dist/types/lsp/src/index.d.ts +0 -21
- package/dist/types/lsp/src/server/completion.d.ts +0 -3
- package/dist/types/lsp/src/server/diagnostics.d.ts +0 -2
- package/dist/types/lsp/src/server/hover.d.ts +0 -2
- package/dist/types/lsp/src/server/index.d.ts +0 -13
- package/dist/types/lsp/src/server/signatureHelp.d.ts +0 -2
- package/dist/types/lsp/src/server/types.d.ts +0 -15
- package/dist/types/lsp/src/server/utils.d.ts +0 -6
- package/dist/types/monaco/src/alphaTab.monaco.d.ts +0 -2
- package/dist/types/monaco/test/placeholder.test.d.ts +0 -1
- package/dist/types/monaco/vite.config.d.ts +0 -2
- package/dist/types/tooling/src/typescript.d.ts +0 -9
- package/dist/types/tooling/src/vite.d.ts +0 -13
- package/dist/types/tooling/src/vite.plugin.dts.d.ts +0 -1
- package/dist/types/tooling/src/vite.plugin.min.d.ts +0 -3
- package/dist/typescript.mjs +0 -375
- package/dist/typespec.mjs +0 -148
- package/dist/vb.mjs +0 -393
- package/dist/wgsl.mjs +0 -474
- package/dist/xml.mjs +0 -127
- package/dist/yaml.mjs +0 -238
- package/src/alphaTab.monaco.ts +0 -3
- package/src/alphatex.ts +0 -18
- package/src/types.ts +0 -16
- package/src/worker.ts +0 -4
- package/test/placeholder.test.ts +0 -3
- package/tsconfig.json +0 -3
- package/vite.config.ts +0 -17
- /package/dist/{types/monaco/src/alphatex.d.ts → alphatex.d.ts} +0 -0
- /package/dist/{types/monaco/src/lsp.d.ts → lsp.d.ts} +0 -0
- /package/dist/{types/monaco/src/lspMonacoMappings.d.ts → lspMonacoMappings.d.ts} +0 -0
- /package/dist/{types/monaco/src/textmate.d.ts → textmate.d.ts} +0 -0
- /package/dist/{types/monaco/src/types.d.ts → types.d.ts} +0 -0
- /package/dist/{types/monaco/src/worker.d.ts → worker.d.ts} +0 -0
package/dist/htmlMode.mjs
DELETED
|
@@ -1,2121 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* alphaTab Monaco v1.7.0-alpha.1626 (develop, build 1626)
|
|
3
|
-
*
|
|
4
|
-
* Copyright © 2025, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
|
-
*
|
|
6
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
7
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
8
|
-
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
9
|
-
*
|
|
10
|
-
* @preserve
|
|
11
|
-
* @license
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import { m as monaco_editor_core_star } from './alphaTab.monaco2.mjs';
|
|
15
|
-
|
|
16
|
-
/*!-----------------------------------------------------------------------------
|
|
17
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
18
|
-
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
|
|
19
|
-
* Released under the MIT license
|
|
20
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
21
|
-
*-----------------------------------------------------------------------------*/
|
|
22
|
-
|
|
23
|
-
var __defProp = Object.defineProperty;
|
|
24
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
25
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
26
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
27
|
-
var __copyProps = (to, from, except, desc) => {
|
|
28
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
29
|
-
for (let key of __getOwnPropNames(from))
|
|
30
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
31
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
32
|
-
}
|
|
33
|
-
return to;
|
|
34
|
-
};
|
|
35
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget);
|
|
36
|
-
|
|
37
|
-
// src/fillers/monaco-editor-core.ts
|
|
38
|
-
var monaco_editor_core_exports = {};
|
|
39
|
-
__reExport(monaco_editor_core_exports, monaco_editor_core_star);
|
|
40
|
-
|
|
41
|
-
// src/common/workers.ts
|
|
42
|
-
function createTrustedTypesPolicy(policyName, policyOptions) {
|
|
43
|
-
const monacoEnvironment = globalThis.MonacoEnvironment;
|
|
44
|
-
if (monacoEnvironment?.createTrustedTypesPolicy) {
|
|
45
|
-
try {
|
|
46
|
-
return monacoEnvironment.createTrustedTypesPolicy(policyName, policyOptions);
|
|
47
|
-
} catch (err) {
|
|
48
|
-
console.error(err);
|
|
49
|
-
return void 0;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
try {
|
|
53
|
-
return globalThis.trustedTypes?.createPolicy(policyName, policyOptions);
|
|
54
|
-
} catch (err) {
|
|
55
|
-
console.error(err);
|
|
56
|
-
return void 0;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
var ttPolicy;
|
|
60
|
-
if (typeof self === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope" && globalThis.workerttPolicy !== void 0) {
|
|
61
|
-
ttPolicy = globalThis.workerttPolicy;
|
|
62
|
-
} else {
|
|
63
|
-
ttPolicy = createTrustedTypesPolicy("defaultWorkerFactory", {
|
|
64
|
-
createScriptURL: (value) => value
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function getWorker(descriptor) {
|
|
68
|
-
const label = descriptor.label;
|
|
69
|
-
const monacoEnvironment = globalThis.MonacoEnvironment;
|
|
70
|
-
if (monacoEnvironment) {
|
|
71
|
-
if (typeof monacoEnvironment.getWorker === "function") {
|
|
72
|
-
return monacoEnvironment.getWorker("workerMain.js", label);
|
|
73
|
-
}
|
|
74
|
-
if (typeof monacoEnvironment.getWorkerUrl === "function") {
|
|
75
|
-
const workerUrl = monacoEnvironment.getWorkerUrl("workerMain.js", label);
|
|
76
|
-
return new Worker(
|
|
77
|
-
ttPolicy ? ttPolicy.createScriptURL(workerUrl) : workerUrl,
|
|
78
|
-
{ name: label, type: "module" }
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
throw new Error(
|
|
83
|
-
`You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker`
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
function createWebWorker(opts) {
|
|
87
|
-
const worker = Promise.resolve(
|
|
88
|
-
getWorker({
|
|
89
|
-
label: opts.label ?? "monaco-editor-worker"})
|
|
90
|
-
).then((w) => {
|
|
91
|
-
w.postMessage("ignore");
|
|
92
|
-
w.postMessage(opts.createData);
|
|
93
|
-
return w;
|
|
94
|
-
});
|
|
95
|
-
return monaco_editor_core_exports.editor.createWebWorker({
|
|
96
|
-
worker,
|
|
97
|
-
host: opts.host,
|
|
98
|
-
keepIdleModels: opts.keepIdleModels
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// src/language/html/workerManager.ts
|
|
103
|
-
var STOP_WHEN_IDLE_FOR = 2 * 60 * 1e3;
|
|
104
|
-
var WorkerManager = class {
|
|
105
|
-
constructor(defaults) {
|
|
106
|
-
this._defaults = defaults;
|
|
107
|
-
this._worker = null;
|
|
108
|
-
this._client = null;
|
|
109
|
-
this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3);
|
|
110
|
-
this._lastUsedTime = 0;
|
|
111
|
-
this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
|
|
112
|
-
}
|
|
113
|
-
_stopWorker() {
|
|
114
|
-
if (this._worker) {
|
|
115
|
-
this._worker.dispose();
|
|
116
|
-
this._worker = null;
|
|
117
|
-
}
|
|
118
|
-
this._client = null;
|
|
119
|
-
}
|
|
120
|
-
dispose() {
|
|
121
|
-
clearInterval(this._idleCheckInterval);
|
|
122
|
-
this._configChangeListener.dispose();
|
|
123
|
-
this._stopWorker();
|
|
124
|
-
}
|
|
125
|
-
_checkIfIdle() {
|
|
126
|
-
if (!this._worker) {
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
let timePassedSinceLastUsed = Date.now() - this._lastUsedTime;
|
|
130
|
-
if (timePassedSinceLastUsed > STOP_WHEN_IDLE_FOR) {
|
|
131
|
-
this._stopWorker();
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
_getClient() {
|
|
135
|
-
this._lastUsedTime = Date.now();
|
|
136
|
-
if (!this._client) {
|
|
137
|
-
this._worker = createWebWorker({
|
|
138
|
-
// passed in to the create() method
|
|
139
|
-
createData: {
|
|
140
|
-
languageSettings: this._defaults.options,
|
|
141
|
-
languageId: this._defaults.languageId
|
|
142
|
-
},
|
|
143
|
-
label: this._defaults.languageId
|
|
144
|
-
});
|
|
145
|
-
this._client = this._worker.getProxy();
|
|
146
|
-
}
|
|
147
|
-
return this._client;
|
|
148
|
-
}
|
|
149
|
-
getLanguageServiceWorker(...resources) {
|
|
150
|
-
let _client;
|
|
151
|
-
return this._getClient().then((client) => {
|
|
152
|
-
_client = client;
|
|
153
|
-
}).then((_) => {
|
|
154
|
-
if (this._worker) {
|
|
155
|
-
return this._worker.withSyncedResources(resources);
|
|
156
|
-
}
|
|
157
|
-
}).then((_) => _client);
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
// node_modules/vscode-languageserver-types/lib/esm/main.js
|
|
162
|
-
var DocumentUri;
|
|
163
|
-
(function(DocumentUri2) {
|
|
164
|
-
function is(value) {
|
|
165
|
-
return typeof value === "string";
|
|
166
|
-
}
|
|
167
|
-
DocumentUri2.is = is;
|
|
168
|
-
})(DocumentUri || (DocumentUri = {}));
|
|
169
|
-
var URI;
|
|
170
|
-
(function(URI2) {
|
|
171
|
-
function is(value) {
|
|
172
|
-
return typeof value === "string";
|
|
173
|
-
}
|
|
174
|
-
URI2.is = is;
|
|
175
|
-
})(URI || (URI = {}));
|
|
176
|
-
var integer;
|
|
177
|
-
(function(integer2) {
|
|
178
|
-
integer2.MIN_VALUE = -2147483648;
|
|
179
|
-
integer2.MAX_VALUE = 2147483647;
|
|
180
|
-
function is(value) {
|
|
181
|
-
return typeof value === "number" && integer2.MIN_VALUE <= value && value <= integer2.MAX_VALUE;
|
|
182
|
-
}
|
|
183
|
-
integer2.is = is;
|
|
184
|
-
})(integer || (integer = {}));
|
|
185
|
-
var uinteger;
|
|
186
|
-
(function(uinteger2) {
|
|
187
|
-
uinteger2.MIN_VALUE = 0;
|
|
188
|
-
uinteger2.MAX_VALUE = 2147483647;
|
|
189
|
-
function is(value) {
|
|
190
|
-
return typeof value === "number" && uinteger2.MIN_VALUE <= value && value <= uinteger2.MAX_VALUE;
|
|
191
|
-
}
|
|
192
|
-
uinteger2.is = is;
|
|
193
|
-
})(uinteger || (uinteger = {}));
|
|
194
|
-
var Position;
|
|
195
|
-
(function(Position3) {
|
|
196
|
-
function create(line, character) {
|
|
197
|
-
if (line === Number.MAX_VALUE) {
|
|
198
|
-
line = uinteger.MAX_VALUE;
|
|
199
|
-
}
|
|
200
|
-
if (character === Number.MAX_VALUE) {
|
|
201
|
-
character = uinteger.MAX_VALUE;
|
|
202
|
-
}
|
|
203
|
-
return { line, character };
|
|
204
|
-
}
|
|
205
|
-
Position3.create = create;
|
|
206
|
-
function is(value) {
|
|
207
|
-
let candidate = value;
|
|
208
|
-
return Is.objectLiteral(candidate) && Is.uinteger(candidate.line) && Is.uinteger(candidate.character);
|
|
209
|
-
}
|
|
210
|
-
Position3.is = is;
|
|
211
|
-
})(Position || (Position = {}));
|
|
212
|
-
var Range;
|
|
213
|
-
(function(Range3) {
|
|
214
|
-
function create(one, two, three, four) {
|
|
215
|
-
if (Is.uinteger(one) && Is.uinteger(two) && Is.uinteger(three) && Is.uinteger(four)) {
|
|
216
|
-
return { start: Position.create(one, two), end: Position.create(three, four) };
|
|
217
|
-
} else if (Position.is(one) && Position.is(two)) {
|
|
218
|
-
return { start: one, end: two };
|
|
219
|
-
} else {
|
|
220
|
-
throw new Error(`Range#create called with invalid arguments[${one}, ${two}, ${three}, ${four}]`);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
Range3.create = create;
|
|
224
|
-
function is(value) {
|
|
225
|
-
let candidate = value;
|
|
226
|
-
return Is.objectLiteral(candidate) && Position.is(candidate.start) && Position.is(candidate.end);
|
|
227
|
-
}
|
|
228
|
-
Range3.is = is;
|
|
229
|
-
})(Range || (Range = {}));
|
|
230
|
-
var Location;
|
|
231
|
-
(function(Location2) {
|
|
232
|
-
function create(uri, range) {
|
|
233
|
-
return { uri, range };
|
|
234
|
-
}
|
|
235
|
-
Location2.create = create;
|
|
236
|
-
function is(value) {
|
|
237
|
-
let candidate = value;
|
|
238
|
-
return Is.objectLiteral(candidate) && Range.is(candidate.range) && (Is.string(candidate.uri) || Is.undefined(candidate.uri));
|
|
239
|
-
}
|
|
240
|
-
Location2.is = is;
|
|
241
|
-
})(Location || (Location = {}));
|
|
242
|
-
var LocationLink;
|
|
243
|
-
(function(LocationLink2) {
|
|
244
|
-
function create(targetUri, targetRange, targetSelectionRange, originSelectionRange) {
|
|
245
|
-
return { targetUri, targetRange, targetSelectionRange, originSelectionRange };
|
|
246
|
-
}
|
|
247
|
-
LocationLink2.create = create;
|
|
248
|
-
function is(value) {
|
|
249
|
-
let candidate = value;
|
|
250
|
-
return Is.objectLiteral(candidate) && Range.is(candidate.targetRange) && Is.string(candidate.targetUri) && Range.is(candidate.targetSelectionRange) && (Range.is(candidate.originSelectionRange) || Is.undefined(candidate.originSelectionRange));
|
|
251
|
-
}
|
|
252
|
-
LocationLink2.is = is;
|
|
253
|
-
})(LocationLink || (LocationLink = {}));
|
|
254
|
-
var Color;
|
|
255
|
-
(function(Color2) {
|
|
256
|
-
function create(red, green, blue, alpha) {
|
|
257
|
-
return {
|
|
258
|
-
red,
|
|
259
|
-
green,
|
|
260
|
-
blue,
|
|
261
|
-
alpha
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
Color2.create = create;
|
|
265
|
-
function is(value) {
|
|
266
|
-
const candidate = value;
|
|
267
|
-
return Is.objectLiteral(candidate) && Is.numberRange(candidate.red, 0, 1) && Is.numberRange(candidate.green, 0, 1) && Is.numberRange(candidate.blue, 0, 1) && Is.numberRange(candidate.alpha, 0, 1);
|
|
268
|
-
}
|
|
269
|
-
Color2.is = is;
|
|
270
|
-
})(Color || (Color = {}));
|
|
271
|
-
var ColorInformation;
|
|
272
|
-
(function(ColorInformation2) {
|
|
273
|
-
function create(range, color) {
|
|
274
|
-
return {
|
|
275
|
-
range,
|
|
276
|
-
color
|
|
277
|
-
};
|
|
278
|
-
}
|
|
279
|
-
ColorInformation2.create = create;
|
|
280
|
-
function is(value) {
|
|
281
|
-
const candidate = value;
|
|
282
|
-
return Is.objectLiteral(candidate) && Range.is(candidate.range) && Color.is(candidate.color);
|
|
283
|
-
}
|
|
284
|
-
ColorInformation2.is = is;
|
|
285
|
-
})(ColorInformation || (ColorInformation = {}));
|
|
286
|
-
var ColorPresentation;
|
|
287
|
-
(function(ColorPresentation2) {
|
|
288
|
-
function create(label, textEdit, additionalTextEdits) {
|
|
289
|
-
return {
|
|
290
|
-
label,
|
|
291
|
-
textEdit,
|
|
292
|
-
additionalTextEdits
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
ColorPresentation2.create = create;
|
|
296
|
-
function is(value) {
|
|
297
|
-
const candidate = value;
|
|
298
|
-
return Is.objectLiteral(candidate) && Is.string(candidate.label) && (Is.undefined(candidate.textEdit) || TextEdit.is(candidate)) && (Is.undefined(candidate.additionalTextEdits) || Is.typedArray(candidate.additionalTextEdits, TextEdit.is));
|
|
299
|
-
}
|
|
300
|
-
ColorPresentation2.is = is;
|
|
301
|
-
})(ColorPresentation || (ColorPresentation = {}));
|
|
302
|
-
var FoldingRangeKind;
|
|
303
|
-
(function(FoldingRangeKind2) {
|
|
304
|
-
FoldingRangeKind2.Comment = "comment";
|
|
305
|
-
FoldingRangeKind2.Imports = "imports";
|
|
306
|
-
FoldingRangeKind2.Region = "region";
|
|
307
|
-
})(FoldingRangeKind || (FoldingRangeKind = {}));
|
|
308
|
-
var FoldingRange;
|
|
309
|
-
(function(FoldingRange2) {
|
|
310
|
-
function create(startLine, endLine, startCharacter, endCharacter, kind, collapsedText) {
|
|
311
|
-
const result = {
|
|
312
|
-
startLine,
|
|
313
|
-
endLine
|
|
314
|
-
};
|
|
315
|
-
if (Is.defined(startCharacter)) {
|
|
316
|
-
result.startCharacter = startCharacter;
|
|
317
|
-
}
|
|
318
|
-
if (Is.defined(endCharacter)) {
|
|
319
|
-
result.endCharacter = endCharacter;
|
|
320
|
-
}
|
|
321
|
-
if (Is.defined(kind)) {
|
|
322
|
-
result.kind = kind;
|
|
323
|
-
}
|
|
324
|
-
if (Is.defined(collapsedText)) {
|
|
325
|
-
result.collapsedText = collapsedText;
|
|
326
|
-
}
|
|
327
|
-
return result;
|
|
328
|
-
}
|
|
329
|
-
FoldingRange2.create = create;
|
|
330
|
-
function is(value) {
|
|
331
|
-
const candidate = value;
|
|
332
|
-
return Is.objectLiteral(candidate) && Is.uinteger(candidate.startLine) && Is.uinteger(candidate.startLine) && (Is.undefined(candidate.startCharacter) || Is.uinteger(candidate.startCharacter)) && (Is.undefined(candidate.endCharacter) || Is.uinteger(candidate.endCharacter)) && (Is.undefined(candidate.kind) || Is.string(candidate.kind));
|
|
333
|
-
}
|
|
334
|
-
FoldingRange2.is = is;
|
|
335
|
-
})(FoldingRange || (FoldingRange = {}));
|
|
336
|
-
var DiagnosticRelatedInformation;
|
|
337
|
-
(function(DiagnosticRelatedInformation2) {
|
|
338
|
-
function create(location, message) {
|
|
339
|
-
return {
|
|
340
|
-
location,
|
|
341
|
-
message
|
|
342
|
-
};
|
|
343
|
-
}
|
|
344
|
-
DiagnosticRelatedInformation2.create = create;
|
|
345
|
-
function is(value) {
|
|
346
|
-
let candidate = value;
|
|
347
|
-
return Is.defined(candidate) && Location.is(candidate.location) && Is.string(candidate.message);
|
|
348
|
-
}
|
|
349
|
-
DiagnosticRelatedInformation2.is = is;
|
|
350
|
-
})(DiagnosticRelatedInformation || (DiagnosticRelatedInformation = {}));
|
|
351
|
-
var DiagnosticSeverity;
|
|
352
|
-
(function(DiagnosticSeverity2) {
|
|
353
|
-
DiagnosticSeverity2.Error = 1;
|
|
354
|
-
DiagnosticSeverity2.Warning = 2;
|
|
355
|
-
DiagnosticSeverity2.Information = 3;
|
|
356
|
-
DiagnosticSeverity2.Hint = 4;
|
|
357
|
-
})(DiagnosticSeverity || (DiagnosticSeverity = {}));
|
|
358
|
-
var DiagnosticTag;
|
|
359
|
-
(function(DiagnosticTag2) {
|
|
360
|
-
DiagnosticTag2.Unnecessary = 1;
|
|
361
|
-
DiagnosticTag2.Deprecated = 2;
|
|
362
|
-
})(DiagnosticTag || (DiagnosticTag = {}));
|
|
363
|
-
var CodeDescription;
|
|
364
|
-
(function(CodeDescription2) {
|
|
365
|
-
function is(value) {
|
|
366
|
-
const candidate = value;
|
|
367
|
-
return Is.objectLiteral(candidate) && Is.string(candidate.href);
|
|
368
|
-
}
|
|
369
|
-
CodeDescription2.is = is;
|
|
370
|
-
})(CodeDescription || (CodeDescription = {}));
|
|
371
|
-
var Diagnostic;
|
|
372
|
-
(function(Diagnostic2) {
|
|
373
|
-
function create(range, message, severity, code, source, relatedInformation) {
|
|
374
|
-
let result = { range, message };
|
|
375
|
-
if (Is.defined(severity)) {
|
|
376
|
-
result.severity = severity;
|
|
377
|
-
}
|
|
378
|
-
if (Is.defined(code)) {
|
|
379
|
-
result.code = code;
|
|
380
|
-
}
|
|
381
|
-
if (Is.defined(source)) {
|
|
382
|
-
result.source = source;
|
|
383
|
-
}
|
|
384
|
-
if (Is.defined(relatedInformation)) {
|
|
385
|
-
result.relatedInformation = relatedInformation;
|
|
386
|
-
}
|
|
387
|
-
return result;
|
|
388
|
-
}
|
|
389
|
-
Diagnostic2.create = create;
|
|
390
|
-
function is(value) {
|
|
391
|
-
var _a;
|
|
392
|
-
let candidate = value;
|
|
393
|
-
return Is.defined(candidate) && Range.is(candidate.range) && Is.string(candidate.message) && (Is.number(candidate.severity) || Is.undefined(candidate.severity)) && (Is.integer(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code)) && (Is.undefined(candidate.codeDescription) || Is.string((_a = candidate.codeDescription) === null || _a === void 0 ? void 0 : _a.href)) && (Is.string(candidate.source) || Is.undefined(candidate.source)) && (Is.undefined(candidate.relatedInformation) || Is.typedArray(candidate.relatedInformation, DiagnosticRelatedInformation.is));
|
|
394
|
-
}
|
|
395
|
-
Diagnostic2.is = is;
|
|
396
|
-
})(Diagnostic || (Diagnostic = {}));
|
|
397
|
-
var Command;
|
|
398
|
-
(function(Command2) {
|
|
399
|
-
function create(title, command, ...args) {
|
|
400
|
-
let result = { title, command };
|
|
401
|
-
if (Is.defined(args) && args.length > 0) {
|
|
402
|
-
result.arguments = args;
|
|
403
|
-
}
|
|
404
|
-
return result;
|
|
405
|
-
}
|
|
406
|
-
Command2.create = create;
|
|
407
|
-
function is(value) {
|
|
408
|
-
let candidate = value;
|
|
409
|
-
return Is.defined(candidate) && Is.string(candidate.title) && Is.string(candidate.command);
|
|
410
|
-
}
|
|
411
|
-
Command2.is = is;
|
|
412
|
-
})(Command || (Command = {}));
|
|
413
|
-
var TextEdit;
|
|
414
|
-
(function(TextEdit2) {
|
|
415
|
-
function replace(range, newText) {
|
|
416
|
-
return { range, newText };
|
|
417
|
-
}
|
|
418
|
-
TextEdit2.replace = replace;
|
|
419
|
-
function insert(position, newText) {
|
|
420
|
-
return { range: { start: position, end: position }, newText };
|
|
421
|
-
}
|
|
422
|
-
TextEdit2.insert = insert;
|
|
423
|
-
function del(range) {
|
|
424
|
-
return { range, newText: "" };
|
|
425
|
-
}
|
|
426
|
-
TextEdit2.del = del;
|
|
427
|
-
function is(value) {
|
|
428
|
-
const candidate = value;
|
|
429
|
-
return Is.objectLiteral(candidate) && Is.string(candidate.newText) && Range.is(candidate.range);
|
|
430
|
-
}
|
|
431
|
-
TextEdit2.is = is;
|
|
432
|
-
})(TextEdit || (TextEdit = {}));
|
|
433
|
-
var ChangeAnnotation;
|
|
434
|
-
(function(ChangeAnnotation2) {
|
|
435
|
-
function create(label, needsConfirmation, description) {
|
|
436
|
-
const result = { label };
|
|
437
|
-
if (needsConfirmation !== void 0) {
|
|
438
|
-
result.needsConfirmation = needsConfirmation;
|
|
439
|
-
}
|
|
440
|
-
if (description !== void 0) {
|
|
441
|
-
result.description = description;
|
|
442
|
-
}
|
|
443
|
-
return result;
|
|
444
|
-
}
|
|
445
|
-
ChangeAnnotation2.create = create;
|
|
446
|
-
function is(value) {
|
|
447
|
-
const candidate = value;
|
|
448
|
-
return Is.objectLiteral(candidate) && Is.string(candidate.label) && (Is.boolean(candidate.needsConfirmation) || candidate.needsConfirmation === void 0) && (Is.string(candidate.description) || candidate.description === void 0);
|
|
449
|
-
}
|
|
450
|
-
ChangeAnnotation2.is = is;
|
|
451
|
-
})(ChangeAnnotation || (ChangeAnnotation = {}));
|
|
452
|
-
var ChangeAnnotationIdentifier;
|
|
453
|
-
(function(ChangeAnnotationIdentifier2) {
|
|
454
|
-
function is(value) {
|
|
455
|
-
const candidate = value;
|
|
456
|
-
return Is.string(candidate);
|
|
457
|
-
}
|
|
458
|
-
ChangeAnnotationIdentifier2.is = is;
|
|
459
|
-
})(ChangeAnnotationIdentifier || (ChangeAnnotationIdentifier = {}));
|
|
460
|
-
var AnnotatedTextEdit;
|
|
461
|
-
(function(AnnotatedTextEdit2) {
|
|
462
|
-
function replace(range, newText, annotation) {
|
|
463
|
-
return { range, newText, annotationId: annotation };
|
|
464
|
-
}
|
|
465
|
-
AnnotatedTextEdit2.replace = replace;
|
|
466
|
-
function insert(position, newText, annotation) {
|
|
467
|
-
return { range: { start: position, end: position }, newText, annotationId: annotation };
|
|
468
|
-
}
|
|
469
|
-
AnnotatedTextEdit2.insert = insert;
|
|
470
|
-
function del(range, annotation) {
|
|
471
|
-
return { range, newText: "", annotationId: annotation };
|
|
472
|
-
}
|
|
473
|
-
AnnotatedTextEdit2.del = del;
|
|
474
|
-
function is(value) {
|
|
475
|
-
const candidate = value;
|
|
476
|
-
return TextEdit.is(candidate) && (ChangeAnnotation.is(candidate.annotationId) || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
|
477
|
-
}
|
|
478
|
-
AnnotatedTextEdit2.is = is;
|
|
479
|
-
})(AnnotatedTextEdit || (AnnotatedTextEdit = {}));
|
|
480
|
-
var TextDocumentEdit;
|
|
481
|
-
(function(TextDocumentEdit2) {
|
|
482
|
-
function create(textDocument, edits) {
|
|
483
|
-
return { textDocument, edits };
|
|
484
|
-
}
|
|
485
|
-
TextDocumentEdit2.create = create;
|
|
486
|
-
function is(value) {
|
|
487
|
-
let candidate = value;
|
|
488
|
-
return Is.defined(candidate) && OptionalVersionedTextDocumentIdentifier.is(candidate.textDocument) && Array.isArray(candidate.edits);
|
|
489
|
-
}
|
|
490
|
-
TextDocumentEdit2.is = is;
|
|
491
|
-
})(TextDocumentEdit || (TextDocumentEdit = {}));
|
|
492
|
-
var CreateFile;
|
|
493
|
-
(function(CreateFile2) {
|
|
494
|
-
function create(uri, options, annotation) {
|
|
495
|
-
let result = {
|
|
496
|
-
kind: "create",
|
|
497
|
-
uri
|
|
498
|
-
};
|
|
499
|
-
if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) {
|
|
500
|
-
result.options = options;
|
|
501
|
-
}
|
|
502
|
-
if (annotation !== void 0) {
|
|
503
|
-
result.annotationId = annotation;
|
|
504
|
-
}
|
|
505
|
-
return result;
|
|
506
|
-
}
|
|
507
|
-
CreateFile2.create = create;
|
|
508
|
-
function is(value) {
|
|
509
|
-
let candidate = value;
|
|
510
|
-
return candidate && candidate.kind === "create" && Is.string(candidate.uri) && (candidate.options === void 0 || (candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
|
511
|
-
}
|
|
512
|
-
CreateFile2.is = is;
|
|
513
|
-
})(CreateFile || (CreateFile = {}));
|
|
514
|
-
var RenameFile;
|
|
515
|
-
(function(RenameFile2) {
|
|
516
|
-
function create(oldUri, newUri, options, annotation) {
|
|
517
|
-
let result = {
|
|
518
|
-
kind: "rename",
|
|
519
|
-
oldUri,
|
|
520
|
-
newUri
|
|
521
|
-
};
|
|
522
|
-
if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) {
|
|
523
|
-
result.options = options;
|
|
524
|
-
}
|
|
525
|
-
if (annotation !== void 0) {
|
|
526
|
-
result.annotationId = annotation;
|
|
527
|
-
}
|
|
528
|
-
return result;
|
|
529
|
-
}
|
|
530
|
-
RenameFile2.create = create;
|
|
531
|
-
function is(value) {
|
|
532
|
-
let candidate = value;
|
|
533
|
-
return candidate && candidate.kind === "rename" && Is.string(candidate.oldUri) && Is.string(candidate.newUri) && (candidate.options === void 0 || (candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
|
534
|
-
}
|
|
535
|
-
RenameFile2.is = is;
|
|
536
|
-
})(RenameFile || (RenameFile = {}));
|
|
537
|
-
var DeleteFile;
|
|
538
|
-
(function(DeleteFile2) {
|
|
539
|
-
function create(uri, options, annotation) {
|
|
540
|
-
let result = {
|
|
541
|
-
kind: "delete",
|
|
542
|
-
uri
|
|
543
|
-
};
|
|
544
|
-
if (options !== void 0 && (options.recursive !== void 0 || options.ignoreIfNotExists !== void 0)) {
|
|
545
|
-
result.options = options;
|
|
546
|
-
}
|
|
547
|
-
if (annotation !== void 0) {
|
|
548
|
-
result.annotationId = annotation;
|
|
549
|
-
}
|
|
550
|
-
return result;
|
|
551
|
-
}
|
|
552
|
-
DeleteFile2.create = create;
|
|
553
|
-
function is(value) {
|
|
554
|
-
let candidate = value;
|
|
555
|
-
return candidate && candidate.kind === "delete" && Is.string(candidate.uri) && (candidate.options === void 0 || (candidate.options.recursive === void 0 || Is.boolean(candidate.options.recursive)) && (candidate.options.ignoreIfNotExists === void 0 || Is.boolean(candidate.options.ignoreIfNotExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
|
556
|
-
}
|
|
557
|
-
DeleteFile2.is = is;
|
|
558
|
-
})(DeleteFile || (DeleteFile = {}));
|
|
559
|
-
var WorkspaceEdit;
|
|
560
|
-
(function(WorkspaceEdit2) {
|
|
561
|
-
function is(value) {
|
|
562
|
-
let candidate = value;
|
|
563
|
-
return candidate && (candidate.changes !== void 0 || candidate.documentChanges !== void 0) && (candidate.documentChanges === void 0 || candidate.documentChanges.every((change) => {
|
|
564
|
-
if (Is.string(change.kind)) {
|
|
565
|
-
return CreateFile.is(change) || RenameFile.is(change) || DeleteFile.is(change);
|
|
566
|
-
} else {
|
|
567
|
-
return TextDocumentEdit.is(change);
|
|
568
|
-
}
|
|
569
|
-
}));
|
|
570
|
-
}
|
|
571
|
-
WorkspaceEdit2.is = is;
|
|
572
|
-
})(WorkspaceEdit || (WorkspaceEdit = {}));
|
|
573
|
-
var TextDocumentIdentifier;
|
|
574
|
-
(function(TextDocumentIdentifier2) {
|
|
575
|
-
function create(uri) {
|
|
576
|
-
return { uri };
|
|
577
|
-
}
|
|
578
|
-
TextDocumentIdentifier2.create = create;
|
|
579
|
-
function is(value) {
|
|
580
|
-
let candidate = value;
|
|
581
|
-
return Is.defined(candidate) && Is.string(candidate.uri);
|
|
582
|
-
}
|
|
583
|
-
TextDocumentIdentifier2.is = is;
|
|
584
|
-
})(TextDocumentIdentifier || (TextDocumentIdentifier = {}));
|
|
585
|
-
var VersionedTextDocumentIdentifier;
|
|
586
|
-
(function(VersionedTextDocumentIdentifier2) {
|
|
587
|
-
function create(uri, version) {
|
|
588
|
-
return { uri, version };
|
|
589
|
-
}
|
|
590
|
-
VersionedTextDocumentIdentifier2.create = create;
|
|
591
|
-
function is(value) {
|
|
592
|
-
let candidate = value;
|
|
593
|
-
return Is.defined(candidate) && Is.string(candidate.uri) && Is.integer(candidate.version);
|
|
594
|
-
}
|
|
595
|
-
VersionedTextDocumentIdentifier2.is = is;
|
|
596
|
-
})(VersionedTextDocumentIdentifier || (VersionedTextDocumentIdentifier = {}));
|
|
597
|
-
var OptionalVersionedTextDocumentIdentifier;
|
|
598
|
-
(function(OptionalVersionedTextDocumentIdentifier2) {
|
|
599
|
-
function create(uri, version) {
|
|
600
|
-
return { uri, version };
|
|
601
|
-
}
|
|
602
|
-
OptionalVersionedTextDocumentIdentifier2.create = create;
|
|
603
|
-
function is(value) {
|
|
604
|
-
let candidate = value;
|
|
605
|
-
return Is.defined(candidate) && Is.string(candidate.uri) && (candidate.version === null || Is.integer(candidate.version));
|
|
606
|
-
}
|
|
607
|
-
OptionalVersionedTextDocumentIdentifier2.is = is;
|
|
608
|
-
})(OptionalVersionedTextDocumentIdentifier || (OptionalVersionedTextDocumentIdentifier = {}));
|
|
609
|
-
var TextDocumentItem;
|
|
610
|
-
(function(TextDocumentItem2) {
|
|
611
|
-
function create(uri, languageId, version, text) {
|
|
612
|
-
return { uri, languageId, version, text };
|
|
613
|
-
}
|
|
614
|
-
TextDocumentItem2.create = create;
|
|
615
|
-
function is(value) {
|
|
616
|
-
let candidate = value;
|
|
617
|
-
return Is.defined(candidate) && Is.string(candidate.uri) && Is.string(candidate.languageId) && Is.integer(candidate.version) && Is.string(candidate.text);
|
|
618
|
-
}
|
|
619
|
-
TextDocumentItem2.is = is;
|
|
620
|
-
})(TextDocumentItem || (TextDocumentItem = {}));
|
|
621
|
-
var MarkupKind;
|
|
622
|
-
(function(MarkupKind2) {
|
|
623
|
-
MarkupKind2.PlainText = "plaintext";
|
|
624
|
-
MarkupKind2.Markdown = "markdown";
|
|
625
|
-
function is(value) {
|
|
626
|
-
const candidate = value;
|
|
627
|
-
return candidate === MarkupKind2.PlainText || candidate === MarkupKind2.Markdown;
|
|
628
|
-
}
|
|
629
|
-
MarkupKind2.is = is;
|
|
630
|
-
})(MarkupKind || (MarkupKind = {}));
|
|
631
|
-
var MarkupContent;
|
|
632
|
-
(function(MarkupContent2) {
|
|
633
|
-
function is(value) {
|
|
634
|
-
const candidate = value;
|
|
635
|
-
return Is.objectLiteral(value) && MarkupKind.is(candidate.kind) && Is.string(candidate.value);
|
|
636
|
-
}
|
|
637
|
-
MarkupContent2.is = is;
|
|
638
|
-
})(MarkupContent || (MarkupContent = {}));
|
|
639
|
-
var CompletionItemKind;
|
|
640
|
-
(function(CompletionItemKind2) {
|
|
641
|
-
CompletionItemKind2.Text = 1;
|
|
642
|
-
CompletionItemKind2.Method = 2;
|
|
643
|
-
CompletionItemKind2.Function = 3;
|
|
644
|
-
CompletionItemKind2.Constructor = 4;
|
|
645
|
-
CompletionItemKind2.Field = 5;
|
|
646
|
-
CompletionItemKind2.Variable = 6;
|
|
647
|
-
CompletionItemKind2.Class = 7;
|
|
648
|
-
CompletionItemKind2.Interface = 8;
|
|
649
|
-
CompletionItemKind2.Module = 9;
|
|
650
|
-
CompletionItemKind2.Property = 10;
|
|
651
|
-
CompletionItemKind2.Unit = 11;
|
|
652
|
-
CompletionItemKind2.Value = 12;
|
|
653
|
-
CompletionItemKind2.Enum = 13;
|
|
654
|
-
CompletionItemKind2.Keyword = 14;
|
|
655
|
-
CompletionItemKind2.Snippet = 15;
|
|
656
|
-
CompletionItemKind2.Color = 16;
|
|
657
|
-
CompletionItemKind2.File = 17;
|
|
658
|
-
CompletionItemKind2.Reference = 18;
|
|
659
|
-
CompletionItemKind2.Folder = 19;
|
|
660
|
-
CompletionItemKind2.EnumMember = 20;
|
|
661
|
-
CompletionItemKind2.Constant = 21;
|
|
662
|
-
CompletionItemKind2.Struct = 22;
|
|
663
|
-
CompletionItemKind2.Event = 23;
|
|
664
|
-
CompletionItemKind2.Operator = 24;
|
|
665
|
-
CompletionItemKind2.TypeParameter = 25;
|
|
666
|
-
})(CompletionItemKind || (CompletionItemKind = {}));
|
|
667
|
-
var InsertTextFormat;
|
|
668
|
-
(function(InsertTextFormat2) {
|
|
669
|
-
InsertTextFormat2.PlainText = 1;
|
|
670
|
-
InsertTextFormat2.Snippet = 2;
|
|
671
|
-
})(InsertTextFormat || (InsertTextFormat = {}));
|
|
672
|
-
var CompletionItemTag;
|
|
673
|
-
(function(CompletionItemTag2) {
|
|
674
|
-
CompletionItemTag2.Deprecated = 1;
|
|
675
|
-
})(CompletionItemTag || (CompletionItemTag = {}));
|
|
676
|
-
var InsertReplaceEdit;
|
|
677
|
-
(function(InsertReplaceEdit2) {
|
|
678
|
-
function create(newText, insert, replace) {
|
|
679
|
-
return { newText, insert, replace };
|
|
680
|
-
}
|
|
681
|
-
InsertReplaceEdit2.create = create;
|
|
682
|
-
function is(value) {
|
|
683
|
-
const candidate = value;
|
|
684
|
-
return candidate && Is.string(candidate.newText) && Range.is(candidate.insert) && Range.is(candidate.replace);
|
|
685
|
-
}
|
|
686
|
-
InsertReplaceEdit2.is = is;
|
|
687
|
-
})(InsertReplaceEdit || (InsertReplaceEdit = {}));
|
|
688
|
-
var InsertTextMode;
|
|
689
|
-
(function(InsertTextMode2) {
|
|
690
|
-
InsertTextMode2.asIs = 1;
|
|
691
|
-
InsertTextMode2.adjustIndentation = 2;
|
|
692
|
-
})(InsertTextMode || (InsertTextMode = {}));
|
|
693
|
-
var CompletionItemLabelDetails;
|
|
694
|
-
(function(CompletionItemLabelDetails2) {
|
|
695
|
-
function is(value) {
|
|
696
|
-
const candidate = value;
|
|
697
|
-
return candidate && (Is.string(candidate.detail) || candidate.detail === void 0) && (Is.string(candidate.description) || candidate.description === void 0);
|
|
698
|
-
}
|
|
699
|
-
CompletionItemLabelDetails2.is = is;
|
|
700
|
-
})(CompletionItemLabelDetails || (CompletionItemLabelDetails = {}));
|
|
701
|
-
var CompletionItem;
|
|
702
|
-
(function(CompletionItem2) {
|
|
703
|
-
function create(label) {
|
|
704
|
-
return { label };
|
|
705
|
-
}
|
|
706
|
-
CompletionItem2.create = create;
|
|
707
|
-
})(CompletionItem || (CompletionItem = {}));
|
|
708
|
-
var CompletionList;
|
|
709
|
-
(function(CompletionList2) {
|
|
710
|
-
function create(items, isIncomplete) {
|
|
711
|
-
return { items: items ? items : [], isIncomplete: !!isIncomplete };
|
|
712
|
-
}
|
|
713
|
-
CompletionList2.create = create;
|
|
714
|
-
})(CompletionList || (CompletionList = {}));
|
|
715
|
-
var MarkedString;
|
|
716
|
-
(function(MarkedString2) {
|
|
717
|
-
function fromPlainText(plainText) {
|
|
718
|
-
return plainText.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&");
|
|
719
|
-
}
|
|
720
|
-
MarkedString2.fromPlainText = fromPlainText;
|
|
721
|
-
function is(value) {
|
|
722
|
-
const candidate = value;
|
|
723
|
-
return Is.string(candidate) || Is.objectLiteral(candidate) && Is.string(candidate.language) && Is.string(candidate.value);
|
|
724
|
-
}
|
|
725
|
-
MarkedString2.is = is;
|
|
726
|
-
})(MarkedString || (MarkedString = {}));
|
|
727
|
-
var Hover;
|
|
728
|
-
(function(Hover2) {
|
|
729
|
-
function is(value) {
|
|
730
|
-
let candidate = value;
|
|
731
|
-
return !!candidate && Is.objectLiteral(candidate) && (MarkupContent.is(candidate.contents) || MarkedString.is(candidate.contents) || Is.typedArray(candidate.contents, MarkedString.is)) && (value.range === void 0 || Range.is(value.range));
|
|
732
|
-
}
|
|
733
|
-
Hover2.is = is;
|
|
734
|
-
})(Hover || (Hover = {}));
|
|
735
|
-
var ParameterInformation;
|
|
736
|
-
(function(ParameterInformation2) {
|
|
737
|
-
function create(label, documentation) {
|
|
738
|
-
return documentation ? { label, documentation } : { label };
|
|
739
|
-
}
|
|
740
|
-
ParameterInformation2.create = create;
|
|
741
|
-
})(ParameterInformation || (ParameterInformation = {}));
|
|
742
|
-
var SignatureInformation;
|
|
743
|
-
(function(SignatureInformation2) {
|
|
744
|
-
function create(label, documentation, ...parameters) {
|
|
745
|
-
let result = { label };
|
|
746
|
-
if (Is.defined(documentation)) {
|
|
747
|
-
result.documentation = documentation;
|
|
748
|
-
}
|
|
749
|
-
if (Is.defined(parameters)) {
|
|
750
|
-
result.parameters = parameters;
|
|
751
|
-
} else {
|
|
752
|
-
result.parameters = [];
|
|
753
|
-
}
|
|
754
|
-
return result;
|
|
755
|
-
}
|
|
756
|
-
SignatureInformation2.create = create;
|
|
757
|
-
})(SignatureInformation || (SignatureInformation = {}));
|
|
758
|
-
var DocumentHighlightKind;
|
|
759
|
-
(function(DocumentHighlightKind2) {
|
|
760
|
-
DocumentHighlightKind2.Text = 1;
|
|
761
|
-
DocumentHighlightKind2.Read = 2;
|
|
762
|
-
DocumentHighlightKind2.Write = 3;
|
|
763
|
-
})(DocumentHighlightKind || (DocumentHighlightKind = {}));
|
|
764
|
-
var DocumentHighlight;
|
|
765
|
-
(function(DocumentHighlight2) {
|
|
766
|
-
function create(range, kind) {
|
|
767
|
-
let result = { range };
|
|
768
|
-
if (Is.number(kind)) {
|
|
769
|
-
result.kind = kind;
|
|
770
|
-
}
|
|
771
|
-
return result;
|
|
772
|
-
}
|
|
773
|
-
DocumentHighlight2.create = create;
|
|
774
|
-
})(DocumentHighlight || (DocumentHighlight = {}));
|
|
775
|
-
var SymbolKind;
|
|
776
|
-
(function(SymbolKind2) {
|
|
777
|
-
SymbolKind2.File = 1;
|
|
778
|
-
SymbolKind2.Module = 2;
|
|
779
|
-
SymbolKind2.Namespace = 3;
|
|
780
|
-
SymbolKind2.Package = 4;
|
|
781
|
-
SymbolKind2.Class = 5;
|
|
782
|
-
SymbolKind2.Method = 6;
|
|
783
|
-
SymbolKind2.Property = 7;
|
|
784
|
-
SymbolKind2.Field = 8;
|
|
785
|
-
SymbolKind2.Constructor = 9;
|
|
786
|
-
SymbolKind2.Enum = 10;
|
|
787
|
-
SymbolKind2.Interface = 11;
|
|
788
|
-
SymbolKind2.Function = 12;
|
|
789
|
-
SymbolKind2.Variable = 13;
|
|
790
|
-
SymbolKind2.Constant = 14;
|
|
791
|
-
SymbolKind2.String = 15;
|
|
792
|
-
SymbolKind2.Number = 16;
|
|
793
|
-
SymbolKind2.Boolean = 17;
|
|
794
|
-
SymbolKind2.Array = 18;
|
|
795
|
-
SymbolKind2.Object = 19;
|
|
796
|
-
SymbolKind2.Key = 20;
|
|
797
|
-
SymbolKind2.Null = 21;
|
|
798
|
-
SymbolKind2.EnumMember = 22;
|
|
799
|
-
SymbolKind2.Struct = 23;
|
|
800
|
-
SymbolKind2.Event = 24;
|
|
801
|
-
SymbolKind2.Operator = 25;
|
|
802
|
-
SymbolKind2.TypeParameter = 26;
|
|
803
|
-
})(SymbolKind || (SymbolKind = {}));
|
|
804
|
-
var SymbolTag;
|
|
805
|
-
(function(SymbolTag2) {
|
|
806
|
-
SymbolTag2.Deprecated = 1;
|
|
807
|
-
})(SymbolTag || (SymbolTag = {}));
|
|
808
|
-
var SymbolInformation;
|
|
809
|
-
(function(SymbolInformation2) {
|
|
810
|
-
function create(name, kind, range, uri, containerName) {
|
|
811
|
-
let result = {
|
|
812
|
-
name,
|
|
813
|
-
kind,
|
|
814
|
-
location: { uri, range }
|
|
815
|
-
};
|
|
816
|
-
if (containerName) {
|
|
817
|
-
result.containerName = containerName;
|
|
818
|
-
}
|
|
819
|
-
return result;
|
|
820
|
-
}
|
|
821
|
-
SymbolInformation2.create = create;
|
|
822
|
-
})(SymbolInformation || (SymbolInformation = {}));
|
|
823
|
-
var WorkspaceSymbol;
|
|
824
|
-
(function(WorkspaceSymbol2) {
|
|
825
|
-
function create(name, kind, uri, range) {
|
|
826
|
-
return range !== void 0 ? { name, kind, location: { uri, range } } : { name, kind, location: { uri } };
|
|
827
|
-
}
|
|
828
|
-
WorkspaceSymbol2.create = create;
|
|
829
|
-
})(WorkspaceSymbol || (WorkspaceSymbol = {}));
|
|
830
|
-
var DocumentSymbol;
|
|
831
|
-
(function(DocumentSymbol2) {
|
|
832
|
-
function create(name, detail, kind, range, selectionRange, children) {
|
|
833
|
-
let result = {
|
|
834
|
-
name,
|
|
835
|
-
detail,
|
|
836
|
-
kind,
|
|
837
|
-
range,
|
|
838
|
-
selectionRange
|
|
839
|
-
};
|
|
840
|
-
if (children !== void 0) {
|
|
841
|
-
result.children = children;
|
|
842
|
-
}
|
|
843
|
-
return result;
|
|
844
|
-
}
|
|
845
|
-
DocumentSymbol2.create = create;
|
|
846
|
-
function is(value) {
|
|
847
|
-
let candidate = value;
|
|
848
|
-
return candidate && Is.string(candidate.name) && Is.number(candidate.kind) && Range.is(candidate.range) && Range.is(candidate.selectionRange) && (candidate.detail === void 0 || Is.string(candidate.detail)) && (candidate.deprecated === void 0 || Is.boolean(candidate.deprecated)) && (candidate.children === void 0 || Array.isArray(candidate.children)) && (candidate.tags === void 0 || Array.isArray(candidate.tags));
|
|
849
|
-
}
|
|
850
|
-
DocumentSymbol2.is = is;
|
|
851
|
-
})(DocumentSymbol || (DocumentSymbol = {}));
|
|
852
|
-
var CodeActionKind;
|
|
853
|
-
(function(CodeActionKind2) {
|
|
854
|
-
CodeActionKind2.Empty = "";
|
|
855
|
-
CodeActionKind2.QuickFix = "quickfix";
|
|
856
|
-
CodeActionKind2.Refactor = "refactor";
|
|
857
|
-
CodeActionKind2.RefactorExtract = "refactor.extract";
|
|
858
|
-
CodeActionKind2.RefactorInline = "refactor.inline";
|
|
859
|
-
CodeActionKind2.RefactorRewrite = "refactor.rewrite";
|
|
860
|
-
CodeActionKind2.Source = "source";
|
|
861
|
-
CodeActionKind2.SourceOrganizeImports = "source.organizeImports";
|
|
862
|
-
CodeActionKind2.SourceFixAll = "source.fixAll";
|
|
863
|
-
})(CodeActionKind || (CodeActionKind = {}));
|
|
864
|
-
var CodeActionTriggerKind;
|
|
865
|
-
(function(CodeActionTriggerKind2) {
|
|
866
|
-
CodeActionTriggerKind2.Invoked = 1;
|
|
867
|
-
CodeActionTriggerKind2.Automatic = 2;
|
|
868
|
-
})(CodeActionTriggerKind || (CodeActionTriggerKind = {}));
|
|
869
|
-
var CodeActionContext;
|
|
870
|
-
(function(CodeActionContext2) {
|
|
871
|
-
function create(diagnostics, only, triggerKind) {
|
|
872
|
-
let result = { diagnostics };
|
|
873
|
-
if (only !== void 0 && only !== null) {
|
|
874
|
-
result.only = only;
|
|
875
|
-
}
|
|
876
|
-
if (triggerKind !== void 0 && triggerKind !== null) {
|
|
877
|
-
result.triggerKind = triggerKind;
|
|
878
|
-
}
|
|
879
|
-
return result;
|
|
880
|
-
}
|
|
881
|
-
CodeActionContext2.create = create;
|
|
882
|
-
function is(value) {
|
|
883
|
-
let candidate = value;
|
|
884
|
-
return Is.defined(candidate) && Is.typedArray(candidate.diagnostics, Diagnostic.is) && (candidate.only === void 0 || Is.typedArray(candidate.only, Is.string)) && (candidate.triggerKind === void 0 || candidate.triggerKind === CodeActionTriggerKind.Invoked || candidate.triggerKind === CodeActionTriggerKind.Automatic);
|
|
885
|
-
}
|
|
886
|
-
CodeActionContext2.is = is;
|
|
887
|
-
})(CodeActionContext || (CodeActionContext = {}));
|
|
888
|
-
var CodeAction;
|
|
889
|
-
(function(CodeAction2) {
|
|
890
|
-
function create(title, kindOrCommandOrEdit, kind) {
|
|
891
|
-
let result = { title };
|
|
892
|
-
let checkKind = true;
|
|
893
|
-
if (typeof kindOrCommandOrEdit === "string") {
|
|
894
|
-
checkKind = false;
|
|
895
|
-
result.kind = kindOrCommandOrEdit;
|
|
896
|
-
} else if (Command.is(kindOrCommandOrEdit)) {
|
|
897
|
-
result.command = kindOrCommandOrEdit;
|
|
898
|
-
} else {
|
|
899
|
-
result.edit = kindOrCommandOrEdit;
|
|
900
|
-
}
|
|
901
|
-
if (checkKind && kind !== void 0) {
|
|
902
|
-
result.kind = kind;
|
|
903
|
-
}
|
|
904
|
-
return result;
|
|
905
|
-
}
|
|
906
|
-
CodeAction2.create = create;
|
|
907
|
-
function is(value) {
|
|
908
|
-
let candidate = value;
|
|
909
|
-
return candidate && Is.string(candidate.title) && (candidate.diagnostics === void 0 || Is.typedArray(candidate.diagnostics, Diagnostic.is)) && (candidate.kind === void 0 || Is.string(candidate.kind)) && (candidate.edit !== void 0 || candidate.command !== void 0) && (candidate.command === void 0 || Command.is(candidate.command)) && (candidate.isPreferred === void 0 || Is.boolean(candidate.isPreferred)) && (candidate.edit === void 0 || WorkspaceEdit.is(candidate.edit));
|
|
910
|
-
}
|
|
911
|
-
CodeAction2.is = is;
|
|
912
|
-
})(CodeAction || (CodeAction = {}));
|
|
913
|
-
var CodeLens;
|
|
914
|
-
(function(CodeLens2) {
|
|
915
|
-
function create(range, data) {
|
|
916
|
-
let result = { range };
|
|
917
|
-
if (Is.defined(data)) {
|
|
918
|
-
result.data = data;
|
|
919
|
-
}
|
|
920
|
-
return result;
|
|
921
|
-
}
|
|
922
|
-
CodeLens2.create = create;
|
|
923
|
-
function is(value) {
|
|
924
|
-
let candidate = value;
|
|
925
|
-
return Is.defined(candidate) && Range.is(candidate.range) && (Is.undefined(candidate.command) || Command.is(candidate.command));
|
|
926
|
-
}
|
|
927
|
-
CodeLens2.is = is;
|
|
928
|
-
})(CodeLens || (CodeLens = {}));
|
|
929
|
-
var FormattingOptions;
|
|
930
|
-
(function(FormattingOptions2) {
|
|
931
|
-
function create(tabSize, insertSpaces) {
|
|
932
|
-
return { tabSize, insertSpaces };
|
|
933
|
-
}
|
|
934
|
-
FormattingOptions2.create = create;
|
|
935
|
-
function is(value) {
|
|
936
|
-
let candidate = value;
|
|
937
|
-
return Is.defined(candidate) && Is.uinteger(candidate.tabSize) && Is.boolean(candidate.insertSpaces);
|
|
938
|
-
}
|
|
939
|
-
FormattingOptions2.is = is;
|
|
940
|
-
})(FormattingOptions || (FormattingOptions = {}));
|
|
941
|
-
var DocumentLink;
|
|
942
|
-
(function(DocumentLink2) {
|
|
943
|
-
function create(range, target, data) {
|
|
944
|
-
return { range, target, data };
|
|
945
|
-
}
|
|
946
|
-
DocumentLink2.create = create;
|
|
947
|
-
function is(value) {
|
|
948
|
-
let candidate = value;
|
|
949
|
-
return Is.defined(candidate) && Range.is(candidate.range) && (Is.undefined(candidate.target) || Is.string(candidate.target));
|
|
950
|
-
}
|
|
951
|
-
DocumentLink2.is = is;
|
|
952
|
-
})(DocumentLink || (DocumentLink = {}));
|
|
953
|
-
var SelectionRange;
|
|
954
|
-
(function(SelectionRange2) {
|
|
955
|
-
function create(range, parent) {
|
|
956
|
-
return { range, parent };
|
|
957
|
-
}
|
|
958
|
-
SelectionRange2.create = create;
|
|
959
|
-
function is(value) {
|
|
960
|
-
let candidate = value;
|
|
961
|
-
return Is.objectLiteral(candidate) && Range.is(candidate.range) && (candidate.parent === void 0 || SelectionRange2.is(candidate.parent));
|
|
962
|
-
}
|
|
963
|
-
SelectionRange2.is = is;
|
|
964
|
-
})(SelectionRange || (SelectionRange = {}));
|
|
965
|
-
var SemanticTokenTypes;
|
|
966
|
-
(function(SemanticTokenTypes2) {
|
|
967
|
-
SemanticTokenTypes2["namespace"] = "namespace";
|
|
968
|
-
SemanticTokenTypes2["type"] = "type";
|
|
969
|
-
SemanticTokenTypes2["class"] = "class";
|
|
970
|
-
SemanticTokenTypes2["enum"] = "enum";
|
|
971
|
-
SemanticTokenTypes2["interface"] = "interface";
|
|
972
|
-
SemanticTokenTypes2["struct"] = "struct";
|
|
973
|
-
SemanticTokenTypes2["typeParameter"] = "typeParameter";
|
|
974
|
-
SemanticTokenTypes2["parameter"] = "parameter";
|
|
975
|
-
SemanticTokenTypes2["variable"] = "variable";
|
|
976
|
-
SemanticTokenTypes2["property"] = "property";
|
|
977
|
-
SemanticTokenTypes2["enumMember"] = "enumMember";
|
|
978
|
-
SemanticTokenTypes2["event"] = "event";
|
|
979
|
-
SemanticTokenTypes2["function"] = "function";
|
|
980
|
-
SemanticTokenTypes2["method"] = "method";
|
|
981
|
-
SemanticTokenTypes2["macro"] = "macro";
|
|
982
|
-
SemanticTokenTypes2["keyword"] = "keyword";
|
|
983
|
-
SemanticTokenTypes2["modifier"] = "modifier";
|
|
984
|
-
SemanticTokenTypes2["comment"] = "comment";
|
|
985
|
-
SemanticTokenTypes2["string"] = "string";
|
|
986
|
-
SemanticTokenTypes2["number"] = "number";
|
|
987
|
-
SemanticTokenTypes2["regexp"] = "regexp";
|
|
988
|
-
SemanticTokenTypes2["operator"] = "operator";
|
|
989
|
-
SemanticTokenTypes2["decorator"] = "decorator";
|
|
990
|
-
})(SemanticTokenTypes || (SemanticTokenTypes = {}));
|
|
991
|
-
var SemanticTokenModifiers;
|
|
992
|
-
(function(SemanticTokenModifiers2) {
|
|
993
|
-
SemanticTokenModifiers2["declaration"] = "declaration";
|
|
994
|
-
SemanticTokenModifiers2["definition"] = "definition";
|
|
995
|
-
SemanticTokenModifiers2["readonly"] = "readonly";
|
|
996
|
-
SemanticTokenModifiers2["static"] = "static";
|
|
997
|
-
SemanticTokenModifiers2["deprecated"] = "deprecated";
|
|
998
|
-
SemanticTokenModifiers2["abstract"] = "abstract";
|
|
999
|
-
SemanticTokenModifiers2["async"] = "async";
|
|
1000
|
-
SemanticTokenModifiers2["modification"] = "modification";
|
|
1001
|
-
SemanticTokenModifiers2["documentation"] = "documentation";
|
|
1002
|
-
SemanticTokenModifiers2["defaultLibrary"] = "defaultLibrary";
|
|
1003
|
-
})(SemanticTokenModifiers || (SemanticTokenModifiers = {}));
|
|
1004
|
-
var SemanticTokens;
|
|
1005
|
-
(function(SemanticTokens2) {
|
|
1006
|
-
function is(value) {
|
|
1007
|
-
const candidate = value;
|
|
1008
|
-
return Is.objectLiteral(candidate) && (candidate.resultId === void 0 || typeof candidate.resultId === "string") && Array.isArray(candidate.data) && (candidate.data.length === 0 || typeof candidate.data[0] === "number");
|
|
1009
|
-
}
|
|
1010
|
-
SemanticTokens2.is = is;
|
|
1011
|
-
})(SemanticTokens || (SemanticTokens = {}));
|
|
1012
|
-
var InlineValueText;
|
|
1013
|
-
(function(InlineValueText2) {
|
|
1014
|
-
function create(range, text) {
|
|
1015
|
-
return { range, text };
|
|
1016
|
-
}
|
|
1017
|
-
InlineValueText2.create = create;
|
|
1018
|
-
function is(value) {
|
|
1019
|
-
const candidate = value;
|
|
1020
|
-
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && Is.string(candidate.text);
|
|
1021
|
-
}
|
|
1022
|
-
InlineValueText2.is = is;
|
|
1023
|
-
})(InlineValueText || (InlineValueText = {}));
|
|
1024
|
-
var InlineValueVariableLookup;
|
|
1025
|
-
(function(InlineValueVariableLookup2) {
|
|
1026
|
-
function create(range, variableName, caseSensitiveLookup) {
|
|
1027
|
-
return { range, variableName, caseSensitiveLookup };
|
|
1028
|
-
}
|
|
1029
|
-
InlineValueVariableLookup2.create = create;
|
|
1030
|
-
function is(value) {
|
|
1031
|
-
const candidate = value;
|
|
1032
|
-
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && Is.boolean(candidate.caseSensitiveLookup) && (Is.string(candidate.variableName) || candidate.variableName === void 0);
|
|
1033
|
-
}
|
|
1034
|
-
InlineValueVariableLookup2.is = is;
|
|
1035
|
-
})(InlineValueVariableLookup || (InlineValueVariableLookup = {}));
|
|
1036
|
-
var InlineValueEvaluatableExpression;
|
|
1037
|
-
(function(InlineValueEvaluatableExpression2) {
|
|
1038
|
-
function create(range, expression) {
|
|
1039
|
-
return { range, expression };
|
|
1040
|
-
}
|
|
1041
|
-
InlineValueEvaluatableExpression2.create = create;
|
|
1042
|
-
function is(value) {
|
|
1043
|
-
const candidate = value;
|
|
1044
|
-
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && (Is.string(candidate.expression) || candidate.expression === void 0);
|
|
1045
|
-
}
|
|
1046
|
-
InlineValueEvaluatableExpression2.is = is;
|
|
1047
|
-
})(InlineValueEvaluatableExpression || (InlineValueEvaluatableExpression = {}));
|
|
1048
|
-
var InlineValueContext;
|
|
1049
|
-
(function(InlineValueContext2) {
|
|
1050
|
-
function create(frameId, stoppedLocation) {
|
|
1051
|
-
return { frameId, stoppedLocation };
|
|
1052
|
-
}
|
|
1053
|
-
InlineValueContext2.create = create;
|
|
1054
|
-
function is(value) {
|
|
1055
|
-
const candidate = value;
|
|
1056
|
-
return Is.defined(candidate) && Range.is(value.stoppedLocation);
|
|
1057
|
-
}
|
|
1058
|
-
InlineValueContext2.is = is;
|
|
1059
|
-
})(InlineValueContext || (InlineValueContext = {}));
|
|
1060
|
-
var InlayHintKind;
|
|
1061
|
-
(function(InlayHintKind2) {
|
|
1062
|
-
InlayHintKind2.Type = 1;
|
|
1063
|
-
InlayHintKind2.Parameter = 2;
|
|
1064
|
-
function is(value) {
|
|
1065
|
-
return value === 1 || value === 2;
|
|
1066
|
-
}
|
|
1067
|
-
InlayHintKind2.is = is;
|
|
1068
|
-
})(InlayHintKind || (InlayHintKind = {}));
|
|
1069
|
-
var InlayHintLabelPart;
|
|
1070
|
-
(function(InlayHintLabelPart2) {
|
|
1071
|
-
function create(value) {
|
|
1072
|
-
return { value };
|
|
1073
|
-
}
|
|
1074
|
-
InlayHintLabelPart2.create = create;
|
|
1075
|
-
function is(value) {
|
|
1076
|
-
const candidate = value;
|
|
1077
|
-
return Is.objectLiteral(candidate) && (candidate.tooltip === void 0 || Is.string(candidate.tooltip) || MarkupContent.is(candidate.tooltip)) && (candidate.location === void 0 || Location.is(candidate.location)) && (candidate.command === void 0 || Command.is(candidate.command));
|
|
1078
|
-
}
|
|
1079
|
-
InlayHintLabelPart2.is = is;
|
|
1080
|
-
})(InlayHintLabelPart || (InlayHintLabelPart = {}));
|
|
1081
|
-
var InlayHint;
|
|
1082
|
-
(function(InlayHint2) {
|
|
1083
|
-
function create(position, label, kind) {
|
|
1084
|
-
const result = { position, label };
|
|
1085
|
-
if (kind !== void 0) {
|
|
1086
|
-
result.kind = kind;
|
|
1087
|
-
}
|
|
1088
|
-
return result;
|
|
1089
|
-
}
|
|
1090
|
-
InlayHint2.create = create;
|
|
1091
|
-
function is(value) {
|
|
1092
|
-
const candidate = value;
|
|
1093
|
-
return Is.objectLiteral(candidate) && Position.is(candidate.position) && (Is.string(candidate.label) || Is.typedArray(candidate.label, InlayHintLabelPart.is)) && (candidate.kind === void 0 || InlayHintKind.is(candidate.kind)) && candidate.textEdits === void 0 || Is.typedArray(candidate.textEdits, TextEdit.is) && (candidate.tooltip === void 0 || Is.string(candidate.tooltip) || MarkupContent.is(candidate.tooltip)) && (candidate.paddingLeft === void 0 || Is.boolean(candidate.paddingLeft)) && (candidate.paddingRight === void 0 || Is.boolean(candidate.paddingRight));
|
|
1094
|
-
}
|
|
1095
|
-
InlayHint2.is = is;
|
|
1096
|
-
})(InlayHint || (InlayHint = {}));
|
|
1097
|
-
var StringValue;
|
|
1098
|
-
(function(StringValue2) {
|
|
1099
|
-
function createSnippet(value) {
|
|
1100
|
-
return { kind: "snippet", value };
|
|
1101
|
-
}
|
|
1102
|
-
StringValue2.createSnippet = createSnippet;
|
|
1103
|
-
})(StringValue || (StringValue = {}));
|
|
1104
|
-
var InlineCompletionItem;
|
|
1105
|
-
(function(InlineCompletionItem2) {
|
|
1106
|
-
function create(insertText, filterText, range, command) {
|
|
1107
|
-
return { insertText, filterText, range, command };
|
|
1108
|
-
}
|
|
1109
|
-
InlineCompletionItem2.create = create;
|
|
1110
|
-
})(InlineCompletionItem || (InlineCompletionItem = {}));
|
|
1111
|
-
var InlineCompletionList;
|
|
1112
|
-
(function(InlineCompletionList2) {
|
|
1113
|
-
function create(items) {
|
|
1114
|
-
return { items };
|
|
1115
|
-
}
|
|
1116
|
-
InlineCompletionList2.create = create;
|
|
1117
|
-
})(InlineCompletionList || (InlineCompletionList = {}));
|
|
1118
|
-
var InlineCompletionTriggerKind;
|
|
1119
|
-
(function(InlineCompletionTriggerKind2) {
|
|
1120
|
-
InlineCompletionTriggerKind2.Invoked = 0;
|
|
1121
|
-
InlineCompletionTriggerKind2.Automatic = 1;
|
|
1122
|
-
})(InlineCompletionTriggerKind || (InlineCompletionTriggerKind = {}));
|
|
1123
|
-
var SelectedCompletionInfo;
|
|
1124
|
-
(function(SelectedCompletionInfo2) {
|
|
1125
|
-
function create(range, text) {
|
|
1126
|
-
return { range, text };
|
|
1127
|
-
}
|
|
1128
|
-
SelectedCompletionInfo2.create = create;
|
|
1129
|
-
})(SelectedCompletionInfo || (SelectedCompletionInfo = {}));
|
|
1130
|
-
var InlineCompletionContext;
|
|
1131
|
-
(function(InlineCompletionContext2) {
|
|
1132
|
-
function create(triggerKind, selectedCompletionInfo) {
|
|
1133
|
-
return { triggerKind, selectedCompletionInfo };
|
|
1134
|
-
}
|
|
1135
|
-
InlineCompletionContext2.create = create;
|
|
1136
|
-
})(InlineCompletionContext || (InlineCompletionContext = {}));
|
|
1137
|
-
var WorkspaceFolder;
|
|
1138
|
-
(function(WorkspaceFolder2) {
|
|
1139
|
-
function is(value) {
|
|
1140
|
-
const candidate = value;
|
|
1141
|
-
return Is.objectLiteral(candidate) && URI.is(candidate.uri) && Is.string(candidate.name);
|
|
1142
|
-
}
|
|
1143
|
-
WorkspaceFolder2.is = is;
|
|
1144
|
-
})(WorkspaceFolder || (WorkspaceFolder = {}));
|
|
1145
|
-
var TextDocument;
|
|
1146
|
-
(function(TextDocument2) {
|
|
1147
|
-
function create(uri, languageId, version, content) {
|
|
1148
|
-
return new FullTextDocument(uri, languageId, version, content);
|
|
1149
|
-
}
|
|
1150
|
-
TextDocument2.create = create;
|
|
1151
|
-
function is(value) {
|
|
1152
|
-
let candidate = value;
|
|
1153
|
-
return Is.defined(candidate) && Is.string(candidate.uri) && (Is.undefined(candidate.languageId) || Is.string(candidate.languageId)) && Is.uinteger(candidate.lineCount) && Is.func(candidate.getText) && Is.func(candidate.positionAt) && Is.func(candidate.offsetAt) ? true : false;
|
|
1154
|
-
}
|
|
1155
|
-
TextDocument2.is = is;
|
|
1156
|
-
function applyEdits(document, edits) {
|
|
1157
|
-
let text = document.getText();
|
|
1158
|
-
let sortedEdits = mergeSort(edits, (a, b) => {
|
|
1159
|
-
let diff = a.range.start.line - b.range.start.line;
|
|
1160
|
-
if (diff === 0) {
|
|
1161
|
-
return a.range.start.character - b.range.start.character;
|
|
1162
|
-
}
|
|
1163
|
-
return diff;
|
|
1164
|
-
});
|
|
1165
|
-
let lastModifiedOffset = text.length;
|
|
1166
|
-
for (let i = sortedEdits.length - 1; i >= 0; i--) {
|
|
1167
|
-
let e = sortedEdits[i];
|
|
1168
|
-
let startOffset = document.offsetAt(e.range.start);
|
|
1169
|
-
let endOffset = document.offsetAt(e.range.end);
|
|
1170
|
-
if (endOffset <= lastModifiedOffset) {
|
|
1171
|
-
text = text.substring(0, startOffset) + e.newText + text.substring(endOffset, text.length);
|
|
1172
|
-
} else {
|
|
1173
|
-
throw new Error("Overlapping edit");
|
|
1174
|
-
}
|
|
1175
|
-
lastModifiedOffset = startOffset;
|
|
1176
|
-
}
|
|
1177
|
-
return text;
|
|
1178
|
-
}
|
|
1179
|
-
TextDocument2.applyEdits = applyEdits;
|
|
1180
|
-
function mergeSort(data, compare) {
|
|
1181
|
-
if (data.length <= 1) {
|
|
1182
|
-
return data;
|
|
1183
|
-
}
|
|
1184
|
-
const p = data.length / 2 | 0;
|
|
1185
|
-
const left = data.slice(0, p);
|
|
1186
|
-
const right = data.slice(p);
|
|
1187
|
-
mergeSort(left, compare);
|
|
1188
|
-
mergeSort(right, compare);
|
|
1189
|
-
let leftIdx = 0;
|
|
1190
|
-
let rightIdx = 0;
|
|
1191
|
-
let i = 0;
|
|
1192
|
-
while (leftIdx < left.length && rightIdx < right.length) {
|
|
1193
|
-
let ret = compare(left[leftIdx], right[rightIdx]);
|
|
1194
|
-
if (ret <= 0) {
|
|
1195
|
-
data[i++] = left[leftIdx++];
|
|
1196
|
-
} else {
|
|
1197
|
-
data[i++] = right[rightIdx++];
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
while (leftIdx < left.length) {
|
|
1201
|
-
data[i++] = left[leftIdx++];
|
|
1202
|
-
}
|
|
1203
|
-
while (rightIdx < right.length) {
|
|
1204
|
-
data[i++] = right[rightIdx++];
|
|
1205
|
-
}
|
|
1206
|
-
return data;
|
|
1207
|
-
}
|
|
1208
|
-
})(TextDocument || (TextDocument = {}));
|
|
1209
|
-
var FullTextDocument = class {
|
|
1210
|
-
constructor(uri, languageId, version, content) {
|
|
1211
|
-
this._uri = uri;
|
|
1212
|
-
this._languageId = languageId;
|
|
1213
|
-
this._version = version;
|
|
1214
|
-
this._content = content;
|
|
1215
|
-
this._lineOffsets = void 0;
|
|
1216
|
-
}
|
|
1217
|
-
get uri() {
|
|
1218
|
-
return this._uri;
|
|
1219
|
-
}
|
|
1220
|
-
get languageId() {
|
|
1221
|
-
return this._languageId;
|
|
1222
|
-
}
|
|
1223
|
-
get version() {
|
|
1224
|
-
return this._version;
|
|
1225
|
-
}
|
|
1226
|
-
getText(range) {
|
|
1227
|
-
if (range) {
|
|
1228
|
-
let start = this.offsetAt(range.start);
|
|
1229
|
-
let end = this.offsetAt(range.end);
|
|
1230
|
-
return this._content.substring(start, end);
|
|
1231
|
-
}
|
|
1232
|
-
return this._content;
|
|
1233
|
-
}
|
|
1234
|
-
update(event, version) {
|
|
1235
|
-
this._content = event.text;
|
|
1236
|
-
this._version = version;
|
|
1237
|
-
this._lineOffsets = void 0;
|
|
1238
|
-
}
|
|
1239
|
-
getLineOffsets() {
|
|
1240
|
-
if (this._lineOffsets === void 0) {
|
|
1241
|
-
let lineOffsets = [];
|
|
1242
|
-
let text = this._content;
|
|
1243
|
-
let isLineStart = true;
|
|
1244
|
-
for (let i = 0; i < text.length; i++) {
|
|
1245
|
-
if (isLineStart) {
|
|
1246
|
-
lineOffsets.push(i);
|
|
1247
|
-
isLineStart = false;
|
|
1248
|
-
}
|
|
1249
|
-
let ch = text.charAt(i);
|
|
1250
|
-
isLineStart = ch === "\r" || ch === "\n";
|
|
1251
|
-
if (ch === "\r" && i + 1 < text.length && text.charAt(i + 1) === "\n") {
|
|
1252
|
-
i++;
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
if (isLineStart && text.length > 0) {
|
|
1256
|
-
lineOffsets.push(text.length);
|
|
1257
|
-
}
|
|
1258
|
-
this._lineOffsets = lineOffsets;
|
|
1259
|
-
}
|
|
1260
|
-
return this._lineOffsets;
|
|
1261
|
-
}
|
|
1262
|
-
positionAt(offset) {
|
|
1263
|
-
offset = Math.max(Math.min(offset, this._content.length), 0);
|
|
1264
|
-
let lineOffsets = this.getLineOffsets();
|
|
1265
|
-
let low = 0, high = lineOffsets.length;
|
|
1266
|
-
if (high === 0) {
|
|
1267
|
-
return Position.create(0, offset);
|
|
1268
|
-
}
|
|
1269
|
-
while (low < high) {
|
|
1270
|
-
let mid = Math.floor((low + high) / 2);
|
|
1271
|
-
if (lineOffsets[mid] > offset) {
|
|
1272
|
-
high = mid;
|
|
1273
|
-
} else {
|
|
1274
|
-
low = mid + 1;
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
let line = low - 1;
|
|
1278
|
-
return Position.create(line, offset - lineOffsets[line]);
|
|
1279
|
-
}
|
|
1280
|
-
offsetAt(position) {
|
|
1281
|
-
let lineOffsets = this.getLineOffsets();
|
|
1282
|
-
if (position.line >= lineOffsets.length) {
|
|
1283
|
-
return this._content.length;
|
|
1284
|
-
} else if (position.line < 0) {
|
|
1285
|
-
return 0;
|
|
1286
|
-
}
|
|
1287
|
-
let lineOffset = lineOffsets[position.line];
|
|
1288
|
-
let nextLineOffset = position.line + 1 < lineOffsets.length ? lineOffsets[position.line + 1] : this._content.length;
|
|
1289
|
-
return Math.max(Math.min(lineOffset + position.character, nextLineOffset), lineOffset);
|
|
1290
|
-
}
|
|
1291
|
-
get lineCount() {
|
|
1292
|
-
return this.getLineOffsets().length;
|
|
1293
|
-
}
|
|
1294
|
-
};
|
|
1295
|
-
var Is;
|
|
1296
|
-
(function(Is2) {
|
|
1297
|
-
const toString = Object.prototype.toString;
|
|
1298
|
-
function defined(value) {
|
|
1299
|
-
return typeof value !== "undefined";
|
|
1300
|
-
}
|
|
1301
|
-
Is2.defined = defined;
|
|
1302
|
-
function undefined2(value) {
|
|
1303
|
-
return typeof value === "undefined";
|
|
1304
|
-
}
|
|
1305
|
-
Is2.undefined = undefined2;
|
|
1306
|
-
function boolean(value) {
|
|
1307
|
-
return value === true || value === false;
|
|
1308
|
-
}
|
|
1309
|
-
Is2.boolean = boolean;
|
|
1310
|
-
function string(value) {
|
|
1311
|
-
return toString.call(value) === "[object String]";
|
|
1312
|
-
}
|
|
1313
|
-
Is2.string = string;
|
|
1314
|
-
function number(value) {
|
|
1315
|
-
return toString.call(value) === "[object Number]";
|
|
1316
|
-
}
|
|
1317
|
-
Is2.number = number;
|
|
1318
|
-
function numberRange(value, min, max) {
|
|
1319
|
-
return toString.call(value) === "[object Number]" && min <= value && value <= max;
|
|
1320
|
-
}
|
|
1321
|
-
Is2.numberRange = numberRange;
|
|
1322
|
-
function integer2(value) {
|
|
1323
|
-
return toString.call(value) === "[object Number]" && -2147483648 <= value && value <= 2147483647;
|
|
1324
|
-
}
|
|
1325
|
-
Is2.integer = integer2;
|
|
1326
|
-
function uinteger2(value) {
|
|
1327
|
-
return toString.call(value) === "[object Number]" && 0 <= value && value <= 2147483647;
|
|
1328
|
-
}
|
|
1329
|
-
Is2.uinteger = uinteger2;
|
|
1330
|
-
function func(value) {
|
|
1331
|
-
return toString.call(value) === "[object Function]";
|
|
1332
|
-
}
|
|
1333
|
-
Is2.func = func;
|
|
1334
|
-
function objectLiteral(value) {
|
|
1335
|
-
return value !== null && typeof value === "object";
|
|
1336
|
-
}
|
|
1337
|
-
Is2.objectLiteral = objectLiteral;
|
|
1338
|
-
function typedArray(value, check) {
|
|
1339
|
-
return Array.isArray(value) && value.every(check);
|
|
1340
|
-
}
|
|
1341
|
-
Is2.typedArray = typedArray;
|
|
1342
|
-
})(Is || (Is = {}));
|
|
1343
|
-
|
|
1344
|
-
// src/language/common/lspLanguageFeatures.ts
|
|
1345
|
-
var DiagnosticsAdapter = class {
|
|
1346
|
-
constructor(_languageId, _worker, configChangeEvent) {
|
|
1347
|
-
this._languageId = _languageId;
|
|
1348
|
-
this._worker = _worker;
|
|
1349
|
-
this._disposables = [];
|
|
1350
|
-
this._listener = /* @__PURE__ */ Object.create(null);
|
|
1351
|
-
const onModelAdd = (model) => {
|
|
1352
|
-
let modeId = model.getLanguageId();
|
|
1353
|
-
if (modeId !== this._languageId) {
|
|
1354
|
-
return;
|
|
1355
|
-
}
|
|
1356
|
-
let handle;
|
|
1357
|
-
this._listener[model.uri.toString()] = model.onDidChangeContent(() => {
|
|
1358
|
-
window.clearTimeout(handle);
|
|
1359
|
-
handle = window.setTimeout(() => this._doValidate(model.uri, modeId), 500);
|
|
1360
|
-
});
|
|
1361
|
-
this._doValidate(model.uri, modeId);
|
|
1362
|
-
};
|
|
1363
|
-
const onModelRemoved = (model) => {
|
|
1364
|
-
monaco_editor_core_exports.editor.setModelMarkers(model, this._languageId, []);
|
|
1365
|
-
let uriStr = model.uri.toString();
|
|
1366
|
-
let listener = this._listener[uriStr];
|
|
1367
|
-
if (listener) {
|
|
1368
|
-
listener.dispose();
|
|
1369
|
-
delete this._listener[uriStr];
|
|
1370
|
-
}
|
|
1371
|
-
};
|
|
1372
|
-
this._disposables.push(monaco_editor_core_exports.editor.onDidCreateModel(onModelAdd));
|
|
1373
|
-
this._disposables.push(monaco_editor_core_exports.editor.onWillDisposeModel(onModelRemoved));
|
|
1374
|
-
this._disposables.push(
|
|
1375
|
-
monaco_editor_core_exports.editor.onDidChangeModelLanguage((event) => {
|
|
1376
|
-
onModelRemoved(event.model);
|
|
1377
|
-
onModelAdd(event.model);
|
|
1378
|
-
})
|
|
1379
|
-
);
|
|
1380
|
-
this._disposables.push(
|
|
1381
|
-
configChangeEvent((_) => {
|
|
1382
|
-
monaco_editor_core_exports.editor.getModels().forEach((model) => {
|
|
1383
|
-
if (model.getLanguageId() === this._languageId) {
|
|
1384
|
-
onModelRemoved(model);
|
|
1385
|
-
onModelAdd(model);
|
|
1386
|
-
}
|
|
1387
|
-
});
|
|
1388
|
-
})
|
|
1389
|
-
);
|
|
1390
|
-
this._disposables.push({
|
|
1391
|
-
dispose: () => {
|
|
1392
|
-
monaco_editor_core_exports.editor.getModels().forEach(onModelRemoved);
|
|
1393
|
-
for (let key in this._listener) {
|
|
1394
|
-
this._listener[key].dispose();
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
});
|
|
1398
|
-
monaco_editor_core_exports.editor.getModels().forEach(onModelAdd);
|
|
1399
|
-
}
|
|
1400
|
-
dispose() {
|
|
1401
|
-
this._disposables.forEach((d) => d && d.dispose());
|
|
1402
|
-
this._disposables.length = 0;
|
|
1403
|
-
}
|
|
1404
|
-
_doValidate(resource, languageId) {
|
|
1405
|
-
this._worker(resource).then((worker) => {
|
|
1406
|
-
return worker.doValidation(resource.toString());
|
|
1407
|
-
}).then((diagnostics) => {
|
|
1408
|
-
const markers = diagnostics.map((d) => toDiagnostics(resource, d));
|
|
1409
|
-
let model = monaco_editor_core_exports.editor.getModel(resource);
|
|
1410
|
-
if (model && model.getLanguageId() === languageId) {
|
|
1411
|
-
monaco_editor_core_exports.editor.setModelMarkers(model, languageId, markers);
|
|
1412
|
-
}
|
|
1413
|
-
}).then(void 0, (err) => {
|
|
1414
|
-
console.error(err);
|
|
1415
|
-
});
|
|
1416
|
-
}
|
|
1417
|
-
};
|
|
1418
|
-
function toSeverity(lsSeverity) {
|
|
1419
|
-
switch (lsSeverity) {
|
|
1420
|
-
case DiagnosticSeverity.Error:
|
|
1421
|
-
return monaco_editor_core_exports.MarkerSeverity.Error;
|
|
1422
|
-
case DiagnosticSeverity.Warning:
|
|
1423
|
-
return monaco_editor_core_exports.MarkerSeverity.Warning;
|
|
1424
|
-
case DiagnosticSeverity.Information:
|
|
1425
|
-
return monaco_editor_core_exports.MarkerSeverity.Info;
|
|
1426
|
-
case DiagnosticSeverity.Hint:
|
|
1427
|
-
return monaco_editor_core_exports.MarkerSeverity.Hint;
|
|
1428
|
-
default:
|
|
1429
|
-
return monaco_editor_core_exports.MarkerSeverity.Info;
|
|
1430
|
-
}
|
|
1431
|
-
}
|
|
1432
|
-
function toDiagnostics(resource, diag) {
|
|
1433
|
-
let code = typeof diag.code === "number" ? String(diag.code) : diag.code;
|
|
1434
|
-
return {
|
|
1435
|
-
severity: toSeverity(diag.severity),
|
|
1436
|
-
startLineNumber: diag.range.start.line + 1,
|
|
1437
|
-
startColumn: diag.range.start.character + 1,
|
|
1438
|
-
endLineNumber: diag.range.end.line + 1,
|
|
1439
|
-
endColumn: diag.range.end.character + 1,
|
|
1440
|
-
message: diag.message,
|
|
1441
|
-
code,
|
|
1442
|
-
source: diag.source
|
|
1443
|
-
};
|
|
1444
|
-
}
|
|
1445
|
-
var CompletionAdapter = class {
|
|
1446
|
-
constructor(_worker, _triggerCharacters) {
|
|
1447
|
-
this._worker = _worker;
|
|
1448
|
-
this._triggerCharacters = _triggerCharacters;
|
|
1449
|
-
}
|
|
1450
|
-
get triggerCharacters() {
|
|
1451
|
-
return this._triggerCharacters;
|
|
1452
|
-
}
|
|
1453
|
-
provideCompletionItems(model, position, context, token) {
|
|
1454
|
-
const resource = model.uri;
|
|
1455
|
-
return this._worker(resource).then((worker) => {
|
|
1456
|
-
return worker.doComplete(resource.toString(), fromPosition(position));
|
|
1457
|
-
}).then((info) => {
|
|
1458
|
-
if (!info) {
|
|
1459
|
-
return;
|
|
1460
|
-
}
|
|
1461
|
-
const wordInfo = model.getWordUntilPosition(position);
|
|
1462
|
-
const wordRange = new monaco_editor_core_exports.Range(
|
|
1463
|
-
position.lineNumber,
|
|
1464
|
-
wordInfo.startColumn,
|
|
1465
|
-
position.lineNumber,
|
|
1466
|
-
wordInfo.endColumn
|
|
1467
|
-
);
|
|
1468
|
-
const items = info.items.map((entry) => {
|
|
1469
|
-
const item = {
|
|
1470
|
-
label: entry.label,
|
|
1471
|
-
insertText: entry.insertText || entry.label,
|
|
1472
|
-
sortText: entry.sortText,
|
|
1473
|
-
filterText: entry.filterText,
|
|
1474
|
-
documentation: entry.documentation,
|
|
1475
|
-
detail: entry.detail,
|
|
1476
|
-
command: toCommand(entry.command),
|
|
1477
|
-
range: wordRange,
|
|
1478
|
-
kind: toCompletionItemKind(entry.kind)
|
|
1479
|
-
};
|
|
1480
|
-
if (entry.textEdit) {
|
|
1481
|
-
if (isInsertReplaceEdit(entry.textEdit)) {
|
|
1482
|
-
item.range = {
|
|
1483
|
-
insert: toRange(entry.textEdit.insert),
|
|
1484
|
-
replace: toRange(entry.textEdit.replace)
|
|
1485
|
-
};
|
|
1486
|
-
} else {
|
|
1487
|
-
item.range = toRange(entry.textEdit.range);
|
|
1488
|
-
}
|
|
1489
|
-
item.insertText = entry.textEdit.newText;
|
|
1490
|
-
}
|
|
1491
|
-
if (entry.additionalTextEdits) {
|
|
1492
|
-
item.additionalTextEdits = entry.additionalTextEdits.map(toTextEdit);
|
|
1493
|
-
}
|
|
1494
|
-
if (entry.insertTextFormat === InsertTextFormat.Snippet) {
|
|
1495
|
-
item.insertTextRules = monaco_editor_core_exports.languages.CompletionItemInsertTextRule.InsertAsSnippet;
|
|
1496
|
-
}
|
|
1497
|
-
return item;
|
|
1498
|
-
});
|
|
1499
|
-
return {
|
|
1500
|
-
isIncomplete: info.isIncomplete,
|
|
1501
|
-
suggestions: items
|
|
1502
|
-
};
|
|
1503
|
-
});
|
|
1504
|
-
}
|
|
1505
|
-
};
|
|
1506
|
-
function fromPosition(position) {
|
|
1507
|
-
if (!position) {
|
|
1508
|
-
return void 0;
|
|
1509
|
-
}
|
|
1510
|
-
return { character: position.column - 1, line: position.lineNumber - 1 };
|
|
1511
|
-
}
|
|
1512
|
-
function fromRange(range) {
|
|
1513
|
-
if (!range) {
|
|
1514
|
-
return void 0;
|
|
1515
|
-
}
|
|
1516
|
-
return {
|
|
1517
|
-
start: {
|
|
1518
|
-
line: range.startLineNumber - 1,
|
|
1519
|
-
character: range.startColumn - 1
|
|
1520
|
-
},
|
|
1521
|
-
end: { line: range.endLineNumber - 1, character: range.endColumn - 1 }
|
|
1522
|
-
};
|
|
1523
|
-
}
|
|
1524
|
-
function toRange(range) {
|
|
1525
|
-
if (!range) {
|
|
1526
|
-
return void 0;
|
|
1527
|
-
}
|
|
1528
|
-
return new monaco_editor_core_exports.Range(
|
|
1529
|
-
range.start.line + 1,
|
|
1530
|
-
range.start.character + 1,
|
|
1531
|
-
range.end.line + 1,
|
|
1532
|
-
range.end.character + 1
|
|
1533
|
-
);
|
|
1534
|
-
}
|
|
1535
|
-
function isInsertReplaceEdit(edit) {
|
|
1536
|
-
return typeof edit.insert !== "undefined" && typeof edit.replace !== "undefined";
|
|
1537
|
-
}
|
|
1538
|
-
function toCompletionItemKind(kind) {
|
|
1539
|
-
const mItemKind = monaco_editor_core_exports.languages.CompletionItemKind;
|
|
1540
|
-
switch (kind) {
|
|
1541
|
-
case CompletionItemKind.Text:
|
|
1542
|
-
return mItemKind.Text;
|
|
1543
|
-
case CompletionItemKind.Method:
|
|
1544
|
-
return mItemKind.Method;
|
|
1545
|
-
case CompletionItemKind.Function:
|
|
1546
|
-
return mItemKind.Function;
|
|
1547
|
-
case CompletionItemKind.Constructor:
|
|
1548
|
-
return mItemKind.Constructor;
|
|
1549
|
-
case CompletionItemKind.Field:
|
|
1550
|
-
return mItemKind.Field;
|
|
1551
|
-
case CompletionItemKind.Variable:
|
|
1552
|
-
return mItemKind.Variable;
|
|
1553
|
-
case CompletionItemKind.Class:
|
|
1554
|
-
return mItemKind.Class;
|
|
1555
|
-
case CompletionItemKind.Interface:
|
|
1556
|
-
return mItemKind.Interface;
|
|
1557
|
-
case CompletionItemKind.Module:
|
|
1558
|
-
return mItemKind.Module;
|
|
1559
|
-
case CompletionItemKind.Property:
|
|
1560
|
-
return mItemKind.Property;
|
|
1561
|
-
case CompletionItemKind.Unit:
|
|
1562
|
-
return mItemKind.Unit;
|
|
1563
|
-
case CompletionItemKind.Value:
|
|
1564
|
-
return mItemKind.Value;
|
|
1565
|
-
case CompletionItemKind.Enum:
|
|
1566
|
-
return mItemKind.Enum;
|
|
1567
|
-
case CompletionItemKind.Keyword:
|
|
1568
|
-
return mItemKind.Keyword;
|
|
1569
|
-
case CompletionItemKind.Snippet:
|
|
1570
|
-
return mItemKind.Snippet;
|
|
1571
|
-
case CompletionItemKind.Color:
|
|
1572
|
-
return mItemKind.Color;
|
|
1573
|
-
case CompletionItemKind.File:
|
|
1574
|
-
return mItemKind.File;
|
|
1575
|
-
case CompletionItemKind.Reference:
|
|
1576
|
-
return mItemKind.Reference;
|
|
1577
|
-
}
|
|
1578
|
-
return mItemKind.Property;
|
|
1579
|
-
}
|
|
1580
|
-
function toTextEdit(textEdit) {
|
|
1581
|
-
if (!textEdit) {
|
|
1582
|
-
return void 0;
|
|
1583
|
-
}
|
|
1584
|
-
return {
|
|
1585
|
-
range: toRange(textEdit.range),
|
|
1586
|
-
text: textEdit.newText
|
|
1587
|
-
};
|
|
1588
|
-
}
|
|
1589
|
-
function toCommand(c) {
|
|
1590
|
-
return c && c.command === "editor.action.triggerSuggest" ? { id: c.command, title: c.title, arguments: c.arguments } : void 0;
|
|
1591
|
-
}
|
|
1592
|
-
var HoverAdapter = class {
|
|
1593
|
-
constructor(_worker) {
|
|
1594
|
-
this._worker = _worker;
|
|
1595
|
-
}
|
|
1596
|
-
provideHover(model, position, token) {
|
|
1597
|
-
let resource = model.uri;
|
|
1598
|
-
return this._worker(resource).then((worker) => {
|
|
1599
|
-
return worker.doHover(resource.toString(), fromPosition(position));
|
|
1600
|
-
}).then((info) => {
|
|
1601
|
-
if (!info) {
|
|
1602
|
-
return;
|
|
1603
|
-
}
|
|
1604
|
-
return {
|
|
1605
|
-
range: toRange(info.range),
|
|
1606
|
-
contents: toMarkedStringArray(info.contents)
|
|
1607
|
-
};
|
|
1608
|
-
});
|
|
1609
|
-
}
|
|
1610
|
-
};
|
|
1611
|
-
function isMarkupContent(thing) {
|
|
1612
|
-
return thing && typeof thing === "object" && typeof thing.kind === "string";
|
|
1613
|
-
}
|
|
1614
|
-
function toMarkdownString(entry) {
|
|
1615
|
-
if (typeof entry === "string") {
|
|
1616
|
-
return {
|
|
1617
|
-
value: entry
|
|
1618
|
-
};
|
|
1619
|
-
}
|
|
1620
|
-
if (isMarkupContent(entry)) {
|
|
1621
|
-
if (entry.kind === "plaintext") {
|
|
1622
|
-
return {
|
|
1623
|
-
value: entry.value.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&")
|
|
1624
|
-
};
|
|
1625
|
-
}
|
|
1626
|
-
return {
|
|
1627
|
-
value: entry.value
|
|
1628
|
-
};
|
|
1629
|
-
}
|
|
1630
|
-
return { value: "```" + entry.language + "\n" + entry.value + "\n```\n" };
|
|
1631
|
-
}
|
|
1632
|
-
function toMarkedStringArray(contents) {
|
|
1633
|
-
if (!contents) {
|
|
1634
|
-
return void 0;
|
|
1635
|
-
}
|
|
1636
|
-
if (Array.isArray(contents)) {
|
|
1637
|
-
return contents.map(toMarkdownString);
|
|
1638
|
-
}
|
|
1639
|
-
return [toMarkdownString(contents)];
|
|
1640
|
-
}
|
|
1641
|
-
var DocumentHighlightAdapter = class {
|
|
1642
|
-
constructor(_worker) {
|
|
1643
|
-
this._worker = _worker;
|
|
1644
|
-
}
|
|
1645
|
-
provideDocumentHighlights(model, position, token) {
|
|
1646
|
-
const resource = model.uri;
|
|
1647
|
-
return this._worker(resource).then((worker) => worker.findDocumentHighlights(resource.toString(), fromPosition(position))).then((entries) => {
|
|
1648
|
-
if (!entries) {
|
|
1649
|
-
return;
|
|
1650
|
-
}
|
|
1651
|
-
return entries.map((entry) => {
|
|
1652
|
-
return {
|
|
1653
|
-
range: toRange(entry.range),
|
|
1654
|
-
kind: toDocumentHighlightKind(entry.kind)
|
|
1655
|
-
};
|
|
1656
|
-
});
|
|
1657
|
-
});
|
|
1658
|
-
}
|
|
1659
|
-
};
|
|
1660
|
-
function toDocumentHighlightKind(kind) {
|
|
1661
|
-
switch (kind) {
|
|
1662
|
-
case DocumentHighlightKind.Read:
|
|
1663
|
-
return monaco_editor_core_exports.languages.DocumentHighlightKind.Read;
|
|
1664
|
-
case DocumentHighlightKind.Write:
|
|
1665
|
-
return monaco_editor_core_exports.languages.DocumentHighlightKind.Write;
|
|
1666
|
-
case DocumentHighlightKind.Text:
|
|
1667
|
-
return monaco_editor_core_exports.languages.DocumentHighlightKind.Text;
|
|
1668
|
-
}
|
|
1669
|
-
return monaco_editor_core_exports.languages.DocumentHighlightKind.Text;
|
|
1670
|
-
}
|
|
1671
|
-
var DefinitionAdapter = class {
|
|
1672
|
-
constructor(_worker) {
|
|
1673
|
-
this._worker = _worker;
|
|
1674
|
-
}
|
|
1675
|
-
provideDefinition(model, position, token) {
|
|
1676
|
-
const resource = model.uri;
|
|
1677
|
-
return this._worker(resource).then((worker) => {
|
|
1678
|
-
return worker.findDefinition(resource.toString(), fromPosition(position));
|
|
1679
|
-
}).then((definition) => {
|
|
1680
|
-
if (!definition) {
|
|
1681
|
-
return;
|
|
1682
|
-
}
|
|
1683
|
-
return [toLocation(definition)];
|
|
1684
|
-
});
|
|
1685
|
-
}
|
|
1686
|
-
};
|
|
1687
|
-
function toLocation(location) {
|
|
1688
|
-
return {
|
|
1689
|
-
uri: monaco_editor_core_exports.Uri.parse(location.uri),
|
|
1690
|
-
range: toRange(location.range)
|
|
1691
|
-
};
|
|
1692
|
-
}
|
|
1693
|
-
var ReferenceAdapter = class {
|
|
1694
|
-
constructor(_worker) {
|
|
1695
|
-
this._worker = _worker;
|
|
1696
|
-
}
|
|
1697
|
-
provideReferences(model, position, context, token) {
|
|
1698
|
-
const resource = model.uri;
|
|
1699
|
-
return this._worker(resource).then((worker) => {
|
|
1700
|
-
return worker.findReferences(resource.toString(), fromPosition(position));
|
|
1701
|
-
}).then((entries) => {
|
|
1702
|
-
if (!entries) {
|
|
1703
|
-
return;
|
|
1704
|
-
}
|
|
1705
|
-
return entries.map(toLocation);
|
|
1706
|
-
});
|
|
1707
|
-
}
|
|
1708
|
-
};
|
|
1709
|
-
var RenameAdapter = class {
|
|
1710
|
-
constructor(_worker) {
|
|
1711
|
-
this._worker = _worker;
|
|
1712
|
-
}
|
|
1713
|
-
provideRenameEdits(model, position, newName, token) {
|
|
1714
|
-
const resource = model.uri;
|
|
1715
|
-
return this._worker(resource).then((worker) => {
|
|
1716
|
-
return worker.doRename(resource.toString(), fromPosition(position), newName);
|
|
1717
|
-
}).then((edit) => {
|
|
1718
|
-
return toWorkspaceEdit(edit);
|
|
1719
|
-
});
|
|
1720
|
-
}
|
|
1721
|
-
};
|
|
1722
|
-
function toWorkspaceEdit(edit) {
|
|
1723
|
-
if (!edit || !edit.changes) {
|
|
1724
|
-
return void 0;
|
|
1725
|
-
}
|
|
1726
|
-
let resourceEdits = [];
|
|
1727
|
-
for (let uri in edit.changes) {
|
|
1728
|
-
const _uri = monaco_editor_core_exports.Uri.parse(uri);
|
|
1729
|
-
for (let e of edit.changes[uri]) {
|
|
1730
|
-
resourceEdits.push({
|
|
1731
|
-
resource: _uri,
|
|
1732
|
-
versionId: void 0,
|
|
1733
|
-
textEdit: {
|
|
1734
|
-
range: toRange(e.range),
|
|
1735
|
-
text: e.newText
|
|
1736
|
-
}
|
|
1737
|
-
});
|
|
1738
|
-
}
|
|
1739
|
-
}
|
|
1740
|
-
return {
|
|
1741
|
-
edits: resourceEdits
|
|
1742
|
-
};
|
|
1743
|
-
}
|
|
1744
|
-
var DocumentSymbolAdapter = class {
|
|
1745
|
-
constructor(_worker) {
|
|
1746
|
-
this._worker = _worker;
|
|
1747
|
-
}
|
|
1748
|
-
provideDocumentSymbols(model, token) {
|
|
1749
|
-
const resource = model.uri;
|
|
1750
|
-
return this._worker(resource).then((worker) => worker.findDocumentSymbols(resource.toString())).then((items) => {
|
|
1751
|
-
if (!items) {
|
|
1752
|
-
return;
|
|
1753
|
-
}
|
|
1754
|
-
return items.map((item) => {
|
|
1755
|
-
if (isDocumentSymbol(item)) {
|
|
1756
|
-
return toDocumentSymbol(item);
|
|
1757
|
-
}
|
|
1758
|
-
return {
|
|
1759
|
-
name: item.name,
|
|
1760
|
-
detail: "",
|
|
1761
|
-
containerName: item.containerName,
|
|
1762
|
-
kind: toSymbolKind(item.kind),
|
|
1763
|
-
range: toRange(item.location.range),
|
|
1764
|
-
selectionRange: toRange(item.location.range),
|
|
1765
|
-
tags: []
|
|
1766
|
-
};
|
|
1767
|
-
});
|
|
1768
|
-
});
|
|
1769
|
-
}
|
|
1770
|
-
};
|
|
1771
|
-
function isDocumentSymbol(symbol) {
|
|
1772
|
-
return "children" in symbol;
|
|
1773
|
-
}
|
|
1774
|
-
function toDocumentSymbol(symbol) {
|
|
1775
|
-
return {
|
|
1776
|
-
name: symbol.name,
|
|
1777
|
-
detail: symbol.detail ?? "",
|
|
1778
|
-
kind: toSymbolKind(symbol.kind),
|
|
1779
|
-
range: toRange(symbol.range),
|
|
1780
|
-
selectionRange: toRange(symbol.selectionRange),
|
|
1781
|
-
tags: symbol.tags ?? [],
|
|
1782
|
-
children: (symbol.children ?? []).map((item) => toDocumentSymbol(item))
|
|
1783
|
-
};
|
|
1784
|
-
}
|
|
1785
|
-
function toSymbolKind(kind) {
|
|
1786
|
-
let mKind = monaco_editor_core_exports.languages.SymbolKind;
|
|
1787
|
-
switch (kind) {
|
|
1788
|
-
case SymbolKind.File:
|
|
1789
|
-
return mKind.File;
|
|
1790
|
-
case SymbolKind.Module:
|
|
1791
|
-
return mKind.Module;
|
|
1792
|
-
case SymbolKind.Namespace:
|
|
1793
|
-
return mKind.Namespace;
|
|
1794
|
-
case SymbolKind.Package:
|
|
1795
|
-
return mKind.Package;
|
|
1796
|
-
case SymbolKind.Class:
|
|
1797
|
-
return mKind.Class;
|
|
1798
|
-
case SymbolKind.Method:
|
|
1799
|
-
return mKind.Method;
|
|
1800
|
-
case SymbolKind.Property:
|
|
1801
|
-
return mKind.Property;
|
|
1802
|
-
case SymbolKind.Field:
|
|
1803
|
-
return mKind.Field;
|
|
1804
|
-
case SymbolKind.Constructor:
|
|
1805
|
-
return mKind.Constructor;
|
|
1806
|
-
case SymbolKind.Enum:
|
|
1807
|
-
return mKind.Enum;
|
|
1808
|
-
case SymbolKind.Interface:
|
|
1809
|
-
return mKind.Interface;
|
|
1810
|
-
case SymbolKind.Function:
|
|
1811
|
-
return mKind.Function;
|
|
1812
|
-
case SymbolKind.Variable:
|
|
1813
|
-
return mKind.Variable;
|
|
1814
|
-
case SymbolKind.Constant:
|
|
1815
|
-
return mKind.Constant;
|
|
1816
|
-
case SymbolKind.String:
|
|
1817
|
-
return mKind.String;
|
|
1818
|
-
case SymbolKind.Number:
|
|
1819
|
-
return mKind.Number;
|
|
1820
|
-
case SymbolKind.Boolean:
|
|
1821
|
-
return mKind.Boolean;
|
|
1822
|
-
case SymbolKind.Array:
|
|
1823
|
-
return mKind.Array;
|
|
1824
|
-
}
|
|
1825
|
-
return mKind.Function;
|
|
1826
|
-
}
|
|
1827
|
-
var DocumentLinkAdapter = class {
|
|
1828
|
-
constructor(_worker) {
|
|
1829
|
-
this._worker = _worker;
|
|
1830
|
-
}
|
|
1831
|
-
provideLinks(model, token) {
|
|
1832
|
-
const resource = model.uri;
|
|
1833
|
-
return this._worker(resource).then((worker) => worker.findDocumentLinks(resource.toString())).then((items) => {
|
|
1834
|
-
if (!items) {
|
|
1835
|
-
return;
|
|
1836
|
-
}
|
|
1837
|
-
return {
|
|
1838
|
-
links: items.map((item) => ({
|
|
1839
|
-
range: toRange(item.range),
|
|
1840
|
-
url: item.target
|
|
1841
|
-
}))
|
|
1842
|
-
};
|
|
1843
|
-
});
|
|
1844
|
-
}
|
|
1845
|
-
};
|
|
1846
|
-
var DocumentFormattingEditProvider = class {
|
|
1847
|
-
constructor(_worker) {
|
|
1848
|
-
this._worker = _worker;
|
|
1849
|
-
}
|
|
1850
|
-
provideDocumentFormattingEdits(model, options, token) {
|
|
1851
|
-
const resource = model.uri;
|
|
1852
|
-
return this._worker(resource).then((worker) => {
|
|
1853
|
-
return worker.format(resource.toString(), null, fromFormattingOptions(options)).then((edits) => {
|
|
1854
|
-
if (!edits || edits.length === 0) {
|
|
1855
|
-
return;
|
|
1856
|
-
}
|
|
1857
|
-
return edits.map(toTextEdit);
|
|
1858
|
-
});
|
|
1859
|
-
});
|
|
1860
|
-
}
|
|
1861
|
-
};
|
|
1862
|
-
var DocumentRangeFormattingEditProvider = class {
|
|
1863
|
-
constructor(_worker) {
|
|
1864
|
-
this._worker = _worker;
|
|
1865
|
-
this.canFormatMultipleRanges = false;
|
|
1866
|
-
}
|
|
1867
|
-
provideDocumentRangeFormattingEdits(model, range, options, token) {
|
|
1868
|
-
const resource = model.uri;
|
|
1869
|
-
return this._worker(resource).then((worker) => {
|
|
1870
|
-
return worker.format(resource.toString(), fromRange(range), fromFormattingOptions(options)).then((edits) => {
|
|
1871
|
-
if (!edits || edits.length === 0) {
|
|
1872
|
-
return;
|
|
1873
|
-
}
|
|
1874
|
-
return edits.map(toTextEdit);
|
|
1875
|
-
});
|
|
1876
|
-
});
|
|
1877
|
-
}
|
|
1878
|
-
};
|
|
1879
|
-
function fromFormattingOptions(options) {
|
|
1880
|
-
return {
|
|
1881
|
-
tabSize: options.tabSize,
|
|
1882
|
-
insertSpaces: options.insertSpaces
|
|
1883
|
-
};
|
|
1884
|
-
}
|
|
1885
|
-
var DocumentColorAdapter = class {
|
|
1886
|
-
constructor(_worker) {
|
|
1887
|
-
this._worker = _worker;
|
|
1888
|
-
}
|
|
1889
|
-
provideDocumentColors(model, token) {
|
|
1890
|
-
const resource = model.uri;
|
|
1891
|
-
return this._worker(resource).then((worker) => worker.findDocumentColors(resource.toString())).then((infos) => {
|
|
1892
|
-
if (!infos) {
|
|
1893
|
-
return;
|
|
1894
|
-
}
|
|
1895
|
-
return infos.map((item) => ({
|
|
1896
|
-
color: item.color,
|
|
1897
|
-
range: toRange(item.range)
|
|
1898
|
-
}));
|
|
1899
|
-
});
|
|
1900
|
-
}
|
|
1901
|
-
provideColorPresentations(model, info, token) {
|
|
1902
|
-
const resource = model.uri;
|
|
1903
|
-
return this._worker(resource).then(
|
|
1904
|
-
(worker) => worker.getColorPresentations(resource.toString(), info.color, fromRange(info.range))
|
|
1905
|
-
).then((presentations) => {
|
|
1906
|
-
if (!presentations) {
|
|
1907
|
-
return;
|
|
1908
|
-
}
|
|
1909
|
-
return presentations.map((presentation) => {
|
|
1910
|
-
let item = {
|
|
1911
|
-
label: presentation.label
|
|
1912
|
-
};
|
|
1913
|
-
if (presentation.textEdit) {
|
|
1914
|
-
item.textEdit = toTextEdit(presentation.textEdit);
|
|
1915
|
-
}
|
|
1916
|
-
if (presentation.additionalTextEdits) {
|
|
1917
|
-
item.additionalTextEdits = presentation.additionalTextEdits.map(toTextEdit);
|
|
1918
|
-
}
|
|
1919
|
-
return item;
|
|
1920
|
-
});
|
|
1921
|
-
});
|
|
1922
|
-
}
|
|
1923
|
-
};
|
|
1924
|
-
var FoldingRangeAdapter = class {
|
|
1925
|
-
constructor(_worker) {
|
|
1926
|
-
this._worker = _worker;
|
|
1927
|
-
}
|
|
1928
|
-
provideFoldingRanges(model, context, token) {
|
|
1929
|
-
const resource = model.uri;
|
|
1930
|
-
return this._worker(resource).then((worker) => worker.getFoldingRanges(resource.toString(), context)).then((ranges) => {
|
|
1931
|
-
if (!ranges) {
|
|
1932
|
-
return;
|
|
1933
|
-
}
|
|
1934
|
-
return ranges.map((range) => {
|
|
1935
|
-
const result = {
|
|
1936
|
-
start: range.startLine + 1,
|
|
1937
|
-
end: range.endLine + 1
|
|
1938
|
-
};
|
|
1939
|
-
if (typeof range.kind !== "undefined") {
|
|
1940
|
-
result.kind = toFoldingRangeKind(range.kind);
|
|
1941
|
-
}
|
|
1942
|
-
return result;
|
|
1943
|
-
});
|
|
1944
|
-
});
|
|
1945
|
-
}
|
|
1946
|
-
};
|
|
1947
|
-
function toFoldingRangeKind(kind) {
|
|
1948
|
-
switch (kind) {
|
|
1949
|
-
case FoldingRangeKind.Comment:
|
|
1950
|
-
return monaco_editor_core_exports.languages.FoldingRangeKind.Comment;
|
|
1951
|
-
case FoldingRangeKind.Imports:
|
|
1952
|
-
return monaco_editor_core_exports.languages.FoldingRangeKind.Imports;
|
|
1953
|
-
case FoldingRangeKind.Region:
|
|
1954
|
-
return monaco_editor_core_exports.languages.FoldingRangeKind.Region;
|
|
1955
|
-
}
|
|
1956
|
-
return void 0;
|
|
1957
|
-
}
|
|
1958
|
-
var SelectionRangeAdapter = class {
|
|
1959
|
-
constructor(_worker) {
|
|
1960
|
-
this._worker = _worker;
|
|
1961
|
-
}
|
|
1962
|
-
provideSelectionRanges(model, positions, token) {
|
|
1963
|
-
const resource = model.uri;
|
|
1964
|
-
return this._worker(resource).then(
|
|
1965
|
-
(worker) => worker.getSelectionRanges(
|
|
1966
|
-
resource.toString(),
|
|
1967
|
-
positions.map(fromPosition)
|
|
1968
|
-
)
|
|
1969
|
-
).then((selectionRanges) => {
|
|
1970
|
-
if (!selectionRanges) {
|
|
1971
|
-
return;
|
|
1972
|
-
}
|
|
1973
|
-
return selectionRanges.map((selectionRange) => {
|
|
1974
|
-
const result = [];
|
|
1975
|
-
while (selectionRange) {
|
|
1976
|
-
result.push({ range: toRange(selectionRange.range) });
|
|
1977
|
-
selectionRange = selectionRange.parent;
|
|
1978
|
-
}
|
|
1979
|
-
return result;
|
|
1980
|
-
});
|
|
1981
|
-
});
|
|
1982
|
-
}
|
|
1983
|
-
};
|
|
1984
|
-
|
|
1985
|
-
// src/language/html/htmlMode.ts
|
|
1986
|
-
var HTMLCompletionAdapter = class extends CompletionAdapter {
|
|
1987
|
-
constructor(worker) {
|
|
1988
|
-
super(worker, [".", ":", "<", '"', "=", "/"]);
|
|
1989
|
-
}
|
|
1990
|
-
};
|
|
1991
|
-
function setupMode1(defaults) {
|
|
1992
|
-
const client = new WorkerManager(defaults);
|
|
1993
|
-
const worker = (...uris) => {
|
|
1994
|
-
return client.getLanguageServiceWorker(...uris);
|
|
1995
|
-
};
|
|
1996
|
-
let languageId = defaults.languageId;
|
|
1997
|
-
monaco_editor_core_exports.languages.registerCompletionItemProvider(languageId, new HTMLCompletionAdapter(worker));
|
|
1998
|
-
monaco_editor_core_exports.languages.registerHoverProvider(languageId, new HoverAdapter(worker));
|
|
1999
|
-
monaco_editor_core_exports.languages.registerDocumentHighlightProvider(
|
|
2000
|
-
languageId,
|
|
2001
|
-
new DocumentHighlightAdapter(worker)
|
|
2002
|
-
);
|
|
2003
|
-
monaco_editor_core_exports.languages.registerLinkProvider(languageId, new DocumentLinkAdapter(worker));
|
|
2004
|
-
monaco_editor_core_exports.languages.registerFoldingRangeProvider(
|
|
2005
|
-
languageId,
|
|
2006
|
-
new FoldingRangeAdapter(worker)
|
|
2007
|
-
);
|
|
2008
|
-
monaco_editor_core_exports.languages.registerDocumentSymbolProvider(
|
|
2009
|
-
languageId,
|
|
2010
|
-
new DocumentSymbolAdapter(worker)
|
|
2011
|
-
);
|
|
2012
|
-
monaco_editor_core_exports.languages.registerSelectionRangeProvider(
|
|
2013
|
-
languageId,
|
|
2014
|
-
new SelectionRangeAdapter(worker)
|
|
2015
|
-
);
|
|
2016
|
-
monaco_editor_core_exports.languages.registerRenameProvider(languageId, new RenameAdapter(worker));
|
|
2017
|
-
if (languageId === "html") {
|
|
2018
|
-
monaco_editor_core_exports.languages.registerDocumentFormattingEditProvider(
|
|
2019
|
-
languageId,
|
|
2020
|
-
new DocumentFormattingEditProvider(worker)
|
|
2021
|
-
);
|
|
2022
|
-
monaco_editor_core_exports.languages.registerDocumentRangeFormattingEditProvider(
|
|
2023
|
-
languageId,
|
|
2024
|
-
new DocumentRangeFormattingEditProvider(worker)
|
|
2025
|
-
);
|
|
2026
|
-
}
|
|
2027
|
-
}
|
|
2028
|
-
function setupMode(defaults) {
|
|
2029
|
-
const disposables = [];
|
|
2030
|
-
const providers = [];
|
|
2031
|
-
const client = new WorkerManager(defaults);
|
|
2032
|
-
disposables.push(client);
|
|
2033
|
-
const worker = (...uris) => {
|
|
2034
|
-
return client.getLanguageServiceWorker(...uris);
|
|
2035
|
-
};
|
|
2036
|
-
function registerProviders() {
|
|
2037
|
-
const { languageId, modeConfiguration } = defaults;
|
|
2038
|
-
disposeAll(providers);
|
|
2039
|
-
if (modeConfiguration.completionItems) {
|
|
2040
|
-
providers.push(
|
|
2041
|
-
monaco_editor_core_exports.languages.registerCompletionItemProvider(languageId, new HTMLCompletionAdapter(worker))
|
|
2042
|
-
);
|
|
2043
|
-
}
|
|
2044
|
-
if (modeConfiguration.hovers) {
|
|
2045
|
-
providers.push(
|
|
2046
|
-
monaco_editor_core_exports.languages.registerHoverProvider(languageId, new HoverAdapter(worker))
|
|
2047
|
-
);
|
|
2048
|
-
}
|
|
2049
|
-
if (modeConfiguration.documentHighlights) {
|
|
2050
|
-
providers.push(
|
|
2051
|
-
monaco_editor_core_exports.languages.registerDocumentHighlightProvider(
|
|
2052
|
-
languageId,
|
|
2053
|
-
new DocumentHighlightAdapter(worker)
|
|
2054
|
-
)
|
|
2055
|
-
);
|
|
2056
|
-
}
|
|
2057
|
-
if (modeConfiguration.links) {
|
|
2058
|
-
providers.push(
|
|
2059
|
-
monaco_editor_core_exports.languages.registerLinkProvider(languageId, new DocumentLinkAdapter(worker))
|
|
2060
|
-
);
|
|
2061
|
-
}
|
|
2062
|
-
if (modeConfiguration.documentSymbols) {
|
|
2063
|
-
providers.push(
|
|
2064
|
-
monaco_editor_core_exports.languages.registerDocumentSymbolProvider(
|
|
2065
|
-
languageId,
|
|
2066
|
-
new DocumentSymbolAdapter(worker)
|
|
2067
|
-
)
|
|
2068
|
-
);
|
|
2069
|
-
}
|
|
2070
|
-
if (modeConfiguration.rename) {
|
|
2071
|
-
providers.push(
|
|
2072
|
-
monaco_editor_core_exports.languages.registerRenameProvider(languageId, new RenameAdapter(worker))
|
|
2073
|
-
);
|
|
2074
|
-
}
|
|
2075
|
-
if (modeConfiguration.foldingRanges) {
|
|
2076
|
-
providers.push(
|
|
2077
|
-
monaco_editor_core_exports.languages.registerFoldingRangeProvider(
|
|
2078
|
-
languageId,
|
|
2079
|
-
new FoldingRangeAdapter(worker)
|
|
2080
|
-
)
|
|
2081
|
-
);
|
|
2082
|
-
}
|
|
2083
|
-
if (modeConfiguration.selectionRanges) {
|
|
2084
|
-
providers.push(
|
|
2085
|
-
monaco_editor_core_exports.languages.registerSelectionRangeProvider(
|
|
2086
|
-
languageId,
|
|
2087
|
-
new SelectionRangeAdapter(worker)
|
|
2088
|
-
)
|
|
2089
|
-
);
|
|
2090
|
-
}
|
|
2091
|
-
if (modeConfiguration.documentFormattingEdits) {
|
|
2092
|
-
providers.push(
|
|
2093
|
-
monaco_editor_core_exports.languages.registerDocumentFormattingEditProvider(
|
|
2094
|
-
languageId,
|
|
2095
|
-
new DocumentFormattingEditProvider(worker)
|
|
2096
|
-
)
|
|
2097
|
-
);
|
|
2098
|
-
}
|
|
2099
|
-
if (modeConfiguration.documentRangeFormattingEdits) {
|
|
2100
|
-
providers.push(
|
|
2101
|
-
monaco_editor_core_exports.languages.registerDocumentRangeFormattingEditProvider(
|
|
2102
|
-
languageId,
|
|
2103
|
-
new DocumentRangeFormattingEditProvider(worker)
|
|
2104
|
-
)
|
|
2105
|
-
);
|
|
2106
|
-
}
|
|
2107
|
-
}
|
|
2108
|
-
registerProviders();
|
|
2109
|
-
disposables.push(asDisposable(providers));
|
|
2110
|
-
return asDisposable(disposables);
|
|
2111
|
-
}
|
|
2112
|
-
function asDisposable(disposables) {
|
|
2113
|
-
return { dispose: () => disposeAll(disposables) };
|
|
2114
|
-
}
|
|
2115
|
-
function disposeAll(disposables) {
|
|
2116
|
-
while (disposables.length) {
|
|
2117
|
-
disposables.pop().dispose();
|
|
2118
|
-
}
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
export { CompletionAdapter, DefinitionAdapter, DiagnosticsAdapter, DocumentColorAdapter, DocumentFormattingEditProvider, DocumentHighlightAdapter, DocumentLinkAdapter, DocumentRangeFormattingEditProvider, DocumentSymbolAdapter, FoldingRangeAdapter, HoverAdapter, ReferenceAdapter, RenameAdapter, SelectionRangeAdapter, WorkerManager, fromPosition, fromRange, setupMode, setupMode1, toRange, toTextEdit };
|