@coderline/alphatab-monaco 1.7.0-alpha.1626 → 1.7.0-alpha.1627
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/tsMode.mjs
DELETED
|
@@ -1,1384 +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 { t as typescriptDefaults, 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/typescript/workerManager.ts
|
|
103
|
-
var WorkerManager = class {
|
|
104
|
-
constructor(_modeId, _defaults) {
|
|
105
|
-
this._modeId = _modeId;
|
|
106
|
-
this._defaults = _defaults;
|
|
107
|
-
this._worker = null;
|
|
108
|
-
this._client = null;
|
|
109
|
-
this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
|
|
110
|
-
this._updateExtraLibsToken = 0;
|
|
111
|
-
this._extraLibsChangeListener = this._defaults.onDidExtraLibsChange(
|
|
112
|
-
() => this._updateExtraLibs()
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
dispose() {
|
|
116
|
-
this._configChangeListener.dispose();
|
|
117
|
-
this._extraLibsChangeListener.dispose();
|
|
118
|
-
this._stopWorker();
|
|
119
|
-
}
|
|
120
|
-
_stopWorker() {
|
|
121
|
-
if (this._worker) {
|
|
122
|
-
this._worker.dispose();
|
|
123
|
-
this._worker = null;
|
|
124
|
-
}
|
|
125
|
-
this._client = null;
|
|
126
|
-
}
|
|
127
|
-
async _updateExtraLibs() {
|
|
128
|
-
if (!this._worker) {
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
const myToken = ++this._updateExtraLibsToken;
|
|
132
|
-
const proxy = await this._worker.getProxy();
|
|
133
|
-
if (this._updateExtraLibsToken !== myToken) {
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
proxy.updateExtraLibs(this._defaults.getExtraLibs());
|
|
137
|
-
}
|
|
138
|
-
_getClient() {
|
|
139
|
-
if (!this._client) {
|
|
140
|
-
this._client = (async () => {
|
|
141
|
-
this._worker = createWebWorker({
|
|
142
|
-
label: this._modeId,
|
|
143
|
-
keepIdleModels: true,
|
|
144
|
-
// passed in to the create() method
|
|
145
|
-
createData: {
|
|
146
|
-
compilerOptions: this._defaults.getCompilerOptions(),
|
|
147
|
-
extraLibs: this._defaults.getExtraLibs(),
|
|
148
|
-
customWorkerPath: this._defaults.workerOptions.customWorkerPath,
|
|
149
|
-
inlayHintsOptions: this._defaults.inlayHintsOptions
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
if (this._defaults.getEagerModelSync()) {
|
|
153
|
-
return await this._worker.withSyncedResources(
|
|
154
|
-
monaco_editor_core_exports.editor.getModels().filter((model) => model.getLanguageId() === this._modeId).map((model) => model.uri)
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
return await this._worker.getProxy();
|
|
158
|
-
})();
|
|
159
|
-
}
|
|
160
|
-
return this._client;
|
|
161
|
-
}
|
|
162
|
-
async getLanguageServiceWorker(...resources) {
|
|
163
|
-
const client = await this._getClient();
|
|
164
|
-
if (this._worker) {
|
|
165
|
-
await this._worker.withSyncedResources(resources);
|
|
166
|
-
}
|
|
167
|
-
return client;
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
// src/language/typescript/lib/lib.index.ts
|
|
172
|
-
var libFileSet = {};
|
|
173
|
-
libFileSet["lib.d.ts"] = true;
|
|
174
|
-
libFileSet["lib.decorators.d.ts"] = true;
|
|
175
|
-
libFileSet["lib.decorators.legacy.d.ts"] = true;
|
|
176
|
-
libFileSet["lib.dom.asynciterable.d.ts"] = true;
|
|
177
|
-
libFileSet["lib.dom.d.ts"] = true;
|
|
178
|
-
libFileSet["lib.dom.iterable.d.ts"] = true;
|
|
179
|
-
libFileSet["lib.es2015.collection.d.ts"] = true;
|
|
180
|
-
libFileSet["lib.es2015.core.d.ts"] = true;
|
|
181
|
-
libFileSet["lib.es2015.d.ts"] = true;
|
|
182
|
-
libFileSet["lib.es2015.generator.d.ts"] = true;
|
|
183
|
-
libFileSet["lib.es2015.iterable.d.ts"] = true;
|
|
184
|
-
libFileSet["lib.es2015.promise.d.ts"] = true;
|
|
185
|
-
libFileSet["lib.es2015.proxy.d.ts"] = true;
|
|
186
|
-
libFileSet["lib.es2015.reflect.d.ts"] = true;
|
|
187
|
-
libFileSet["lib.es2015.symbol.d.ts"] = true;
|
|
188
|
-
libFileSet["lib.es2015.symbol.wellknown.d.ts"] = true;
|
|
189
|
-
libFileSet["lib.es2016.array.include.d.ts"] = true;
|
|
190
|
-
libFileSet["lib.es2016.d.ts"] = true;
|
|
191
|
-
libFileSet["lib.es2016.full.d.ts"] = true;
|
|
192
|
-
libFileSet["lib.es2016.intl.d.ts"] = true;
|
|
193
|
-
libFileSet["lib.es2017.d.ts"] = true;
|
|
194
|
-
libFileSet["lib.es2017.date.d.ts"] = true;
|
|
195
|
-
libFileSet["lib.es2017.full.d.ts"] = true;
|
|
196
|
-
libFileSet["lib.es2017.intl.d.ts"] = true;
|
|
197
|
-
libFileSet["lib.es2017.object.d.ts"] = true;
|
|
198
|
-
libFileSet["lib.es2017.sharedmemory.d.ts"] = true;
|
|
199
|
-
libFileSet["lib.es2017.string.d.ts"] = true;
|
|
200
|
-
libFileSet["lib.es2017.typedarrays.d.ts"] = true;
|
|
201
|
-
libFileSet["lib.es2018.asyncgenerator.d.ts"] = true;
|
|
202
|
-
libFileSet["lib.es2018.asynciterable.d.ts"] = true;
|
|
203
|
-
libFileSet["lib.es2018.d.ts"] = true;
|
|
204
|
-
libFileSet["lib.es2018.full.d.ts"] = true;
|
|
205
|
-
libFileSet["lib.es2018.intl.d.ts"] = true;
|
|
206
|
-
libFileSet["lib.es2018.promise.d.ts"] = true;
|
|
207
|
-
libFileSet["lib.es2018.regexp.d.ts"] = true;
|
|
208
|
-
libFileSet["lib.es2019.array.d.ts"] = true;
|
|
209
|
-
libFileSet["lib.es2019.d.ts"] = true;
|
|
210
|
-
libFileSet["lib.es2019.full.d.ts"] = true;
|
|
211
|
-
libFileSet["lib.es2019.intl.d.ts"] = true;
|
|
212
|
-
libFileSet["lib.es2019.object.d.ts"] = true;
|
|
213
|
-
libFileSet["lib.es2019.string.d.ts"] = true;
|
|
214
|
-
libFileSet["lib.es2019.symbol.d.ts"] = true;
|
|
215
|
-
libFileSet["lib.es2020.bigint.d.ts"] = true;
|
|
216
|
-
libFileSet["lib.es2020.d.ts"] = true;
|
|
217
|
-
libFileSet["lib.es2020.date.d.ts"] = true;
|
|
218
|
-
libFileSet["lib.es2020.full.d.ts"] = true;
|
|
219
|
-
libFileSet["lib.es2020.intl.d.ts"] = true;
|
|
220
|
-
libFileSet["lib.es2020.number.d.ts"] = true;
|
|
221
|
-
libFileSet["lib.es2020.promise.d.ts"] = true;
|
|
222
|
-
libFileSet["lib.es2020.sharedmemory.d.ts"] = true;
|
|
223
|
-
libFileSet["lib.es2020.string.d.ts"] = true;
|
|
224
|
-
libFileSet["lib.es2020.symbol.wellknown.d.ts"] = true;
|
|
225
|
-
libFileSet["lib.es2021.d.ts"] = true;
|
|
226
|
-
libFileSet["lib.es2021.full.d.ts"] = true;
|
|
227
|
-
libFileSet["lib.es2021.intl.d.ts"] = true;
|
|
228
|
-
libFileSet["lib.es2021.promise.d.ts"] = true;
|
|
229
|
-
libFileSet["lib.es2021.string.d.ts"] = true;
|
|
230
|
-
libFileSet["lib.es2021.weakref.d.ts"] = true;
|
|
231
|
-
libFileSet["lib.es2022.array.d.ts"] = true;
|
|
232
|
-
libFileSet["lib.es2022.d.ts"] = true;
|
|
233
|
-
libFileSet["lib.es2022.error.d.ts"] = true;
|
|
234
|
-
libFileSet["lib.es2022.full.d.ts"] = true;
|
|
235
|
-
libFileSet["lib.es2022.intl.d.ts"] = true;
|
|
236
|
-
libFileSet["lib.es2022.object.d.ts"] = true;
|
|
237
|
-
libFileSet["lib.es2022.regexp.d.ts"] = true;
|
|
238
|
-
libFileSet["lib.es2022.sharedmemory.d.ts"] = true;
|
|
239
|
-
libFileSet["lib.es2022.string.d.ts"] = true;
|
|
240
|
-
libFileSet["lib.es2023.array.d.ts"] = true;
|
|
241
|
-
libFileSet["lib.es2023.collection.d.ts"] = true;
|
|
242
|
-
libFileSet["lib.es2023.d.ts"] = true;
|
|
243
|
-
libFileSet["lib.es2023.full.d.ts"] = true;
|
|
244
|
-
libFileSet["lib.es5.d.ts"] = true;
|
|
245
|
-
libFileSet["lib.es6.d.ts"] = true;
|
|
246
|
-
libFileSet["lib.esnext.collection.d.ts"] = true;
|
|
247
|
-
libFileSet["lib.esnext.d.ts"] = true;
|
|
248
|
-
libFileSet["lib.esnext.decorators.d.ts"] = true;
|
|
249
|
-
libFileSet["lib.esnext.disposable.d.ts"] = true;
|
|
250
|
-
libFileSet["lib.esnext.full.d.ts"] = true;
|
|
251
|
-
libFileSet["lib.esnext.intl.d.ts"] = true;
|
|
252
|
-
libFileSet["lib.esnext.object.d.ts"] = true;
|
|
253
|
-
libFileSet["lib.esnext.promise.d.ts"] = true;
|
|
254
|
-
libFileSet["lib.scripthost.d.ts"] = true;
|
|
255
|
-
libFileSet["lib.webworker.asynciterable.d.ts"] = true;
|
|
256
|
-
libFileSet["lib.webworker.d.ts"] = true;
|
|
257
|
-
libFileSet["lib.webworker.importscripts.d.ts"] = true;
|
|
258
|
-
libFileSet["lib.webworker.iterable.d.ts"] = true;
|
|
259
|
-
|
|
260
|
-
// src/language/typescript/languageFeatures.ts
|
|
261
|
-
function flattenDiagnosticMessageText(diag, newLine, indent = 0) {
|
|
262
|
-
if (typeof diag === "string") {
|
|
263
|
-
return diag;
|
|
264
|
-
} else if (diag === void 0) {
|
|
265
|
-
return "";
|
|
266
|
-
}
|
|
267
|
-
let result = "";
|
|
268
|
-
if (indent) {
|
|
269
|
-
result += newLine;
|
|
270
|
-
for (let i = 0; i < indent; i++) {
|
|
271
|
-
result += " ";
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
result += diag.messageText;
|
|
275
|
-
indent++;
|
|
276
|
-
if (diag.next) {
|
|
277
|
-
for (const kid of diag.next) {
|
|
278
|
-
result += flattenDiagnosticMessageText(kid, newLine, indent);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
return result;
|
|
282
|
-
}
|
|
283
|
-
function displayPartsToString(displayParts) {
|
|
284
|
-
if (displayParts) {
|
|
285
|
-
return displayParts.map((displayPart) => displayPart.text).join("");
|
|
286
|
-
}
|
|
287
|
-
return "";
|
|
288
|
-
}
|
|
289
|
-
var Adapter = class {
|
|
290
|
-
constructor(_worker) {
|
|
291
|
-
this._worker = _worker;
|
|
292
|
-
}
|
|
293
|
-
// protected _positionToOffset(model: editor.ITextModel, position: monaco.IPosition): number {
|
|
294
|
-
// return model.getOffsetAt(position);
|
|
295
|
-
// }
|
|
296
|
-
// protected _offsetToPosition(model: editor.ITextModel, offset: number): monaco.IPosition {
|
|
297
|
-
// return model.getPositionAt(offset);
|
|
298
|
-
// }
|
|
299
|
-
_textSpanToRange(model, span) {
|
|
300
|
-
let p1 = model.getPositionAt(span.start);
|
|
301
|
-
let p2 = model.getPositionAt(span.start + span.length);
|
|
302
|
-
let { lineNumber: startLineNumber, column: startColumn } = p1;
|
|
303
|
-
let { lineNumber: endLineNumber, column: endColumn } = p2;
|
|
304
|
-
return { startLineNumber, startColumn, endLineNumber, endColumn };
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
|
-
var LibFiles = class {
|
|
308
|
-
constructor(_worker) {
|
|
309
|
-
this._worker = _worker;
|
|
310
|
-
this._libFiles = {};
|
|
311
|
-
this._hasFetchedLibFiles = false;
|
|
312
|
-
this._fetchLibFilesPromise = null;
|
|
313
|
-
}
|
|
314
|
-
isLibFile(uri) {
|
|
315
|
-
if (!uri) {
|
|
316
|
-
return false;
|
|
317
|
-
}
|
|
318
|
-
if (uri.path.indexOf("/lib.") === 0) {
|
|
319
|
-
return !!libFileSet[uri.path.slice(1)];
|
|
320
|
-
}
|
|
321
|
-
return false;
|
|
322
|
-
}
|
|
323
|
-
getOrCreateModel(fileName) {
|
|
324
|
-
const uri = monaco_editor_core_exports.Uri.parse(fileName);
|
|
325
|
-
const model = monaco_editor_core_exports.editor.getModel(uri);
|
|
326
|
-
if (model) {
|
|
327
|
-
return model;
|
|
328
|
-
}
|
|
329
|
-
if (this.isLibFile(uri) && this._hasFetchedLibFiles) {
|
|
330
|
-
return monaco_editor_core_exports.editor.createModel(this._libFiles[uri.path.slice(1)], "typescript", uri);
|
|
331
|
-
}
|
|
332
|
-
const matchedLibFile = typescriptDefaults.getExtraLibs()[fileName];
|
|
333
|
-
if (matchedLibFile) {
|
|
334
|
-
return monaco_editor_core_exports.editor.createModel(matchedLibFile.content, "typescript", uri);
|
|
335
|
-
}
|
|
336
|
-
return null;
|
|
337
|
-
}
|
|
338
|
-
_containsLibFile(uris) {
|
|
339
|
-
for (let uri of uris) {
|
|
340
|
-
if (this.isLibFile(uri)) {
|
|
341
|
-
return true;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
return false;
|
|
345
|
-
}
|
|
346
|
-
async fetchLibFilesIfNecessary(uris) {
|
|
347
|
-
if (!this._containsLibFile(uris)) {
|
|
348
|
-
return;
|
|
349
|
-
}
|
|
350
|
-
await this._fetchLibFiles();
|
|
351
|
-
}
|
|
352
|
-
_fetchLibFiles() {
|
|
353
|
-
if (!this._fetchLibFilesPromise) {
|
|
354
|
-
this._fetchLibFilesPromise = this._worker().then((w) => w.getLibFiles()).then((libFiles) => {
|
|
355
|
-
this._hasFetchedLibFiles = true;
|
|
356
|
-
this._libFiles = libFiles;
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
return this._fetchLibFilesPromise;
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
var DiagnosticsAdapter = class extends Adapter {
|
|
363
|
-
constructor(_libFiles, _defaults, _selector, worker) {
|
|
364
|
-
super(worker);
|
|
365
|
-
this._libFiles = _libFiles;
|
|
366
|
-
this._defaults = _defaults;
|
|
367
|
-
this._selector = _selector;
|
|
368
|
-
this._disposables = [];
|
|
369
|
-
this._listener = /* @__PURE__ */ Object.create(null);
|
|
370
|
-
const onModelAdd = (model) => {
|
|
371
|
-
if (model.getLanguageId() !== _selector) {
|
|
372
|
-
return;
|
|
373
|
-
}
|
|
374
|
-
const maybeValidate = () => {
|
|
375
|
-
const { onlyVisible } = this._defaults.getDiagnosticsOptions();
|
|
376
|
-
if (onlyVisible) {
|
|
377
|
-
if (model.isAttachedToEditor()) {
|
|
378
|
-
this._doValidate(model);
|
|
379
|
-
}
|
|
380
|
-
} else {
|
|
381
|
-
this._doValidate(model);
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
let handle;
|
|
385
|
-
const changeSubscription = model.onDidChangeContent(() => {
|
|
386
|
-
clearTimeout(handle);
|
|
387
|
-
handle = window.setTimeout(maybeValidate, 500);
|
|
388
|
-
});
|
|
389
|
-
const visibleSubscription = model.onDidChangeAttached(() => {
|
|
390
|
-
const { onlyVisible } = this._defaults.getDiagnosticsOptions();
|
|
391
|
-
if (onlyVisible) {
|
|
392
|
-
if (model.isAttachedToEditor()) {
|
|
393
|
-
maybeValidate();
|
|
394
|
-
} else {
|
|
395
|
-
monaco_editor_core_exports.editor.setModelMarkers(model, this._selector, []);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
});
|
|
399
|
-
this._listener[model.uri.toString()] = {
|
|
400
|
-
dispose() {
|
|
401
|
-
changeSubscription.dispose();
|
|
402
|
-
visibleSubscription.dispose();
|
|
403
|
-
clearTimeout(handle);
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
maybeValidate();
|
|
407
|
-
};
|
|
408
|
-
const onModelRemoved = (model) => {
|
|
409
|
-
monaco_editor_core_exports.editor.setModelMarkers(model, this._selector, []);
|
|
410
|
-
const key = model.uri.toString();
|
|
411
|
-
if (this._listener[key]) {
|
|
412
|
-
this._listener[key].dispose();
|
|
413
|
-
delete this._listener[key];
|
|
414
|
-
}
|
|
415
|
-
};
|
|
416
|
-
this._disposables.push(
|
|
417
|
-
monaco_editor_core_exports.editor.onDidCreateModel((model) => onModelAdd(model))
|
|
418
|
-
);
|
|
419
|
-
this._disposables.push(monaco_editor_core_exports.editor.onWillDisposeModel(onModelRemoved));
|
|
420
|
-
this._disposables.push(
|
|
421
|
-
monaco_editor_core_exports.editor.onDidChangeModelLanguage((event) => {
|
|
422
|
-
onModelRemoved(event.model);
|
|
423
|
-
onModelAdd(event.model);
|
|
424
|
-
})
|
|
425
|
-
);
|
|
426
|
-
this._disposables.push({
|
|
427
|
-
dispose() {
|
|
428
|
-
for (const model of monaco_editor_core_exports.editor.getModels()) {
|
|
429
|
-
onModelRemoved(model);
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
});
|
|
433
|
-
const recomputeDiagostics = () => {
|
|
434
|
-
for (const model of monaco_editor_core_exports.editor.getModels()) {
|
|
435
|
-
onModelRemoved(model);
|
|
436
|
-
onModelAdd(model);
|
|
437
|
-
}
|
|
438
|
-
};
|
|
439
|
-
this._disposables.push(this._defaults.onDidChange(recomputeDiagostics));
|
|
440
|
-
this._disposables.push(this._defaults.onDidExtraLibsChange(recomputeDiagostics));
|
|
441
|
-
monaco_editor_core_exports.editor.getModels().forEach((model) => onModelAdd(model));
|
|
442
|
-
}
|
|
443
|
-
dispose() {
|
|
444
|
-
this._disposables.forEach((d) => d && d.dispose());
|
|
445
|
-
this._disposables = [];
|
|
446
|
-
}
|
|
447
|
-
async _doValidate(model) {
|
|
448
|
-
const worker = await this._worker(model.uri);
|
|
449
|
-
if (model.isDisposed()) {
|
|
450
|
-
return;
|
|
451
|
-
}
|
|
452
|
-
const promises = [];
|
|
453
|
-
const { noSyntaxValidation, noSemanticValidation, noSuggestionDiagnostics } = this._defaults.getDiagnosticsOptions();
|
|
454
|
-
if (!noSyntaxValidation) {
|
|
455
|
-
promises.push(worker.getSyntacticDiagnostics(model.uri.toString()));
|
|
456
|
-
}
|
|
457
|
-
if (!noSemanticValidation) {
|
|
458
|
-
promises.push(worker.getSemanticDiagnostics(model.uri.toString()));
|
|
459
|
-
}
|
|
460
|
-
if (!noSuggestionDiagnostics) {
|
|
461
|
-
promises.push(worker.getSuggestionDiagnostics(model.uri.toString()));
|
|
462
|
-
}
|
|
463
|
-
const allDiagnostics = await Promise.all(promises);
|
|
464
|
-
if (!allDiagnostics || model.isDisposed()) {
|
|
465
|
-
return;
|
|
466
|
-
}
|
|
467
|
-
const diagnostics = allDiagnostics.reduce((p, c) => c.concat(p), []).filter(
|
|
468
|
-
(d) => (this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore || []).indexOf(d.code) === -1
|
|
469
|
-
);
|
|
470
|
-
const relatedUris = diagnostics.map((d) => d.relatedInformation || []).reduce((p, c) => c.concat(p), []).map(
|
|
471
|
-
(relatedInformation) => relatedInformation.file ? monaco_editor_core_exports.Uri.parse(relatedInformation.file.fileName) : null
|
|
472
|
-
);
|
|
473
|
-
await this._libFiles.fetchLibFilesIfNecessary(relatedUris);
|
|
474
|
-
if (model.isDisposed()) {
|
|
475
|
-
return;
|
|
476
|
-
}
|
|
477
|
-
monaco_editor_core_exports.editor.setModelMarkers(
|
|
478
|
-
model,
|
|
479
|
-
this._selector,
|
|
480
|
-
diagnostics.map((d) => this._convertDiagnostics(model, d))
|
|
481
|
-
);
|
|
482
|
-
}
|
|
483
|
-
_convertDiagnostics(model, diag) {
|
|
484
|
-
const diagStart = diag.start || 0;
|
|
485
|
-
const diagLength = diag.length || 1;
|
|
486
|
-
const { lineNumber: startLineNumber, column: startColumn } = model.getPositionAt(diagStart);
|
|
487
|
-
const { lineNumber: endLineNumber, column: endColumn } = model.getPositionAt(
|
|
488
|
-
diagStart + diagLength
|
|
489
|
-
);
|
|
490
|
-
const tags = [];
|
|
491
|
-
if (diag.reportsUnnecessary) {
|
|
492
|
-
tags.push(monaco_editor_core_exports.MarkerTag.Unnecessary);
|
|
493
|
-
}
|
|
494
|
-
if (diag.reportsDeprecated) {
|
|
495
|
-
tags.push(monaco_editor_core_exports.MarkerTag.Deprecated);
|
|
496
|
-
}
|
|
497
|
-
return {
|
|
498
|
-
severity: this._tsDiagnosticCategoryToMarkerSeverity(diag.category),
|
|
499
|
-
startLineNumber,
|
|
500
|
-
startColumn,
|
|
501
|
-
endLineNumber,
|
|
502
|
-
endColumn,
|
|
503
|
-
message: flattenDiagnosticMessageText(diag.messageText, "\n"),
|
|
504
|
-
code: diag.code.toString(),
|
|
505
|
-
tags,
|
|
506
|
-
relatedInformation: this._convertRelatedInformation(model, diag.relatedInformation)
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
_convertRelatedInformation(model, relatedInformation) {
|
|
510
|
-
if (!relatedInformation) {
|
|
511
|
-
return [];
|
|
512
|
-
}
|
|
513
|
-
const result = [];
|
|
514
|
-
relatedInformation.forEach((info) => {
|
|
515
|
-
let relatedResource = model;
|
|
516
|
-
if (info.file) {
|
|
517
|
-
relatedResource = this._libFiles.getOrCreateModel(info.file.fileName);
|
|
518
|
-
}
|
|
519
|
-
if (!relatedResource) {
|
|
520
|
-
return;
|
|
521
|
-
}
|
|
522
|
-
const infoStart = info.start || 0;
|
|
523
|
-
const infoLength = info.length || 1;
|
|
524
|
-
const { lineNumber: startLineNumber, column: startColumn } = relatedResource.getPositionAt(infoStart);
|
|
525
|
-
const { lineNumber: endLineNumber, column: endColumn } = relatedResource.getPositionAt(
|
|
526
|
-
infoStart + infoLength
|
|
527
|
-
);
|
|
528
|
-
result.push({
|
|
529
|
-
resource: relatedResource.uri,
|
|
530
|
-
startLineNumber,
|
|
531
|
-
startColumn,
|
|
532
|
-
endLineNumber,
|
|
533
|
-
endColumn,
|
|
534
|
-
message: flattenDiagnosticMessageText(info.messageText, "\n")
|
|
535
|
-
});
|
|
536
|
-
});
|
|
537
|
-
return result;
|
|
538
|
-
}
|
|
539
|
-
_tsDiagnosticCategoryToMarkerSeverity(category) {
|
|
540
|
-
switch (category) {
|
|
541
|
-
case 1 /* Error */:
|
|
542
|
-
return monaco_editor_core_exports.MarkerSeverity.Error;
|
|
543
|
-
case 3 /* Message */:
|
|
544
|
-
return monaco_editor_core_exports.MarkerSeverity.Info;
|
|
545
|
-
case 0 /* Warning */:
|
|
546
|
-
return monaco_editor_core_exports.MarkerSeverity.Warning;
|
|
547
|
-
case 2 /* Suggestion */:
|
|
548
|
-
return monaco_editor_core_exports.MarkerSeverity.Hint;
|
|
549
|
-
}
|
|
550
|
-
return monaco_editor_core_exports.MarkerSeverity.Info;
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
|
-
var SuggestAdapter = class _SuggestAdapter extends Adapter {
|
|
554
|
-
get triggerCharacters() {
|
|
555
|
-
return ["."];
|
|
556
|
-
}
|
|
557
|
-
async provideCompletionItems(model, position, _context, token) {
|
|
558
|
-
const wordInfo = model.getWordUntilPosition(position);
|
|
559
|
-
const wordRange = new monaco_editor_core_exports.Range(
|
|
560
|
-
position.lineNumber,
|
|
561
|
-
wordInfo.startColumn,
|
|
562
|
-
position.lineNumber,
|
|
563
|
-
wordInfo.endColumn
|
|
564
|
-
);
|
|
565
|
-
const resource = model.uri;
|
|
566
|
-
const offset = model.getOffsetAt(position);
|
|
567
|
-
const worker = await this._worker(resource);
|
|
568
|
-
if (model.isDisposed()) {
|
|
569
|
-
return;
|
|
570
|
-
}
|
|
571
|
-
const info = await worker.getCompletionsAtPosition(resource.toString(), offset);
|
|
572
|
-
if (!info || model.isDisposed()) {
|
|
573
|
-
return;
|
|
574
|
-
}
|
|
575
|
-
const suggestions = info.entries.map((entry) => {
|
|
576
|
-
let range = wordRange;
|
|
577
|
-
if (entry.replacementSpan) {
|
|
578
|
-
const p1 = model.getPositionAt(entry.replacementSpan.start);
|
|
579
|
-
const p2 = model.getPositionAt(entry.replacementSpan.start + entry.replacementSpan.length);
|
|
580
|
-
range = new monaco_editor_core_exports.Range(p1.lineNumber, p1.column, p2.lineNumber, p2.column);
|
|
581
|
-
}
|
|
582
|
-
const tags = [];
|
|
583
|
-
if (entry.kindModifiers !== void 0 && entry.kindModifiers.indexOf("deprecated") !== -1) {
|
|
584
|
-
tags.push(monaco_editor_core_exports.languages.CompletionItemTag.Deprecated);
|
|
585
|
-
}
|
|
586
|
-
return {
|
|
587
|
-
uri: resource,
|
|
588
|
-
position,
|
|
589
|
-
offset,
|
|
590
|
-
range,
|
|
591
|
-
label: entry.name,
|
|
592
|
-
insertText: entry.name,
|
|
593
|
-
sortText: entry.sortText,
|
|
594
|
-
kind: _SuggestAdapter.convertKind(entry.kind),
|
|
595
|
-
tags
|
|
596
|
-
};
|
|
597
|
-
});
|
|
598
|
-
return {
|
|
599
|
-
suggestions
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
async resolveCompletionItem(item, token) {
|
|
603
|
-
const myItem = item;
|
|
604
|
-
const resource = myItem.uri;
|
|
605
|
-
const position = myItem.position;
|
|
606
|
-
const offset = myItem.offset;
|
|
607
|
-
const worker = await this._worker(resource);
|
|
608
|
-
const details = await worker.getCompletionEntryDetails(
|
|
609
|
-
resource.toString(),
|
|
610
|
-
offset,
|
|
611
|
-
myItem.label
|
|
612
|
-
);
|
|
613
|
-
if (!details) {
|
|
614
|
-
return myItem;
|
|
615
|
-
}
|
|
616
|
-
return {
|
|
617
|
-
uri: resource,
|
|
618
|
-
position,
|
|
619
|
-
label: details.name,
|
|
620
|
-
kind: _SuggestAdapter.convertKind(details.kind),
|
|
621
|
-
detail: displayPartsToString(details.displayParts),
|
|
622
|
-
documentation: {
|
|
623
|
-
value: _SuggestAdapter.createDocumentationString(details)
|
|
624
|
-
}
|
|
625
|
-
};
|
|
626
|
-
}
|
|
627
|
-
static convertKind(kind) {
|
|
628
|
-
switch (kind) {
|
|
629
|
-
case Kind.primitiveType:
|
|
630
|
-
case Kind.keyword:
|
|
631
|
-
return monaco_editor_core_exports.languages.CompletionItemKind.Keyword;
|
|
632
|
-
case Kind.variable:
|
|
633
|
-
case Kind.localVariable:
|
|
634
|
-
return monaco_editor_core_exports.languages.CompletionItemKind.Variable;
|
|
635
|
-
case Kind.memberVariable:
|
|
636
|
-
case Kind.memberGetAccessor:
|
|
637
|
-
case Kind.memberSetAccessor:
|
|
638
|
-
return monaco_editor_core_exports.languages.CompletionItemKind.Field;
|
|
639
|
-
case Kind.function:
|
|
640
|
-
case Kind.memberFunction:
|
|
641
|
-
case Kind.constructSignature:
|
|
642
|
-
case Kind.callSignature:
|
|
643
|
-
case Kind.indexSignature:
|
|
644
|
-
return monaco_editor_core_exports.languages.CompletionItemKind.Function;
|
|
645
|
-
case Kind.enum:
|
|
646
|
-
return monaco_editor_core_exports.languages.CompletionItemKind.Enum;
|
|
647
|
-
case Kind.module:
|
|
648
|
-
return monaco_editor_core_exports.languages.CompletionItemKind.Module;
|
|
649
|
-
case Kind.class:
|
|
650
|
-
return monaco_editor_core_exports.languages.CompletionItemKind.Class;
|
|
651
|
-
case Kind.interface:
|
|
652
|
-
return monaco_editor_core_exports.languages.CompletionItemKind.Interface;
|
|
653
|
-
case Kind.warning:
|
|
654
|
-
return monaco_editor_core_exports.languages.CompletionItemKind.File;
|
|
655
|
-
}
|
|
656
|
-
return monaco_editor_core_exports.languages.CompletionItemKind.Property;
|
|
657
|
-
}
|
|
658
|
-
static createDocumentationString(details) {
|
|
659
|
-
let documentationString = displayPartsToString(details.documentation);
|
|
660
|
-
if (details.tags) {
|
|
661
|
-
for (const tag of details.tags) {
|
|
662
|
-
documentationString += `
|
|
663
|
-
|
|
664
|
-
${tagToString(tag)}`;
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
return documentationString;
|
|
668
|
-
}
|
|
669
|
-
};
|
|
670
|
-
function tagToString(tag) {
|
|
671
|
-
let tagLabel = `*@${tag.name}*`;
|
|
672
|
-
if (tag.name === "param" && tag.text) {
|
|
673
|
-
const [paramName, ...rest] = tag.text;
|
|
674
|
-
tagLabel += `\`${paramName.text}\``;
|
|
675
|
-
if (rest.length > 0) tagLabel += ` \u2014 ${rest.map((r) => r.text).join(" ")}`;
|
|
676
|
-
} else if (Array.isArray(tag.text)) {
|
|
677
|
-
tagLabel += ` \u2014 ${tag.text.map((r) => r.text).join(" ")}`;
|
|
678
|
-
} else if (tag.text) {
|
|
679
|
-
tagLabel += ` \u2014 ${tag.text}`;
|
|
680
|
-
}
|
|
681
|
-
return tagLabel;
|
|
682
|
-
}
|
|
683
|
-
var SignatureHelpAdapter = class _SignatureHelpAdapter extends Adapter {
|
|
684
|
-
constructor() {
|
|
685
|
-
super(...arguments);
|
|
686
|
-
this.signatureHelpTriggerCharacters = ["(", ","];
|
|
687
|
-
}
|
|
688
|
-
static _toSignatureHelpTriggerReason(context) {
|
|
689
|
-
switch (context.triggerKind) {
|
|
690
|
-
case monaco_editor_core_exports.languages.SignatureHelpTriggerKind.TriggerCharacter:
|
|
691
|
-
if (context.triggerCharacter) {
|
|
692
|
-
if (context.isRetrigger) {
|
|
693
|
-
return { kind: "retrigger", triggerCharacter: context.triggerCharacter };
|
|
694
|
-
} else {
|
|
695
|
-
return { kind: "characterTyped", triggerCharacter: context.triggerCharacter };
|
|
696
|
-
}
|
|
697
|
-
} else {
|
|
698
|
-
return { kind: "invoked" };
|
|
699
|
-
}
|
|
700
|
-
case monaco_editor_core_exports.languages.SignatureHelpTriggerKind.ContentChange:
|
|
701
|
-
return context.isRetrigger ? { kind: "retrigger" } : { kind: "invoked" };
|
|
702
|
-
case monaco_editor_core_exports.languages.SignatureHelpTriggerKind.Invoke:
|
|
703
|
-
default:
|
|
704
|
-
return { kind: "invoked" };
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
async provideSignatureHelp(model, position, token, context) {
|
|
708
|
-
const resource = model.uri;
|
|
709
|
-
const offset = model.getOffsetAt(position);
|
|
710
|
-
const worker = await this._worker(resource);
|
|
711
|
-
if (model.isDisposed()) {
|
|
712
|
-
return;
|
|
713
|
-
}
|
|
714
|
-
const info = await worker.getSignatureHelpItems(resource.toString(), offset, {
|
|
715
|
-
triggerReason: _SignatureHelpAdapter._toSignatureHelpTriggerReason(context)
|
|
716
|
-
});
|
|
717
|
-
if (!info || model.isDisposed()) {
|
|
718
|
-
return;
|
|
719
|
-
}
|
|
720
|
-
const ret = {
|
|
721
|
-
activeSignature: info.selectedItemIndex,
|
|
722
|
-
activeParameter: info.argumentIndex,
|
|
723
|
-
signatures: []
|
|
724
|
-
};
|
|
725
|
-
info.items.forEach((item) => {
|
|
726
|
-
const signature = {
|
|
727
|
-
label: "",
|
|
728
|
-
parameters: []
|
|
729
|
-
};
|
|
730
|
-
signature.documentation = {
|
|
731
|
-
value: displayPartsToString(item.documentation)
|
|
732
|
-
};
|
|
733
|
-
signature.label += displayPartsToString(item.prefixDisplayParts);
|
|
734
|
-
item.parameters.forEach((p, i, a) => {
|
|
735
|
-
const label = displayPartsToString(p.displayParts);
|
|
736
|
-
const parameter = {
|
|
737
|
-
label,
|
|
738
|
-
documentation: {
|
|
739
|
-
value: displayPartsToString(p.documentation)
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
|
-
signature.label += label;
|
|
743
|
-
signature.parameters.push(parameter);
|
|
744
|
-
if (i < a.length - 1) {
|
|
745
|
-
signature.label += displayPartsToString(item.separatorDisplayParts);
|
|
746
|
-
}
|
|
747
|
-
});
|
|
748
|
-
signature.label += displayPartsToString(item.suffixDisplayParts);
|
|
749
|
-
ret.signatures.push(signature);
|
|
750
|
-
});
|
|
751
|
-
return {
|
|
752
|
-
value: ret,
|
|
753
|
-
dispose() {
|
|
754
|
-
}
|
|
755
|
-
};
|
|
756
|
-
}
|
|
757
|
-
};
|
|
758
|
-
var QuickInfoAdapter = class extends Adapter {
|
|
759
|
-
async provideHover(model, position, token) {
|
|
760
|
-
const resource = model.uri;
|
|
761
|
-
const offset = model.getOffsetAt(position);
|
|
762
|
-
const worker = await this._worker(resource);
|
|
763
|
-
if (model.isDisposed()) {
|
|
764
|
-
return;
|
|
765
|
-
}
|
|
766
|
-
const info = await worker.getQuickInfoAtPosition(resource.toString(), offset);
|
|
767
|
-
if (!info || model.isDisposed()) {
|
|
768
|
-
return;
|
|
769
|
-
}
|
|
770
|
-
const documentation = displayPartsToString(info.documentation);
|
|
771
|
-
const tags = info.tags ? info.tags.map((tag) => tagToString(tag)).join(" \n\n") : "";
|
|
772
|
-
const contents = displayPartsToString(info.displayParts);
|
|
773
|
-
return {
|
|
774
|
-
range: this._textSpanToRange(model, info.textSpan),
|
|
775
|
-
contents: [
|
|
776
|
-
{
|
|
777
|
-
value: "```typescript\n" + contents + "\n```\n"
|
|
778
|
-
},
|
|
779
|
-
{
|
|
780
|
-
value: documentation + (tags ? "\n\n" + tags : "")
|
|
781
|
-
}
|
|
782
|
-
]
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
};
|
|
786
|
-
var DocumentHighlightAdapter = class extends Adapter {
|
|
787
|
-
async provideDocumentHighlights(model, position, token) {
|
|
788
|
-
const resource = model.uri;
|
|
789
|
-
const offset = model.getOffsetAt(position);
|
|
790
|
-
const worker = await this._worker(resource);
|
|
791
|
-
if (model.isDisposed()) {
|
|
792
|
-
return;
|
|
793
|
-
}
|
|
794
|
-
const entries = await worker.getDocumentHighlights(resource.toString(), offset, [
|
|
795
|
-
resource.toString()
|
|
796
|
-
]);
|
|
797
|
-
if (!entries || model.isDisposed()) {
|
|
798
|
-
return;
|
|
799
|
-
}
|
|
800
|
-
return entries.flatMap((entry) => {
|
|
801
|
-
return entry.highlightSpans.map((highlightSpans) => {
|
|
802
|
-
return {
|
|
803
|
-
range: this._textSpanToRange(model, highlightSpans.textSpan),
|
|
804
|
-
kind: highlightSpans.kind === "writtenReference" ? monaco_editor_core_exports.languages.DocumentHighlightKind.Write : monaco_editor_core_exports.languages.DocumentHighlightKind.Text
|
|
805
|
-
};
|
|
806
|
-
});
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
};
|
|
810
|
-
var DefinitionAdapter = class extends Adapter {
|
|
811
|
-
constructor(_libFiles, worker) {
|
|
812
|
-
super(worker);
|
|
813
|
-
this._libFiles = _libFiles;
|
|
814
|
-
}
|
|
815
|
-
async provideDefinition(model, position, token) {
|
|
816
|
-
const resource = model.uri;
|
|
817
|
-
const offset = model.getOffsetAt(position);
|
|
818
|
-
const worker = await this._worker(resource);
|
|
819
|
-
if (model.isDisposed()) {
|
|
820
|
-
return;
|
|
821
|
-
}
|
|
822
|
-
const entries = await worker.getDefinitionAtPosition(resource.toString(), offset);
|
|
823
|
-
if (!entries || model.isDisposed()) {
|
|
824
|
-
return;
|
|
825
|
-
}
|
|
826
|
-
await this._libFiles.fetchLibFilesIfNecessary(
|
|
827
|
-
entries.map((entry) => monaco_editor_core_exports.Uri.parse(entry.fileName))
|
|
828
|
-
);
|
|
829
|
-
if (model.isDisposed()) {
|
|
830
|
-
return;
|
|
831
|
-
}
|
|
832
|
-
const result = [];
|
|
833
|
-
for (let entry of entries) {
|
|
834
|
-
const refModel = this._libFiles.getOrCreateModel(entry.fileName);
|
|
835
|
-
if (refModel) {
|
|
836
|
-
result.push({
|
|
837
|
-
uri: refModel.uri,
|
|
838
|
-
range: this._textSpanToRange(refModel, entry.textSpan)
|
|
839
|
-
});
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
return result;
|
|
843
|
-
}
|
|
844
|
-
};
|
|
845
|
-
var ReferenceAdapter = class extends Adapter {
|
|
846
|
-
constructor(_libFiles, worker) {
|
|
847
|
-
super(worker);
|
|
848
|
-
this._libFiles = _libFiles;
|
|
849
|
-
}
|
|
850
|
-
async provideReferences(model, position, context, token) {
|
|
851
|
-
const resource = model.uri;
|
|
852
|
-
const offset = model.getOffsetAt(position);
|
|
853
|
-
const worker = await this._worker(resource);
|
|
854
|
-
if (model.isDisposed()) {
|
|
855
|
-
return;
|
|
856
|
-
}
|
|
857
|
-
const entries = await worker.getReferencesAtPosition(resource.toString(), offset);
|
|
858
|
-
if (!entries || model.isDisposed()) {
|
|
859
|
-
return;
|
|
860
|
-
}
|
|
861
|
-
await this._libFiles.fetchLibFilesIfNecessary(
|
|
862
|
-
entries.map((entry) => monaco_editor_core_exports.Uri.parse(entry.fileName))
|
|
863
|
-
);
|
|
864
|
-
if (model.isDisposed()) {
|
|
865
|
-
return;
|
|
866
|
-
}
|
|
867
|
-
const result = [];
|
|
868
|
-
for (let entry of entries) {
|
|
869
|
-
const refModel = this._libFiles.getOrCreateModel(entry.fileName);
|
|
870
|
-
if (refModel) {
|
|
871
|
-
result.push({
|
|
872
|
-
uri: refModel.uri,
|
|
873
|
-
range: this._textSpanToRange(refModel, entry.textSpan)
|
|
874
|
-
});
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
return result;
|
|
878
|
-
}
|
|
879
|
-
};
|
|
880
|
-
var OutlineAdapter = class extends Adapter {
|
|
881
|
-
async provideDocumentSymbols(model, token) {
|
|
882
|
-
const resource = model.uri;
|
|
883
|
-
const worker = await this._worker(resource);
|
|
884
|
-
if (model.isDisposed()) {
|
|
885
|
-
return;
|
|
886
|
-
}
|
|
887
|
-
const root = await worker.getNavigationTree(resource.toString());
|
|
888
|
-
if (!root || model.isDisposed()) {
|
|
889
|
-
return;
|
|
890
|
-
}
|
|
891
|
-
const convert = (item, containerLabel) => {
|
|
892
|
-
const result2 = {
|
|
893
|
-
name: item.text,
|
|
894
|
-
detail: "",
|
|
895
|
-
kind: outlineTypeTable[item.kind] || monaco_editor_core_exports.languages.SymbolKind.Variable,
|
|
896
|
-
range: this._textSpanToRange(model, item.spans[0]),
|
|
897
|
-
selectionRange: this._textSpanToRange(model, item.spans[0]),
|
|
898
|
-
tags: [],
|
|
899
|
-
children: item.childItems?.map((child) => convert(child, item.text)),
|
|
900
|
-
containerName: containerLabel
|
|
901
|
-
};
|
|
902
|
-
return result2;
|
|
903
|
-
};
|
|
904
|
-
const result = root.childItems ? root.childItems.map((item) => convert(item)) : [];
|
|
905
|
-
return result;
|
|
906
|
-
}
|
|
907
|
-
};
|
|
908
|
-
var Kind = class {
|
|
909
|
-
static {
|
|
910
|
-
this.unknown = "";
|
|
911
|
-
}
|
|
912
|
-
static {
|
|
913
|
-
this.keyword = "keyword";
|
|
914
|
-
}
|
|
915
|
-
static {
|
|
916
|
-
this.script = "script";
|
|
917
|
-
}
|
|
918
|
-
static {
|
|
919
|
-
this.module = "module";
|
|
920
|
-
}
|
|
921
|
-
static {
|
|
922
|
-
this.class = "class";
|
|
923
|
-
}
|
|
924
|
-
static {
|
|
925
|
-
this.interface = "interface";
|
|
926
|
-
}
|
|
927
|
-
static {
|
|
928
|
-
this.type = "type";
|
|
929
|
-
}
|
|
930
|
-
static {
|
|
931
|
-
this.enum = "enum";
|
|
932
|
-
}
|
|
933
|
-
static {
|
|
934
|
-
this.variable = "var";
|
|
935
|
-
}
|
|
936
|
-
static {
|
|
937
|
-
this.localVariable = "local var";
|
|
938
|
-
}
|
|
939
|
-
static {
|
|
940
|
-
this.function = "function";
|
|
941
|
-
}
|
|
942
|
-
static {
|
|
943
|
-
this.localFunction = "local function";
|
|
944
|
-
}
|
|
945
|
-
static {
|
|
946
|
-
this.memberFunction = "method";
|
|
947
|
-
}
|
|
948
|
-
static {
|
|
949
|
-
this.memberGetAccessor = "getter";
|
|
950
|
-
}
|
|
951
|
-
static {
|
|
952
|
-
this.memberSetAccessor = "setter";
|
|
953
|
-
}
|
|
954
|
-
static {
|
|
955
|
-
this.memberVariable = "property";
|
|
956
|
-
}
|
|
957
|
-
static {
|
|
958
|
-
this.constructorImplementation = "constructor";
|
|
959
|
-
}
|
|
960
|
-
static {
|
|
961
|
-
this.callSignature = "call";
|
|
962
|
-
}
|
|
963
|
-
static {
|
|
964
|
-
this.indexSignature = "index";
|
|
965
|
-
}
|
|
966
|
-
static {
|
|
967
|
-
this.constructSignature = "construct";
|
|
968
|
-
}
|
|
969
|
-
static {
|
|
970
|
-
this.parameter = "parameter";
|
|
971
|
-
}
|
|
972
|
-
static {
|
|
973
|
-
this.typeParameter = "type parameter";
|
|
974
|
-
}
|
|
975
|
-
static {
|
|
976
|
-
this.primitiveType = "primitive type";
|
|
977
|
-
}
|
|
978
|
-
static {
|
|
979
|
-
this.label = "label";
|
|
980
|
-
}
|
|
981
|
-
static {
|
|
982
|
-
this.alias = "alias";
|
|
983
|
-
}
|
|
984
|
-
static {
|
|
985
|
-
this.const = "const";
|
|
986
|
-
}
|
|
987
|
-
static {
|
|
988
|
-
this.let = "let";
|
|
989
|
-
}
|
|
990
|
-
static {
|
|
991
|
-
this.warning = "warning";
|
|
992
|
-
}
|
|
993
|
-
};
|
|
994
|
-
var outlineTypeTable = /* @__PURE__ */ Object.create(null);
|
|
995
|
-
outlineTypeTable[Kind.module] = monaco_editor_core_exports.languages.SymbolKind.Module;
|
|
996
|
-
outlineTypeTable[Kind.class] = monaco_editor_core_exports.languages.SymbolKind.Class;
|
|
997
|
-
outlineTypeTable[Kind.enum] = monaco_editor_core_exports.languages.SymbolKind.Enum;
|
|
998
|
-
outlineTypeTable[Kind.interface] = monaco_editor_core_exports.languages.SymbolKind.Interface;
|
|
999
|
-
outlineTypeTable[Kind.memberFunction] = monaco_editor_core_exports.languages.SymbolKind.Method;
|
|
1000
|
-
outlineTypeTable[Kind.memberVariable] = monaco_editor_core_exports.languages.SymbolKind.Property;
|
|
1001
|
-
outlineTypeTable[Kind.memberGetAccessor] = monaco_editor_core_exports.languages.SymbolKind.Property;
|
|
1002
|
-
outlineTypeTable[Kind.memberSetAccessor] = monaco_editor_core_exports.languages.SymbolKind.Property;
|
|
1003
|
-
outlineTypeTable[Kind.variable] = monaco_editor_core_exports.languages.SymbolKind.Variable;
|
|
1004
|
-
outlineTypeTable[Kind.const] = monaco_editor_core_exports.languages.SymbolKind.Variable;
|
|
1005
|
-
outlineTypeTable[Kind.localVariable] = monaco_editor_core_exports.languages.SymbolKind.Variable;
|
|
1006
|
-
outlineTypeTable[Kind.variable] = monaco_editor_core_exports.languages.SymbolKind.Variable;
|
|
1007
|
-
outlineTypeTable[Kind.function] = monaco_editor_core_exports.languages.SymbolKind.Function;
|
|
1008
|
-
outlineTypeTable[Kind.localFunction] = monaco_editor_core_exports.languages.SymbolKind.Function;
|
|
1009
|
-
var FormatHelper = class extends Adapter {
|
|
1010
|
-
static _convertOptions(options) {
|
|
1011
|
-
return {
|
|
1012
|
-
ConvertTabsToSpaces: options.insertSpaces,
|
|
1013
|
-
TabSize: options.tabSize,
|
|
1014
|
-
IndentSize: options.tabSize,
|
|
1015
|
-
IndentStyle: 2 /* Smart */,
|
|
1016
|
-
NewLineCharacter: "\n",
|
|
1017
|
-
InsertSpaceAfterCommaDelimiter: true,
|
|
1018
|
-
InsertSpaceAfterSemicolonInForStatements: true,
|
|
1019
|
-
InsertSpaceBeforeAndAfterBinaryOperators: true,
|
|
1020
|
-
InsertSpaceAfterKeywordsInControlFlowStatements: true,
|
|
1021
|
-
InsertSpaceAfterFunctionKeywordForAnonymousFunctions: true,
|
|
1022
|
-
InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: false,
|
|
1023
|
-
InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: false,
|
|
1024
|
-
InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: false,
|
|
1025
|
-
PlaceOpenBraceOnNewLineForControlBlocks: false,
|
|
1026
|
-
PlaceOpenBraceOnNewLineForFunctions: false
|
|
1027
|
-
};
|
|
1028
|
-
}
|
|
1029
|
-
_convertTextChanges(model, change) {
|
|
1030
|
-
return {
|
|
1031
|
-
text: change.newText,
|
|
1032
|
-
range: this._textSpanToRange(model, change.span)
|
|
1033
|
-
};
|
|
1034
|
-
}
|
|
1035
|
-
};
|
|
1036
|
-
var FormatAdapter = class extends FormatHelper {
|
|
1037
|
-
constructor() {
|
|
1038
|
-
super(...arguments);
|
|
1039
|
-
this.canFormatMultipleRanges = false;
|
|
1040
|
-
}
|
|
1041
|
-
async provideDocumentRangeFormattingEdits(model, range, options, token) {
|
|
1042
|
-
const resource = model.uri;
|
|
1043
|
-
const startOffset = model.getOffsetAt({
|
|
1044
|
-
lineNumber: range.startLineNumber,
|
|
1045
|
-
column: range.startColumn
|
|
1046
|
-
});
|
|
1047
|
-
const endOffset = model.getOffsetAt({
|
|
1048
|
-
lineNumber: range.endLineNumber,
|
|
1049
|
-
column: range.endColumn
|
|
1050
|
-
});
|
|
1051
|
-
const worker = await this._worker(resource);
|
|
1052
|
-
if (model.isDisposed()) {
|
|
1053
|
-
return;
|
|
1054
|
-
}
|
|
1055
|
-
const edits = await worker.getFormattingEditsForRange(
|
|
1056
|
-
resource.toString(),
|
|
1057
|
-
startOffset,
|
|
1058
|
-
endOffset,
|
|
1059
|
-
FormatHelper._convertOptions(options)
|
|
1060
|
-
);
|
|
1061
|
-
if (!edits || model.isDisposed()) {
|
|
1062
|
-
return;
|
|
1063
|
-
}
|
|
1064
|
-
return edits.map((edit) => this._convertTextChanges(model, edit));
|
|
1065
|
-
}
|
|
1066
|
-
};
|
|
1067
|
-
var FormatOnTypeAdapter = class extends FormatHelper {
|
|
1068
|
-
get autoFormatTriggerCharacters() {
|
|
1069
|
-
return [";", "}", "\n"];
|
|
1070
|
-
}
|
|
1071
|
-
async provideOnTypeFormattingEdits(model, position, ch, options, token) {
|
|
1072
|
-
const resource = model.uri;
|
|
1073
|
-
const offset = model.getOffsetAt(position);
|
|
1074
|
-
const worker = await this._worker(resource);
|
|
1075
|
-
if (model.isDisposed()) {
|
|
1076
|
-
return;
|
|
1077
|
-
}
|
|
1078
|
-
const edits = await worker.getFormattingEditsAfterKeystroke(
|
|
1079
|
-
resource.toString(),
|
|
1080
|
-
offset,
|
|
1081
|
-
ch,
|
|
1082
|
-
FormatHelper._convertOptions(options)
|
|
1083
|
-
);
|
|
1084
|
-
if (!edits || model.isDisposed()) {
|
|
1085
|
-
return;
|
|
1086
|
-
}
|
|
1087
|
-
return edits.map((edit) => this._convertTextChanges(model, edit));
|
|
1088
|
-
}
|
|
1089
|
-
};
|
|
1090
|
-
var CodeActionAdaptor = class extends FormatHelper {
|
|
1091
|
-
async provideCodeActions(model, range, context, token) {
|
|
1092
|
-
const resource = model.uri;
|
|
1093
|
-
const start = model.getOffsetAt({
|
|
1094
|
-
lineNumber: range.startLineNumber,
|
|
1095
|
-
column: range.startColumn
|
|
1096
|
-
});
|
|
1097
|
-
const end = model.getOffsetAt({
|
|
1098
|
-
lineNumber: range.endLineNumber,
|
|
1099
|
-
column: range.endColumn
|
|
1100
|
-
});
|
|
1101
|
-
const formatOptions = FormatHelper._convertOptions(model.getOptions());
|
|
1102
|
-
const errorCodes = context.markers.filter((m) => m.code).map((m) => m.code).map(Number);
|
|
1103
|
-
const worker = await this._worker(resource);
|
|
1104
|
-
if (model.isDisposed()) {
|
|
1105
|
-
return;
|
|
1106
|
-
}
|
|
1107
|
-
const codeFixes = await worker.getCodeFixesAtPosition(
|
|
1108
|
-
resource.toString(),
|
|
1109
|
-
start,
|
|
1110
|
-
end,
|
|
1111
|
-
errorCodes,
|
|
1112
|
-
formatOptions
|
|
1113
|
-
);
|
|
1114
|
-
if (!codeFixes || model.isDisposed()) {
|
|
1115
|
-
return { actions: [], dispose: () => {
|
|
1116
|
-
} };
|
|
1117
|
-
}
|
|
1118
|
-
const actions = codeFixes.filter((fix) => {
|
|
1119
|
-
return fix.changes.filter((change) => change.isNewFile).length === 0;
|
|
1120
|
-
}).map((fix) => {
|
|
1121
|
-
return this._tsCodeFixActionToMonacoCodeAction(model, context, fix);
|
|
1122
|
-
});
|
|
1123
|
-
return {
|
|
1124
|
-
actions,
|
|
1125
|
-
dispose: () => {
|
|
1126
|
-
}
|
|
1127
|
-
};
|
|
1128
|
-
}
|
|
1129
|
-
_tsCodeFixActionToMonacoCodeAction(model, context, codeFix) {
|
|
1130
|
-
const edits = [];
|
|
1131
|
-
for (const change of codeFix.changes) {
|
|
1132
|
-
for (const textChange of change.textChanges) {
|
|
1133
|
-
edits.push({
|
|
1134
|
-
resource: model.uri,
|
|
1135
|
-
versionId: void 0,
|
|
1136
|
-
textEdit: {
|
|
1137
|
-
range: this._textSpanToRange(model, textChange.span),
|
|
1138
|
-
text: textChange.newText
|
|
1139
|
-
}
|
|
1140
|
-
});
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
const action = {
|
|
1144
|
-
title: codeFix.description,
|
|
1145
|
-
edit: { edits },
|
|
1146
|
-
diagnostics: context.markers,
|
|
1147
|
-
kind: "quickfix"
|
|
1148
|
-
};
|
|
1149
|
-
return action;
|
|
1150
|
-
}
|
|
1151
|
-
};
|
|
1152
|
-
var RenameAdapter = class extends Adapter {
|
|
1153
|
-
constructor(_libFiles, worker) {
|
|
1154
|
-
super(worker);
|
|
1155
|
-
this._libFiles = _libFiles;
|
|
1156
|
-
}
|
|
1157
|
-
async provideRenameEdits(model, position, newName, token) {
|
|
1158
|
-
const resource = model.uri;
|
|
1159
|
-
const fileName = resource.toString();
|
|
1160
|
-
const offset = model.getOffsetAt(position);
|
|
1161
|
-
const worker = await this._worker(resource);
|
|
1162
|
-
if (model.isDisposed()) {
|
|
1163
|
-
return;
|
|
1164
|
-
}
|
|
1165
|
-
const renameInfo = await worker.getRenameInfo(fileName, offset, {
|
|
1166
|
-
allowRenameOfImportPath: false
|
|
1167
|
-
});
|
|
1168
|
-
if (renameInfo.canRename === false) {
|
|
1169
|
-
return {
|
|
1170
|
-
edits: [],
|
|
1171
|
-
rejectReason: renameInfo.localizedErrorMessage
|
|
1172
|
-
};
|
|
1173
|
-
}
|
|
1174
|
-
if (renameInfo.fileToRename !== void 0) {
|
|
1175
|
-
throw new Error("Renaming files is not supported.");
|
|
1176
|
-
}
|
|
1177
|
-
const renameLocations = await worker.findRenameLocations(
|
|
1178
|
-
fileName,
|
|
1179
|
-
offset,
|
|
1180
|
-
/*strings*/
|
|
1181
|
-
false,
|
|
1182
|
-
/*comments*/
|
|
1183
|
-
false,
|
|
1184
|
-
/*prefixAndSuffix*/
|
|
1185
|
-
false
|
|
1186
|
-
);
|
|
1187
|
-
if (!renameLocations || model.isDisposed()) {
|
|
1188
|
-
return;
|
|
1189
|
-
}
|
|
1190
|
-
const edits = [];
|
|
1191
|
-
for (const renameLocation of renameLocations) {
|
|
1192
|
-
const model2 = this._libFiles.getOrCreateModel(renameLocation.fileName);
|
|
1193
|
-
if (model2) {
|
|
1194
|
-
edits.push({
|
|
1195
|
-
resource: model2.uri,
|
|
1196
|
-
versionId: void 0,
|
|
1197
|
-
textEdit: {
|
|
1198
|
-
range: this._textSpanToRange(model2, renameLocation.textSpan),
|
|
1199
|
-
text: newName
|
|
1200
|
-
}
|
|
1201
|
-
});
|
|
1202
|
-
} else {
|
|
1203
|
-
throw new Error(`Unknown file ${renameLocation.fileName}.`);
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
return { edits };
|
|
1207
|
-
}
|
|
1208
|
-
};
|
|
1209
|
-
var InlayHintsAdapter = class extends Adapter {
|
|
1210
|
-
async provideInlayHints(model, range, token) {
|
|
1211
|
-
const resource = model.uri;
|
|
1212
|
-
const fileName = resource.toString();
|
|
1213
|
-
const start = model.getOffsetAt({
|
|
1214
|
-
lineNumber: range.startLineNumber,
|
|
1215
|
-
column: range.startColumn
|
|
1216
|
-
});
|
|
1217
|
-
const end = model.getOffsetAt({
|
|
1218
|
-
lineNumber: range.endLineNumber,
|
|
1219
|
-
column: range.endColumn
|
|
1220
|
-
});
|
|
1221
|
-
const worker = await this._worker(resource);
|
|
1222
|
-
if (model.isDisposed()) {
|
|
1223
|
-
return null;
|
|
1224
|
-
}
|
|
1225
|
-
const tsHints = await worker.provideInlayHints(fileName, start, end);
|
|
1226
|
-
const hints = tsHints.map((hint) => {
|
|
1227
|
-
return {
|
|
1228
|
-
...hint,
|
|
1229
|
-
label: hint.text,
|
|
1230
|
-
position: model.getPositionAt(hint.position),
|
|
1231
|
-
kind: this._convertHintKind(hint.kind)
|
|
1232
|
-
};
|
|
1233
|
-
});
|
|
1234
|
-
return { hints, dispose: () => {
|
|
1235
|
-
} };
|
|
1236
|
-
}
|
|
1237
|
-
_convertHintKind(kind) {
|
|
1238
|
-
switch (kind) {
|
|
1239
|
-
case "Parameter":
|
|
1240
|
-
return monaco_editor_core_exports.languages.InlayHintKind.Parameter;
|
|
1241
|
-
case "Type":
|
|
1242
|
-
return monaco_editor_core_exports.languages.InlayHintKind.Type;
|
|
1243
|
-
default:
|
|
1244
|
-
return monaco_editor_core_exports.languages.InlayHintKind.Type;
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
};
|
|
1248
|
-
|
|
1249
|
-
// src/language/typescript/tsMode.ts
|
|
1250
|
-
var javaScriptWorker;
|
|
1251
|
-
var typeScriptWorker;
|
|
1252
|
-
function setupTypeScript(defaults) {
|
|
1253
|
-
typeScriptWorker = setupMode(defaults, "typescript");
|
|
1254
|
-
}
|
|
1255
|
-
function setupJavaScript(defaults) {
|
|
1256
|
-
javaScriptWorker = setupMode(defaults, "javascript");
|
|
1257
|
-
}
|
|
1258
|
-
function getJavaScriptWorker() {
|
|
1259
|
-
return new Promise((resolve, reject) => {
|
|
1260
|
-
if (!javaScriptWorker) {
|
|
1261
|
-
return reject("JavaScript not registered!");
|
|
1262
|
-
}
|
|
1263
|
-
resolve(javaScriptWorker);
|
|
1264
|
-
});
|
|
1265
|
-
}
|
|
1266
|
-
function getTypeScriptWorker() {
|
|
1267
|
-
return new Promise((resolve, reject) => {
|
|
1268
|
-
if (!typeScriptWorker) {
|
|
1269
|
-
return reject("TypeScript not registered!");
|
|
1270
|
-
}
|
|
1271
|
-
resolve(typeScriptWorker);
|
|
1272
|
-
});
|
|
1273
|
-
}
|
|
1274
|
-
function setupMode(defaults, modeId) {
|
|
1275
|
-
const providers = [];
|
|
1276
|
-
const client = new WorkerManager(modeId, defaults);
|
|
1277
|
-
const worker = (...uris) => {
|
|
1278
|
-
return client.getLanguageServiceWorker(...uris);
|
|
1279
|
-
};
|
|
1280
|
-
const libFiles = new LibFiles(worker);
|
|
1281
|
-
function registerProviders() {
|
|
1282
|
-
const { modeConfiguration } = defaults;
|
|
1283
|
-
disposeAll(providers);
|
|
1284
|
-
if (modeConfiguration.completionItems) {
|
|
1285
|
-
providers.push(
|
|
1286
|
-
monaco_editor_core_exports.languages.registerCompletionItemProvider(
|
|
1287
|
-
modeId,
|
|
1288
|
-
new SuggestAdapter(worker)
|
|
1289
|
-
)
|
|
1290
|
-
);
|
|
1291
|
-
}
|
|
1292
|
-
if (modeConfiguration.signatureHelp) {
|
|
1293
|
-
providers.push(
|
|
1294
|
-
monaco_editor_core_exports.languages.registerSignatureHelpProvider(
|
|
1295
|
-
modeId,
|
|
1296
|
-
new SignatureHelpAdapter(worker)
|
|
1297
|
-
)
|
|
1298
|
-
);
|
|
1299
|
-
}
|
|
1300
|
-
if (modeConfiguration.hovers) {
|
|
1301
|
-
providers.push(
|
|
1302
|
-
monaco_editor_core_exports.languages.registerHoverProvider(modeId, new QuickInfoAdapter(worker))
|
|
1303
|
-
);
|
|
1304
|
-
}
|
|
1305
|
-
if (modeConfiguration.documentHighlights) {
|
|
1306
|
-
providers.push(
|
|
1307
|
-
monaco_editor_core_exports.languages.registerDocumentHighlightProvider(
|
|
1308
|
-
modeId,
|
|
1309
|
-
new DocumentHighlightAdapter(worker)
|
|
1310
|
-
)
|
|
1311
|
-
);
|
|
1312
|
-
}
|
|
1313
|
-
if (modeConfiguration.definitions) {
|
|
1314
|
-
providers.push(
|
|
1315
|
-
monaco_editor_core_exports.languages.registerDefinitionProvider(
|
|
1316
|
-
modeId,
|
|
1317
|
-
new DefinitionAdapter(libFiles, worker)
|
|
1318
|
-
)
|
|
1319
|
-
);
|
|
1320
|
-
}
|
|
1321
|
-
if (modeConfiguration.references) {
|
|
1322
|
-
providers.push(
|
|
1323
|
-
monaco_editor_core_exports.languages.registerReferenceProvider(
|
|
1324
|
-
modeId,
|
|
1325
|
-
new ReferenceAdapter(libFiles, worker)
|
|
1326
|
-
)
|
|
1327
|
-
);
|
|
1328
|
-
}
|
|
1329
|
-
if (modeConfiguration.documentSymbols) {
|
|
1330
|
-
providers.push(
|
|
1331
|
-
monaco_editor_core_exports.languages.registerDocumentSymbolProvider(
|
|
1332
|
-
modeId,
|
|
1333
|
-
new OutlineAdapter(worker)
|
|
1334
|
-
)
|
|
1335
|
-
);
|
|
1336
|
-
}
|
|
1337
|
-
if (modeConfiguration.rename) {
|
|
1338
|
-
providers.push(
|
|
1339
|
-
monaco_editor_core_exports.languages.registerRenameProvider(
|
|
1340
|
-
modeId,
|
|
1341
|
-
new RenameAdapter(libFiles, worker)
|
|
1342
|
-
)
|
|
1343
|
-
);
|
|
1344
|
-
}
|
|
1345
|
-
if (modeConfiguration.documentRangeFormattingEdits) {
|
|
1346
|
-
providers.push(
|
|
1347
|
-
monaco_editor_core_exports.languages.registerDocumentRangeFormattingEditProvider(
|
|
1348
|
-
modeId,
|
|
1349
|
-
new FormatAdapter(worker)
|
|
1350
|
-
)
|
|
1351
|
-
);
|
|
1352
|
-
}
|
|
1353
|
-
if (modeConfiguration.onTypeFormattingEdits) {
|
|
1354
|
-
providers.push(
|
|
1355
|
-
monaco_editor_core_exports.languages.registerOnTypeFormattingEditProvider(
|
|
1356
|
-
modeId,
|
|
1357
|
-
new FormatOnTypeAdapter(worker)
|
|
1358
|
-
)
|
|
1359
|
-
);
|
|
1360
|
-
}
|
|
1361
|
-
if (modeConfiguration.codeActions) {
|
|
1362
|
-
providers.push(
|
|
1363
|
-
monaco_editor_core_exports.languages.registerCodeActionProvider(modeId, new CodeActionAdaptor(worker))
|
|
1364
|
-
);
|
|
1365
|
-
}
|
|
1366
|
-
if (modeConfiguration.inlayHints) {
|
|
1367
|
-
providers.push(
|
|
1368
|
-
monaco_editor_core_exports.languages.registerInlayHintsProvider(modeId, new InlayHintsAdapter(worker))
|
|
1369
|
-
);
|
|
1370
|
-
}
|
|
1371
|
-
if (modeConfiguration.diagnostics) {
|
|
1372
|
-
providers.push(new DiagnosticsAdapter(libFiles, defaults, modeId, worker));
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
registerProviders();
|
|
1376
|
-
return worker;
|
|
1377
|
-
}
|
|
1378
|
-
function disposeAll(disposables) {
|
|
1379
|
-
while (disposables.length) {
|
|
1380
|
-
disposables.pop().dispose();
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
export { Adapter, CodeActionAdaptor, DefinitionAdapter, DiagnosticsAdapter, DocumentHighlightAdapter, FormatAdapter, FormatHelper, FormatOnTypeAdapter, InlayHintsAdapter, Kind, LibFiles, OutlineAdapter, QuickInfoAdapter, ReferenceAdapter, RenameAdapter, SignatureHelpAdapter, SuggestAdapter, WorkerManager, flattenDiagnosticMessageText, getJavaScriptWorker, getTypeScriptWorker, setupJavaScript, setupTypeScript };
|