@coderline/alphatab-language-server 1.9.0-alpha.1883 → 1.9.0-alpha.1891
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/{server.mjs → common.mjs} +4 -234
- package/dist/common.mjs.map +1 -0
- package/dist/{server.d.ts → index.browser.d.ts} +0 -5
- package/dist/index.browser.min.mjs +13 -0
- package/dist/index.browser.mjs +15 -0
- package/dist/index.node.d.ts +52 -0
- package/dist/index.node.min.mjs +13 -0
- package/dist/index.node.mjs +20 -0
- package/dist/index.node.mjs.map +1 -0
- package/dist/server/browser.d.ts +12 -0
- package/dist/server/browser.min.mjs +13 -0
- package/dist/server/browser.mjs +27 -0
- package/dist/server/browser.mjs.map +1 -0
- package/dist/server/node.d.ts +6 -0
- package/dist/server/node.min.mjs +13 -0
- package/dist/server/node.mjs +25 -0
- package/dist/server/node.mjs.map +1 -0
- package/dist/src.mjs +230 -0
- package/dist/src.mjs.map +1 -0
- package/package.json +26 -6
- package/dist/server.min.mjs +0 -13
- package/dist/server.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab Language Server v1.9.0-alpha.
|
|
2
|
+
* alphaTab Language Server v1.9.0-alpha.1891 (develop, build 1891)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -15,8 +15,6 @@ import { TextDocuments } from "vscode-languageserver";
|
|
|
15
15
|
import { DocumentDiagnosticReportKind, PositionEncodingKind, TextDocumentSyncKind } from "vscode-languageserver-protocol";
|
|
16
16
|
import { TextDocument } from "vscode-languageserver-textdocument";
|
|
17
17
|
import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat, ParameterInformation, SignatureInformation, TextEdit, uinteger } from "vscode-languageserver-types";
|
|
18
|
-
import { BrowserMessageReader, BrowserMessageWriter, createConnection } from "vscode-languageserver/browser";
|
|
19
|
-
import { ProposedFeatures, createConnection as createConnection$1 } from "vscode-languageserver/node";
|
|
20
18
|
//#region ../alphatex/src/metadata/bar/ac.ts
|
|
21
19
|
var ac = {
|
|
22
20
|
tag: "\\ac",
|
|
@@ -5995,7 +5993,7 @@ function signatureDefinitionToHelp(label, docs, signature) {
|
|
|
5995
5993
|
return signatureDocs;
|
|
5996
5994
|
}
|
|
5997
5995
|
//#endregion
|
|
5998
|
-
//#region src/server/
|
|
5996
|
+
//#region src/server/common.ts
|
|
5999
5997
|
function startLanguageServer(serverConnection) {
|
|
6000
5998
|
const documents = new TextDocuments(TextDocument);
|
|
6001
5999
|
serverConnection.onInitialize((params) => {
|
|
@@ -6022,235 +6020,7 @@ function startLanguageServer(serverConnection) {
|
|
|
6022
6020
|
documents.listen(serverConnection);
|
|
6023
6021
|
serverConnection.listen();
|
|
6024
6022
|
}
|
|
6025
|
-
/**
|
|
6026
|
-
* Starts a new language server communicating via WebWorker.
|
|
6027
|
-
* @param readerPort The port used to reading incoming language server messages
|
|
6028
|
-
* @param writerPort The port used to writer outgoing language server messages
|
|
6029
|
-
*/
|
|
6030
|
-
function startWebWorkerLanguageServer(readerPort, writerPort) {
|
|
6031
|
-
startLanguageServer(createConnection(new BrowserMessageReader(readerPort), new BrowserMessageWriter(writerPort)));
|
|
6032
|
-
}
|
|
6033
|
-
/**
|
|
6034
|
-
* Starts a new language server communicating from a Node.js process with a parent Node.js.
|
|
6035
|
-
*/
|
|
6036
|
-
function startNodeLanguageServer() {
|
|
6037
|
-
startLanguageServer(createConnection$1(ProposedFeatures.all));
|
|
6038
|
-
}
|
|
6039
|
-
var alphatex_tmLanguage_default = {
|
|
6040
|
-
$schema: "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
6041
|
-
name: "alphaTex",
|
|
6042
|
-
scopeName: "source.alphatex",
|
|
6043
|
-
uuid: "1ebe68ca-6558-428e-a6af-90831f41e88e",
|
|
6044
|
-
patterns: [{ "include": "#statements" }],
|
|
6045
|
-
repository: {
|
|
6046
|
-
"statements": { "patterns": [
|
|
6047
|
-
{ "include": "#string" },
|
|
6048
|
-
{ "include": "#comment" },
|
|
6049
|
-
{ "include": "#metadata" },
|
|
6050
|
-
{ "include": "#literal" },
|
|
6051
|
-
{ "include": "#expression" },
|
|
6052
|
-
{ "include": "#punctuation-pipe" },
|
|
6053
|
-
{ "include": "#punctuation-dot" },
|
|
6054
|
-
{ "include": "#punctuation-at" }
|
|
6055
|
-
] },
|
|
6056
|
-
"string": { "patterns": [{ "include": "#qstring-single" }, { "include": "#qstring-double" }] },
|
|
6057
|
-
"qstring-single": {
|
|
6058
|
-
"name": "string.quoted.single.alphatex",
|
|
6059
|
-
"begin": "'",
|
|
6060
|
-
"beginCaptures": { "0": { "name": "punctuation.definition.string.begin.alphatex" } },
|
|
6061
|
-
"end": "(\\')|((?:[^\\\\\\n])$)",
|
|
6062
|
-
"endCaptures": {
|
|
6063
|
-
"1": { "name": "punctuation.definition.string.end.alphatex" },
|
|
6064
|
-
"2": { "name": "invalid.illegal.newline.alphatex" }
|
|
6065
|
-
},
|
|
6066
|
-
"patterns": [{ "include": "#string-character-escape" }]
|
|
6067
|
-
},
|
|
6068
|
-
"qstring-double": {
|
|
6069
|
-
"name": "string.quoted.double.alphatex",
|
|
6070
|
-
"begin": "\"",
|
|
6071
|
-
"beginCaptures": { "0": { "name": "punctuation.definition.string.begin.alphatex" } },
|
|
6072
|
-
"end": "(\")|((?:[^\\\\\\n])$)",
|
|
6073
|
-
"endCaptures": {
|
|
6074
|
-
"1": { "name": "punctuation.definition.string.end.alphatex" },
|
|
6075
|
-
"2": { "name": "invalid.illegal.newline.alphatex" }
|
|
6076
|
-
},
|
|
6077
|
-
"patterns": [{ "include": "#string-character-escape" }]
|
|
6078
|
-
},
|
|
6079
|
-
"string-character-escape": {
|
|
6080
|
-
"name": "constant.character.escape.alphatex",
|
|
6081
|
-
"match": "\\\\(u[0-9A-Fa-f]{4}|.|$)"
|
|
6082
|
-
},
|
|
6083
|
-
"comment": { "patterns": [{
|
|
6084
|
-
"name": "comment.block.alphatex",
|
|
6085
|
-
"begin": "/\\*",
|
|
6086
|
-
"beginCaptures": { "0": { "name": "punctuation.definition.comment.alphatex" } },
|
|
6087
|
-
"end": "\\*/",
|
|
6088
|
-
"endCaptures": { "0": { "name": "punctuation.definition.comment.alphatex" } }
|
|
6089
|
-
}, {
|
|
6090
|
-
"begin": "(^[ \\t]+)?(?=//)",
|
|
6091
|
-
"beginCaptures": { "1": { "name": "punctuation.whitespace.comment.leading.alphatex" } },
|
|
6092
|
-
"end": "(?=$)",
|
|
6093
|
-
"patterns": [{
|
|
6094
|
-
"name": "comment.line.double-slash.alphatex",
|
|
6095
|
-
"begin": "//",
|
|
6096
|
-
"beginCaptures": { "0": { "name": "punctuation.definition.comment.alphatex" } },
|
|
6097
|
-
"end": "(?=$)"
|
|
6098
|
-
}]
|
|
6099
|
-
}] },
|
|
6100
|
-
"literal": { "patterns": [{ "include": "#numeric-literal" }] },
|
|
6101
|
-
"numeric-literal": {
|
|
6102
|
-
"name": "constant.numeric.decimal.alphatex",
|
|
6103
|
-
"match": "[0-9]+",
|
|
6104
|
-
"captures": { "0": { "name": "constant.numeric.decimal.alphatex" } }
|
|
6105
|
-
},
|
|
6106
|
-
"expression": { "patterns": [
|
|
6107
|
-
{ "include": "#string" },
|
|
6108
|
-
{ "include": "#comment" },
|
|
6109
|
-
{ "include": "#literal" },
|
|
6110
|
-
{ "include": "#identifier" },
|
|
6111
|
-
{ "include": "#valueList" },
|
|
6112
|
-
{ "include": "#properties" },
|
|
6113
|
-
{ "include": "#punctuation" }
|
|
6114
|
-
] },
|
|
6115
|
-
"valueList": {
|
|
6116
|
-
"begin": "\\(",
|
|
6117
|
-
"beginCaptures": { "0": { "name": "punctuation.definition.value-list.begin.js" } },
|
|
6118
|
-
"end": "\\)",
|
|
6119
|
-
"endCaptures": { "0": { "name": "punctuation.definition.value-list.end.js" } },
|
|
6120
|
-
"patterns": [
|
|
6121
|
-
{ "include": "#string" },
|
|
6122
|
-
{ "include": "#comment" },
|
|
6123
|
-
{ "include": "#literal" },
|
|
6124
|
-
{ "include": "#identifier" }
|
|
6125
|
-
]
|
|
6126
|
-
},
|
|
6127
|
-
"properties": {
|
|
6128
|
-
"begin": "\\{",
|
|
6129
|
-
"beginCaptures": { "0": { "name": "punctuation.definition.properties.begin.js" } },
|
|
6130
|
-
"end": "\\}",
|
|
6131
|
-
"endCaptures": { "0": { "name": "punctuation.definition.properties.end.js" } },
|
|
6132
|
-
"patterns": [
|
|
6133
|
-
{ "include": "#string" },
|
|
6134
|
-
{ "include": "#comment" },
|
|
6135
|
-
{ "include": "#literal" },
|
|
6136
|
-
{ "include": "#identifier" },
|
|
6137
|
-
{ "include": "#valueList" }
|
|
6138
|
-
]
|
|
6139
|
-
},
|
|
6140
|
-
"metadata": {
|
|
6141
|
-
"name": "keyword.metadata.alphatex",
|
|
6142
|
-
"match": "\\\\{1,2}[^\\s]+",
|
|
6143
|
-
"captures": { "0": { "name": "keyword.metadata.alphatex" } }
|
|
6144
|
-
},
|
|
6145
|
-
"identifier": {
|
|
6146
|
-
"name": "variable.identifier.alphatex",
|
|
6147
|
-
"match": "[^@/\"'-\\.:\\(\\)\\{\\}\\|\\*\\\\\\s][^@/\"'\\.:\\(\\)\\{\\}\\|\\*\\\\\\s]+",
|
|
6148
|
-
"captures": { "0": { "name": "variable.identifier.alphatex" } }
|
|
6149
|
-
},
|
|
6150
|
-
"punctuation": { "patterns": [
|
|
6151
|
-
{ "include": "#punctuation-dot" },
|
|
6152
|
-
{ "include": "#punctuation-pipe" },
|
|
6153
|
-
{ "include": "#punctuation-asterisk" },
|
|
6154
|
-
{ "include": "#punctuation-at" }
|
|
6155
|
-
] },
|
|
6156
|
-
"punctuation-pipe": {
|
|
6157
|
-
"name": "punctuation.bar.alphatex",
|
|
6158
|
-
"match": "\\|"
|
|
6159
|
-
},
|
|
6160
|
-
"punctuation-dot": {
|
|
6161
|
-
"name": "punctuation.dot.alphatex",
|
|
6162
|
-
"match": "\\."
|
|
6163
|
-
},
|
|
6164
|
-
"punctuation-asterisk": {
|
|
6165
|
-
"name": "punctuation.asterisk.alphatex",
|
|
6166
|
-
"match": "\\*"
|
|
6167
|
-
},
|
|
6168
|
-
"punctuation-at": {
|
|
6169
|
-
"name": "punctuation.at.alphatex",
|
|
6170
|
-
"match": "@"
|
|
6171
|
-
}
|
|
6172
|
-
}
|
|
6173
|
-
};
|
|
6174
|
-
var language_configuration_default = {
|
|
6175
|
-
comments: {
|
|
6176
|
-
"lineComment": {
|
|
6177
|
-
"comment": "//",
|
|
6178
|
-
"noIndent": false
|
|
6179
|
-
},
|
|
6180
|
-
"blockComment": ["/*", "*/"]
|
|
6181
|
-
},
|
|
6182
|
-
brackets: [
|
|
6183
|
-
["{", "}"],
|
|
6184
|
-
["[", "]"],
|
|
6185
|
-
["(", ")"]
|
|
6186
|
-
],
|
|
6187
|
-
autoClosingPairs: [
|
|
6188
|
-
{
|
|
6189
|
-
"open": "{",
|
|
6190
|
-
"close": "}"
|
|
6191
|
-
},
|
|
6192
|
-
{
|
|
6193
|
-
"open": "[",
|
|
6194
|
-
"close": "]"
|
|
6195
|
-
},
|
|
6196
|
-
{
|
|
6197
|
-
"open": "(",
|
|
6198
|
-
"close": ")"
|
|
6199
|
-
},
|
|
6200
|
-
{
|
|
6201
|
-
"open": "\"",
|
|
6202
|
-
"close": "\""
|
|
6203
|
-
},
|
|
6204
|
-
{
|
|
6205
|
-
"open": "'",
|
|
6206
|
-
"close": "'"
|
|
6207
|
-
}
|
|
6208
|
-
],
|
|
6209
|
-
surroundingPairs: [
|
|
6210
|
-
{
|
|
6211
|
-
"open": "{",
|
|
6212
|
-
"close": "}"
|
|
6213
|
-
},
|
|
6214
|
-
{
|
|
6215
|
-
"open": "[",
|
|
6216
|
-
"close": "]"
|
|
6217
|
-
},
|
|
6218
|
-
{
|
|
6219
|
-
"open": "(",
|
|
6220
|
-
"close": ")"
|
|
6221
|
-
},
|
|
6222
|
-
{
|
|
6223
|
-
"open": "\"",
|
|
6224
|
-
"close": "\""
|
|
6225
|
-
},
|
|
6226
|
-
{
|
|
6227
|
-
"open": "'",
|
|
6228
|
-
"close": "'"
|
|
6229
|
-
}
|
|
6230
|
-
]
|
|
6231
|
-
};
|
|
6232
|
-
//#endregion
|
|
6233
|
-
//#region src/index.ts
|
|
6234
|
-
var documentation = {
|
|
6235
|
-
structuralMetaData,
|
|
6236
|
-
scoreMetaData,
|
|
6237
|
-
staffMetaData,
|
|
6238
|
-
barMetaData,
|
|
6239
|
-
durationChangeProperties,
|
|
6240
|
-
beatProperties,
|
|
6241
|
-
noteProperties
|
|
6242
|
-
};
|
|
6243
|
-
/**
|
|
6244
|
-
* The TextMate grammar definition as JSON encoded.
|
|
6245
|
-
* Write this to a local json (e.g. alphatex.tmLanguage.json ) or pass it to any supported parser for further use.
|
|
6246
|
-
*/
|
|
6247
|
-
var textMateGrammar = alphatex_tmLanguage_default;
|
|
6248
|
-
/**
|
|
6249
|
-
* The contents of a language-configuration.json to use in editors like VSCode.
|
|
6250
|
-
*/
|
|
6251
|
-
var languageConfiguration = language_configuration_default;
|
|
6252
|
-
if (import.meta.main) startNodeLanguageServer();
|
|
6253
6023
|
//#endregion
|
|
6254
|
-
export {
|
|
6024
|
+
export { noteProperties as a, structuralMetaData as c, durationChangeProperties as i, barMetaData as n, scoreMetaData as o, beatProperties as r, staffMetaData as s, startLanguageServer as t };
|
|
6255
6025
|
|
|
6256
|
-
//# sourceMappingURL=
|
|
6026
|
+
//# sourceMappingURL=common.mjs.map
|