caos-vscode-client 0.0.4 → 0.0.5

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.
@@ -105740,10 +105740,10 @@ function readVarint32SlowPath($this) {
105740
105740
 
105741
105741
  /***/ },
105742
105742
 
105743
- /***/ "../caos-util/lib/constants.js"
105744
- /*!*************************************!*\
105745
- !*** ../caos-util/lib/constants.js ***!
105746
- \*************************************/
105743
+ /***/ "../caos/dist/constants.js"
105744
+ /*!*********************************!*\
105745
+ !*** ../caos/dist/constants.js ***!
105746
+ \*********************************/
105747
105747
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
105748
105748
 
105749
105749
  "use strict";
@@ -105798,7 +105798,7 @@ __webpack_require__.r(__webpack_exports__);
105798
105798
  /* harmony export */ UNKNOWN_TYPE_ID: () => (/* binding */ UNKNOWN_TYPE_ID),
105799
105799
  /* harmony export */ VARIABLE_TYPE_ID: () => (/* binding */ VARIABLE_TYPE_ID)
105800
105800
  /* harmony export */ });
105801
- /* harmony import */ var _token_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./token-utils.js */ "../caos-util/lib/token-utils.js");
105801
+ /* harmony import */ var _token_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./token-utils.js */ "../caos/dist/token-utils.js");
105802
105802
  // noinspection JSUnusedGlobalSymbols,SpellCheckingInspection
105803
105803
 
105804
105804
  const INT_TYPE_ID = 1;
@@ -105853,10 +105853,10 @@ const CAOS2_COMMENT_TYPE = (0,_token_utils_js__WEBPACK_IMPORTED_MODULE_0__.tok)(
105853
105853
 
105854
105854
  /***/ },
105855
105855
 
105856
- /***/ "../caos-util/lib/document-symbols-provider.js"
105857
- /*!*****************************************************!*\
105858
- !*** ../caos-util/lib/document-symbols-provider.js ***!
105859
- \*****************************************************/
105856
+ /***/ "../caos/dist/document-symbols.js"
105857
+ /*!****************************************!*\
105858
+ !*** ../caos/dist/document-symbols.js ***!
105859
+ \****************************************/
105860
105860
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
105861
105861
 
105862
105862
  "use strict";
@@ -105868,7 +105868,7 @@ __webpack_require__.r(__webpack_exports__);
105868
105868
  /* harmony import */ var _creatures_lsp_caos_kt_caos_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-core */ "../caos-kt/dist/caos-core.mjs");
105869
105869
  /* harmony import */ var _creatures_lsp_caos_kt_caos_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-parser */ "../caos-kt/dist/caos-parser.mjs");
105870
105870
  /* harmony import */ var vscode_languageserver_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vscode-languageserver-types */ "../../node_modules/vscode-languageserver-types/lib/esm/main.js");
105871
- /* harmony import */ var _subroutines_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./subroutines.js */ "../caos-util/lib/subroutines.js");
105871
+ /* harmony import */ var _subroutines_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./subroutines.js */ "../caos/dist/subroutines.js");
105872
105872
  /* harmony import */ var _creatures_lsp_extension_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @creatures-lsp/extension-util */ "../extension-util/dist/position-utils.js");
105873
105873
  // noinspection JSUnusedGlobalSymbols
105874
105874
 
@@ -105991,10 +105991,10 @@ function getEventScriptName(script) {
105991
105991
 
105992
105992
  /***/ },
105993
105993
 
105994
- /***/ "../caos-util/lib/is-similar-variant.js"
105995
- /*!**********************************************!*\
105996
- !*** ../caos-util/lib/is-similar-variant.js ***!
105997
- \**********************************************/
105994
+ /***/ "../caos/dist/is-similar-variant.js"
105995
+ /*!******************************************!*\
105996
+ !*** ../caos/dist/is-similar-variant.js ***!
105997
+ \******************************************/
105998
105998
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
105999
105999
 
106000
106000
  "use strict";
@@ -106029,10 +106029,10 @@ function isC3DSVariant(variant) {
106029
106029
 
106030
106030
  /***/ },
106031
106031
 
106032
- /***/ "../caos-util/lib/is-util.js"
106033
- /*!***********************************!*\
106034
- !*** ../caos-util/lib/is-util.js ***!
106035
- \***********************************/
106032
+ /***/ "../caos/dist/is-util.js"
106033
+ /*!*******************************!*\
106034
+ !*** ../caos/dist/is-util.js ***!
106035
+ \*******************************/
106036
106036
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
106037
106037
 
106038
106038
  "use strict";
@@ -106045,7 +106045,7 @@ __webpack_require__.r(__webpack_exports__);
106045
106045
  /* harmony export */ isSimilarVariant: () => (/* reexport safe */ _is_similar_variant_js__WEBPACK_IMPORTED_MODULE_1__.isSimilarVariant)
106046
106046
  /* harmony export */ });
106047
106047
  /* harmony import */ var _creatures_lsp_caos_kt_caos_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-core */ "../caos-kt/dist/caos-core.mjs");
106048
- /* harmony import */ var _is_similar_variant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./is-similar-variant.js */ "../caos-util/lib/is-similar-variant.js");
106048
+ /* harmony import */ var _is_similar_variant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./is-similar-variant.js */ "../caos/dist/is-similar-variant.js");
106049
106049
 
106050
106050
  /**
106051
106051
  * Checks if variable is of a given type
@@ -106107,10 +106107,10 @@ var Is;
106107
106107
 
106108
106108
  /***/ },
106109
106109
 
106110
- /***/ "../caos-util/lib/subroutines.js"
106111
- /*!***************************************!*\
106112
- !*** ../caos-util/lib/subroutines.js ***!
106113
- \***************************************/
106110
+ /***/ "../caos/dist/subroutines.js"
106111
+ /*!***********************************!*\
106112
+ !*** ../caos/dist/subroutines.js ***!
106113
+ \***********************************/
106114
106114
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
106115
106115
 
106116
106116
  "use strict";
@@ -106120,9 +106120,9 @@ __webpack_require__.r(__webpack_exports__);
106120
106120
  /* harmony export */ getSubroutines: () => (/* binding */ getSubroutines),
106121
106121
  /* harmony export */ hasSubroutine: () => (/* binding */ hasSubroutine)
106122
106122
  /* harmony export */ });
106123
- /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants.js */ "../caos-util/lib/constants.js");
106123
+ /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants.js */ "../caos/dist/constants.js");
106124
106124
  /* harmony import */ var _creatures_lsp_extension_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/extension-util */ "../extension-util/dist/position-utils.js");
106125
- /* harmony import */ var _token_utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./token-utils.js */ "../caos-util/lib/token-utils.js");
106125
+ /* harmony import */ var _token_utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./token-utils.js */ "../caos/dist/token-utils.js");
106126
106126
  /* eslint-disable eqeqeq */
106127
106127
  // noinspection JSUnusedGlobalSymbols
106128
106128
 
@@ -106183,10 +106183,10 @@ function getSubroutines(items, afterToken = SUBR) {
106183
106183
 
106184
106184
  /***/ },
106185
106185
 
106186
- /***/ "../caos-util/lib/token-utils.js"
106187
- /*!***************************************!*\
106188
- !*** ../caos-util/lib/token-utils.js ***!
106189
- \***************************************/
106186
+ /***/ "../caos/dist/token-utils.js"
106187
+ /*!***********************************!*\
106188
+ !*** ../caos/dist/token-utils.js ***!
106189
+ \***********************************/
106190
106190
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
106191
106191
 
106192
106192
  "use strict";
@@ -106195,7 +106195,7 @@ __webpack_require__.r(__webpack_exports__);
106195
106195
  /* harmony export */ singleTokenOrNull: () => (/* binding */ singleTokenOrNull),
106196
106196
  /* harmony export */ tok: () => (/* binding */ tok)
106197
106197
  /* harmony export */ });
106198
- /* harmony import */ var _is_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./is-util.js */ "../caos-util/lib/is-util.js");
106198
+ /* harmony import */ var _is_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./is-util.js */ "../caos/dist/is-util.js");
106199
106199
 
106200
106200
  function tok(token) {
106201
106201
  if (typeof token === 'number') {
@@ -106227,52 +106227,6 @@ const singleTokenOrNull = (tokens) => {
106227
106227
  };
106228
106228
 
106229
106229
 
106230
- /***/ },
106231
-
106232
- /***/ "../catalogue/dist/catalogue.range.js"
106233
- /*!********************************************!*\
106234
- !*** ../catalogue/dist/catalogue.range.js ***!
106235
- \********************************************/
106236
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
106237
-
106238
- "use strict";
106239
- __webpack_require__.r(__webpack_exports__);
106240
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
106241
- /* harmony export */ getCatalogueRange: () => (/* binding */ getCatalogueRange)
106242
- /* harmony export */ });
106243
- function getCatalogueRange(entry) {
106244
- var _a, _b, _c, _d, _e, _f, _g, _h;
106245
- const start = entry.keywordParserItem.textRange.start;
106246
- const entries = ((_a = entry.valueParserItems) !== null && _a !== void 0 ? _a : [])
106247
- .concat(...((_b = entry.looseItems) !== null && _b !== void 0 ? _b : []))
106248
- .concat(...((_c = entry.errorHeaderItems) !== null && _c !== void 0 ? _c : []))
106249
- .concat((_f = (_e = (_d = entry.arrayCountParserItem) !== null && _d !== void 0 ? _d : entry.catalogueNameParserItem) !== null && _e !== void 0 ? _e : entry.overrideKeyword) !== null && _f !== void 0 ? _f : entry.keywordParserItem);
106250
- entries.sort(sortParserItemsByStart);
106251
- let end = (_h = (_g = entries.pop()) === null || _g === void 0 ? void 0 : _g.textRange) === null || _h === void 0 ? void 0 : _h.end;
106252
- if (end == null) {
106253
- return entry.keywordParserItem.textRange;
106254
- }
106255
- else {
106256
- return {
106257
- start: start,
106258
- end: end
106259
- };
106260
- }
106261
- }
106262
- function sortParserItemsByStart(a, b) {
106263
- const first = sortValue(a.textRange);
106264
- const second = sortValue(b.textRange);
106265
- const difference = first - second;
106266
- if (difference === 0) {
106267
- return 0;
106268
- }
106269
- return difference > 0 ? 1 : -1;
106270
- }
106271
- function sortValue(range) {
106272
- return (range.start.line << 16) | range.start.character;
106273
- }
106274
-
106275
-
106276
106230
  /***/ },
106277
106231
 
106278
106232
  /***/ "../catalogue/dist/is.js"
@@ -106402,6 +106356,52 @@ var IsCatalogue;
106402
106356
  })(IsCatalogue || (IsCatalogue = {}));
106403
106357
 
106404
106358
 
106359
+ /***/ },
106360
+
106361
+ /***/ "../catalogue/dist/range.js"
106362
+ /*!**********************************!*\
106363
+ !*** ../catalogue/dist/range.js ***!
106364
+ \**********************************/
106365
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
106366
+
106367
+ "use strict";
106368
+ __webpack_require__.r(__webpack_exports__);
106369
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
106370
+ /* harmony export */ getCatalogueRange: () => (/* binding */ getCatalogueRange)
106371
+ /* harmony export */ });
106372
+ function getCatalogueRange(entry) {
106373
+ var _a, _b, _c, _d, _e, _f, _g, _h;
106374
+ const start = entry.keywordParserItem.textRange.start;
106375
+ const entries = ((_a = entry.valueParserItems) !== null && _a !== void 0 ? _a : [])
106376
+ .concat(...((_b = entry.looseItems) !== null && _b !== void 0 ? _b : []))
106377
+ .concat(...((_c = entry.errorHeaderItems) !== null && _c !== void 0 ? _c : []))
106378
+ .concat((_f = (_e = (_d = entry.arrayCountParserItem) !== null && _d !== void 0 ? _d : entry.catalogueNameParserItem) !== null && _e !== void 0 ? _e : entry.overrideKeyword) !== null && _f !== void 0 ? _f : entry.keywordParserItem);
106379
+ entries.sort(sortParserItemsByStart);
106380
+ let end = (_h = (_g = entries.pop()) === null || _g === void 0 ? void 0 : _g.textRange) === null || _h === void 0 ? void 0 : _h.end;
106381
+ if (end == null) {
106382
+ return entry.keywordParserItem.textRange;
106383
+ }
106384
+ else {
106385
+ return {
106386
+ start: start,
106387
+ end: end
106388
+ };
106389
+ }
106390
+ }
106391
+ function sortParserItemsByStart(a, b) {
106392
+ const first = sortValue(a.textRange);
106393
+ const second = sortValue(b.textRange);
106394
+ const difference = first - second;
106395
+ if (difference === 0) {
106396
+ return 0;
106397
+ }
106398
+ return difference > 0 ? 1 : -1;
106399
+ }
106400
+ function sortValue(range) {
106401
+ return (range.start.line << 16) | range.start.character;
106402
+ }
106403
+
106404
+
106405
106405
  /***/ },
106406
106406
 
106407
106407
  /***/ "../catalogue/dist/semantic-highlighter.js"
@@ -107381,7 +107381,7 @@ __webpack_require__.r(__webpack_exports__);
107381
107381
  /* harmony export */ });
107382
107382
  /* harmony import */ var vscode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vscode */ "vscode");
107383
107383
  /* harmony import */ var vscode__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vscode__WEBPACK_IMPORTED_MODULE_0__);
107384
- /* harmony import */ var _creatures_lsp_caos_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/caos-util */ "../caos-util/lib/document-symbols-provider.js");
107384
+ /* harmony import */ var _creatures_lsp_caos_document_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/caos/document-symbols */ "../caos/dist/document-symbols.js");
107385
107385
  /* harmony import */ var _settings_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./settings.js */ "./src/settings.ts");
107386
107386
  /* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helpers.js */ "./src/helpers.ts");
107387
107387
  /* harmony import */ var _log_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log.js */ "./src/log.ts");
@@ -107415,7 +107415,7 @@ class CaosSymbolProvider {
107415
107415
  const text = document.getText();
107416
107416
  let symbolsRaw;
107417
107417
  try {
107418
- symbolsRaw = (0,_creatures_lsp_caos_util__WEBPACK_IMPORTED_MODULE_1__.getCaosScriptDocumentSymbols)(variant, text);
107418
+ symbolsRaw = (0,_creatures_lsp_caos_document_symbols__WEBPACK_IMPORTED_MODULE_1__.getCaosScriptDocumentSymbols)(variant, text);
107419
107419
  }
107420
107420
  catch (e) {
107421
107421
  const error = e instanceof Error ? (e.message + "\n" + e.stack) : e;
@@ -107522,9 +107522,9 @@ __webpack_require__.r(__webpack_exports__);
107522
107522
  /* harmony export */ });
107523
107523
  /* harmony import */ var vscode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vscode */ "vscode");
107524
107524
  /* harmony import */ var vscode__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vscode__WEBPACK_IMPORTED_MODULE_0__);
107525
- /* harmony import */ var _creatures_lsp_caos_kt_catalogue_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/caos-kt/catalogue-core */ "../caos-kt/dist/catalogue-core.mjs");
107525
+ /* harmony import */ var _creatures_lsp_catalogue_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/catalogue/core */ "../caos-kt/dist/catalogue-core.mjs");
107526
107526
  /* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helpers.js */ "./src/helpers.ts");
107527
- /* harmony import */ var _creatures_lsp_catalogue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @creatures-lsp/catalogue */ "../catalogue/dist/catalogue.range.js");
107527
+ /* harmony import */ var _creatures_lsp_catalogue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @creatures-lsp/catalogue */ "../catalogue/dist/range.js");
107528
107528
  /* harmony import */ var _log_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log.js */ "./src/log.ts");
107529
107529
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
107530
107530
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -107553,7 +107553,7 @@ class CatalogueSymbolProvider {
107553
107553
  return __awaiter(this, void 0, void 0, function* () {
107554
107554
  const text = document.getText();
107555
107555
  try {
107556
- return (0,_creatures_lsp_caos_kt_catalogue_core__WEBPACK_IMPORTED_MODULE_1__.parseCatalogue)(text)
107556
+ return (0,_creatures_lsp_catalogue_core__WEBPACK_IMPORTED_MODULE_1__.parseCatalogue)(text)
107557
107557
  .catalogueEntries
107558
107558
  .map(toVsCodeSymbol);
107559
107559
  }
@@ -107813,9 +107813,9 @@ __webpack_require__.r(__webpack_exports__);
107813
107813
  /* harmony import */ var vscode_languageclient_lib_common_utils_uuid_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vscode-languageclient/lib/common/utils/uuid.js */ "../../node_modules/vscode-languageclient/lib/common/utils/uuid.js");
107814
107814
  /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! events */ "events");
107815
107815
  /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_7__);
107816
- /* harmony import */ var _creatures_lsp_caos_kt_caos_parser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-parser */ "../caos-kt/dist/caos-parser.mjs");
107816
+ /* harmony import */ var _creatures_lsp_caos_parser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @creatures-lsp/caos/parser */ "../caos-kt/dist/caos-parser.mjs");
107817
107817
  /* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helpers.js */ "./src/helpers.ts");
107818
- /* harmony import */ var _creatures_lsp_caos_kt_caos_validation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-validation */ "../caos-kt/dist/caos-validation.mjs");
107818
+ /* harmony import */ var _creatures_lsp_caos_validation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @creatures-lsp/caos/validation */ "../caos-kt/dist/caos-validation.mjs");
107819
107819
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
107820
107820
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
107821
107821
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -107850,7 +107850,7 @@ const _injectCaosSnippet = (textEditor, edit, ...args) => __awaiter(void 0, void
107850
107850
  yield _injectCaos(textEditor, textEditor.selection);
107851
107851
  });
107852
107852
  const _injectCaosEventScript = (textEditor, edit, ...args) => __awaiter(void 0, void 0, void 0, function* () {
107853
- const scripts = (0,_creatures_lsp_caos_kt_caos_parser__WEBPACK_IMPORTED_MODULE_8__.caosScriptOffsets)(textEditor.document.getText());
107853
+ const scripts = (0,_creatures_lsp_caos_parser__WEBPACK_IMPORTED_MODULE_8__.caosScriptOffsets)(textEditor.document.getText());
107854
107854
  const { line, character } = textEditor.selection.active;
107855
107855
  const range = scripts
107856
107856
  .find(r => r.startToken == "scrp" && (0,_creatures_lsp_extension_util__WEBPACK_IMPORTED_MODULE_5__.inRange)((0,_creatures_lsp_extension_util__WEBPACK_IMPORTED_MODULE_5__.toVsRange)(r), line, character, true));
@@ -107874,7 +107874,7 @@ const _injectCaos = (textEditor, range) => __awaiter(void 0, void 0, void 0, fun
107874
107874
  return;
107875
107875
  }
107876
107876
  if (!injectDangerouslyForThisSession) {
107877
- const errors = (0,_creatures_lsp_caos_kt_caos_validation__WEBPACK_IMPORTED_MODULE_10__.validateCaos)(variant, caos);
107877
+ const errors = (0,_creatures_lsp_caos_validation__WEBPACK_IMPORTED_MODULE_10__.validateCaos)(variant, caos);
107878
107878
  if (errors.length > 0) {
107879
107879
  // 2. Trigger the modal dialog block
107880
107880
  const selection = yield vscode__WEBPACK_IMPORTED_MODULE_0___default().window.showInformationMessage("There are errors in your CAOS script. Would you like to ignore errors and continue?", { modal: true }, "Ignore once", "Ignore for this session");
@@ -107943,7 +107943,7 @@ const _injectCaos = (textEditor, range) => __awaiter(void 0, void 0, void 0, fun
107943
107943
  const result = resultOrBoolean;
107944
107944
  _log_js__WEBPACK_IMPORTED_MODULE_2__.Log.i(documentURI, `InjectionResult: ${result.status}; ` + JSON.stringify(result, null, 2));
107945
107945
  if (result.status === "failed") {
107946
- vscode__WEBPACK_IMPORTED_MODULE_0__.window.showErrorMessage(`Failed to inject all scripts successfully. ${result.results.map(r => "\n\t" + r.response.split(/\r?\n/).join("\n\t")).join("\t> ")}`);
107946
+ vscode__WEBPACK_IMPORTED_MODULE_0__.window.showErrorMessage(`Failed to inject all scripts successfully. ${result.results.map((r) => "\n\t" + r.response.split(/\r?\n/).join("\n\t")).join("\t> ")}`);
107947
107947
  }
107948
107948
  const logger = (0,_caosConsoleLogger_js__WEBPACK_IMPORTED_MODULE_3__.getCaosLogger)(documentURI);
107949
107949
  let connFailed = false;
@@ -108258,7 +108258,7 @@ __webpack_require__.r(__webpack_exports__);
108258
108258
  /* harmony import */ var _creatures_lsp_catalogue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @creatures-lsp/catalogue */ "../catalogue/dist/semantics-legend.js");
108259
108259
  /* harmony import */ var _catalogue_semantic_tokens_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./catalogue.semantic-tokens.js */ "./src/catalogue.semantic-tokens.ts");
108260
108260
  /* harmony import */ var _vfs_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./vfs.js */ "./src/vfs.ts");
108261
- /* harmony import */ var _creatures_lsp_caos_kt_caos_libsfile_full__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-libsfile-full */ "../caos-kt/dist/caos-libsfile-full.mjs");
108261
+ /* harmony import */ var _creatures_lsp_caos_libsfile_full__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @creatures-lsp/caos/libsfile-full */ "../caos-kt/dist/caos-libsfile-full.mjs");
108262
108262
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
108263
108263
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
108264
108264
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -108284,7 +108284,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
108284
108284
 
108285
108285
 
108286
108286
  let defaultClient;
108287
- (0,_creatures_lsp_caos_kt_caos_libsfile_full__WEBPACK_IMPORTED_MODULE_11__.useFullCaosLibDefinitions)();
108287
+ (0,_creatures_lsp_caos_libsfile_full__WEBPACK_IMPORTED_MODULE_11__.useFullCaosLibDefinitions)();
108288
108288
  function setDefaultClient(client) {
108289
108289
  defaultClient = client;
108290
108290
  }
@@ -108463,8 +108463,8 @@ __webpack_require__.r(__webpack_exports__);
108463
108463
  /* harmony export */ });
108464
108464
  /* harmony import */ var vscode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vscode */ "vscode");
108465
108465
  /* harmony import */ var vscode__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vscode__WEBPACK_IMPORTED_MODULE_0__);
108466
- /* harmony import */ var _creatures_lsp_caos_kt_caos_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-parser */ "../caos-kt/dist/caos-parser.mjs");
108467
- /* harmony import */ var _creatures_lsp_caos_kt_caos_inlay_hints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-inlay-hints */ "../caos-kt/dist/caos-inlay-hints.mjs");
108466
+ /* harmony import */ var _creatures_lsp_caos_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/caos/parser */ "../caos-kt/dist/caos-parser.mjs");
108467
+ /* harmony import */ var _creatures_lsp_caos_inlay_hints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @creatures-lsp/caos/inlay-hints */ "../caos-kt/dist/caos-inlay-hints.mjs");
108468
108468
 
108469
108469
 
108470
108470
 
@@ -108483,7 +108483,7 @@ class CaosInlayHintsProvider {
108483
108483
  const hintSettings = settings;
108484
108484
  let disabled;
108485
108485
  if (settings) {
108486
- const inlayOptions = (0,_creatures_lsp_caos_kt_caos_inlay_hints__WEBPACK_IMPORTED_MODULE_2__.getCaosInlayOptions)();
108486
+ const inlayOptions = (0,_creatures_lsp_caos_inlay_hints__WEBPACK_IMPORTED_MODULE_2__.getCaosInlayOptions)();
108487
108487
  // Get disabled type hints
108488
108488
  disabled = inlayOptions
108489
108489
  .filter((option) => {
@@ -108497,15 +108497,15 @@ class CaosInlayHintsProvider {
108497
108497
  const keepGoing = () => (token === null || token === void 0 ? void 0 : token.isCancellationRequested) != true;
108498
108498
  let parseResult;
108499
108499
  if (range != null) {
108500
- parseResult = (0,_creatures_lsp_caos_kt_caos_parser__WEBPACK_IMPORTED_MODULE_1__.parseCaosWithin)(variant, text, range.start.line, range.start.character, range.end.line, range.end.character, false, null, keepGoing);
108500
+ parseResult = (0,_creatures_lsp_caos_parser__WEBPACK_IMPORTED_MODULE_1__.parseCaosWithin)(variant, text, range.start.line, range.start.character, range.end.line, range.end.character, false, null, keepGoing);
108501
108501
  }
108502
108502
  else {
108503
- parseResult = (0,_creatures_lsp_caos_kt_caos_parser__WEBPACK_IMPORTED_MODULE_1__.parseCaos)(variant, text, keepGoing);
108503
+ parseResult = (0,_creatures_lsp_caos_parser__WEBPACK_IMPORTED_MODULE_1__.parseCaos)(variant, text, keepGoing);
108504
108504
  }
108505
108505
  if (parseResult == null) {
108506
108506
  return [];
108507
108507
  }
108508
- const raw = (0,_creatures_lsp_caos_kt_caos_inlay_hints__WEBPACK_IMPORTED_MODULE_2__.getCaosInlayHints)(parseResult, disabled, [], minimumParameters)
108508
+ const raw = (0,_creatures_lsp_caos_inlay_hints__WEBPACK_IMPORTED_MODULE_2__.getCaosInlayHints)(parseResult, disabled, [], minimumParameters)
108509
108509
  .filter(it => it != null);
108510
108510
  return raw.map((hint) => {
108511
108511
  var _a;
@@ -106837,10 +106837,10 @@ function readVarint32SlowPath($this) {
106837
106837
 
106838
106838
  /***/ },
106839
106839
 
106840
- /***/ "../caos-util/lib/constants.js"
106841
- /*!*************************************!*\
106842
- !*** ../caos-util/lib/constants.js ***!
106843
- \*************************************/
106840
+ /***/ "../caos/dist/constants.js"
106841
+ /*!*********************************!*\
106842
+ !*** ../caos/dist/constants.js ***!
106843
+ \*********************************/
106844
106844
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
106845
106845
 
106846
106846
  "use strict";
@@ -106895,7 +106895,7 @@ __webpack_require__.r(__webpack_exports__);
106895
106895
  /* harmony export */ UNKNOWN_TYPE_ID: () => (/* binding */ UNKNOWN_TYPE_ID),
106896
106896
  /* harmony export */ VARIABLE_TYPE_ID: () => (/* binding */ VARIABLE_TYPE_ID)
106897
106897
  /* harmony export */ });
106898
- /* harmony import */ var _token_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./token-utils.js */ "../caos-util/lib/token-utils.js");
106898
+ /* harmony import */ var _token_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./token-utils.js */ "../caos/dist/token-utils.js");
106899
106899
  // noinspection JSUnusedGlobalSymbols,SpellCheckingInspection
106900
106900
 
106901
106901
  const INT_TYPE_ID = 1;
@@ -106950,10 +106950,10 @@ const CAOS2_COMMENT_TYPE = (0,_token_utils_js__WEBPACK_IMPORTED_MODULE_0__.tok)(
106950
106950
 
106951
106951
  /***/ },
106952
106952
 
106953
- /***/ "../caos-util/lib/document-symbols-provider.js"
106954
- /*!*****************************************************!*\
106955
- !*** ../caos-util/lib/document-symbols-provider.js ***!
106956
- \*****************************************************/
106953
+ /***/ "../caos/dist/document-symbols.js"
106954
+ /*!****************************************!*\
106955
+ !*** ../caos/dist/document-symbols.js ***!
106956
+ \****************************************/
106957
106957
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
106958
106958
 
106959
106959
  "use strict";
@@ -106965,7 +106965,7 @@ __webpack_require__.r(__webpack_exports__);
106965
106965
  /* harmony import */ var _creatures_lsp_caos_kt_caos_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-core */ "../caos-kt/dist/caos-core.mjs");
106966
106966
  /* harmony import */ var _creatures_lsp_caos_kt_caos_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-parser */ "../caos-kt/dist/caos-parser.mjs");
106967
106967
  /* harmony import */ var vscode_languageserver_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vscode-languageserver-types */ "../../node_modules/vscode-languageserver-types/lib/esm/main.js");
106968
- /* harmony import */ var _subroutines_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./subroutines.js */ "../caos-util/lib/subroutines.js");
106968
+ /* harmony import */ var _subroutines_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./subroutines.js */ "../caos/dist/subroutines.js");
106969
106969
  /* harmony import */ var _creatures_lsp_extension_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @creatures-lsp/extension-util */ "../extension-util/dist/position-utils.js");
106970
106970
  // noinspection JSUnusedGlobalSymbols
106971
106971
 
@@ -107088,10 +107088,10 @@ function getEventScriptName(script) {
107088
107088
 
107089
107089
  /***/ },
107090
107090
 
107091
- /***/ "../caos-util/lib/is-similar-variant.js"
107092
- /*!**********************************************!*\
107093
- !*** ../caos-util/lib/is-similar-variant.js ***!
107094
- \**********************************************/
107091
+ /***/ "../caos/dist/is-similar-variant.js"
107092
+ /*!******************************************!*\
107093
+ !*** ../caos/dist/is-similar-variant.js ***!
107094
+ \******************************************/
107095
107095
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
107096
107096
 
107097
107097
  "use strict";
@@ -107126,10 +107126,10 @@ function isC3DSVariant(variant) {
107126
107126
 
107127
107127
  /***/ },
107128
107128
 
107129
- /***/ "../caos-util/lib/is-util.js"
107130
- /*!***********************************!*\
107131
- !*** ../caos-util/lib/is-util.js ***!
107132
- \***********************************/
107129
+ /***/ "../caos/dist/is-util.js"
107130
+ /*!*******************************!*\
107131
+ !*** ../caos/dist/is-util.js ***!
107132
+ \*******************************/
107133
107133
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
107134
107134
 
107135
107135
  "use strict";
@@ -107142,7 +107142,7 @@ __webpack_require__.r(__webpack_exports__);
107142
107142
  /* harmony export */ isSimilarVariant: () => (/* reexport safe */ _is_similar_variant_js__WEBPACK_IMPORTED_MODULE_1__.isSimilarVariant)
107143
107143
  /* harmony export */ });
107144
107144
  /* harmony import */ var _creatures_lsp_caos_kt_caos_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-core */ "../caos-kt/dist/caos-core.mjs");
107145
- /* harmony import */ var _is_similar_variant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./is-similar-variant.js */ "../caos-util/lib/is-similar-variant.js");
107145
+ /* harmony import */ var _is_similar_variant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./is-similar-variant.js */ "../caos/dist/is-similar-variant.js");
107146
107146
 
107147
107147
  /**
107148
107148
  * Checks if variable is of a given type
@@ -107204,10 +107204,10 @@ var Is;
107204
107204
 
107205
107205
  /***/ },
107206
107206
 
107207
- /***/ "../caos-util/lib/subroutines.js"
107208
- /*!***************************************!*\
107209
- !*** ../caos-util/lib/subroutines.js ***!
107210
- \***************************************/
107207
+ /***/ "../caos/dist/subroutines.js"
107208
+ /*!***********************************!*\
107209
+ !*** ../caos/dist/subroutines.js ***!
107210
+ \***********************************/
107211
107211
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
107212
107212
 
107213
107213
  "use strict";
@@ -107217,9 +107217,9 @@ __webpack_require__.r(__webpack_exports__);
107217
107217
  /* harmony export */ getSubroutines: () => (/* binding */ getSubroutines),
107218
107218
  /* harmony export */ hasSubroutine: () => (/* binding */ hasSubroutine)
107219
107219
  /* harmony export */ });
107220
- /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants.js */ "../caos-util/lib/constants.js");
107220
+ /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants.js */ "../caos/dist/constants.js");
107221
107221
  /* harmony import */ var _creatures_lsp_extension_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/extension-util */ "../extension-util/dist/position-utils.js");
107222
- /* harmony import */ var _token_utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./token-utils.js */ "../caos-util/lib/token-utils.js");
107222
+ /* harmony import */ var _token_utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./token-utils.js */ "../caos/dist/token-utils.js");
107223
107223
  /* eslint-disable eqeqeq */
107224
107224
  // noinspection JSUnusedGlobalSymbols
107225
107225
 
@@ -107280,10 +107280,10 @@ function getSubroutines(items, afterToken = SUBR) {
107280
107280
 
107281
107281
  /***/ },
107282
107282
 
107283
- /***/ "../caos-util/lib/token-utils.js"
107284
- /*!***************************************!*\
107285
- !*** ../caos-util/lib/token-utils.js ***!
107286
- \***************************************/
107283
+ /***/ "../caos/dist/token-utils.js"
107284
+ /*!***********************************!*\
107285
+ !*** ../caos/dist/token-utils.js ***!
107286
+ \***********************************/
107287
107287
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
107288
107288
 
107289
107289
  "use strict";
@@ -107292,7 +107292,7 @@ __webpack_require__.r(__webpack_exports__);
107292
107292
  /* harmony export */ singleTokenOrNull: () => (/* binding */ singleTokenOrNull),
107293
107293
  /* harmony export */ tok: () => (/* binding */ tok)
107294
107294
  /* harmony export */ });
107295
- /* harmony import */ var _is_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./is-util.js */ "../caos-util/lib/is-util.js");
107295
+ /* harmony import */ var _is_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./is-util.js */ "../caos/dist/is-util.js");
107296
107296
 
107297
107297
  function tok(token) {
107298
107298
  if (typeof token === 'number') {
@@ -107324,52 +107324,6 @@ const singleTokenOrNull = (tokens) => {
107324
107324
  };
107325
107325
 
107326
107326
 
107327
- /***/ },
107328
-
107329
- /***/ "../catalogue/dist/catalogue.range.js"
107330
- /*!********************************************!*\
107331
- !*** ../catalogue/dist/catalogue.range.js ***!
107332
- \********************************************/
107333
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
107334
-
107335
- "use strict";
107336
- __webpack_require__.r(__webpack_exports__);
107337
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
107338
- /* harmony export */ getCatalogueRange: () => (/* binding */ getCatalogueRange)
107339
- /* harmony export */ });
107340
- function getCatalogueRange(entry) {
107341
- var _a, _b, _c, _d, _e, _f, _g, _h;
107342
- const start = entry.keywordParserItem.textRange.start;
107343
- const entries = ((_a = entry.valueParserItems) !== null && _a !== void 0 ? _a : [])
107344
- .concat(...((_b = entry.looseItems) !== null && _b !== void 0 ? _b : []))
107345
- .concat(...((_c = entry.errorHeaderItems) !== null && _c !== void 0 ? _c : []))
107346
- .concat((_f = (_e = (_d = entry.arrayCountParserItem) !== null && _d !== void 0 ? _d : entry.catalogueNameParserItem) !== null && _e !== void 0 ? _e : entry.overrideKeyword) !== null && _f !== void 0 ? _f : entry.keywordParserItem);
107347
- entries.sort(sortParserItemsByStart);
107348
- let end = (_h = (_g = entries.pop()) === null || _g === void 0 ? void 0 : _g.textRange) === null || _h === void 0 ? void 0 : _h.end;
107349
- if (end == null) {
107350
- return entry.keywordParserItem.textRange;
107351
- }
107352
- else {
107353
- return {
107354
- start: start,
107355
- end: end
107356
- };
107357
- }
107358
- }
107359
- function sortParserItemsByStart(a, b) {
107360
- const first = sortValue(a.textRange);
107361
- const second = sortValue(b.textRange);
107362
- const difference = first - second;
107363
- if (difference === 0) {
107364
- return 0;
107365
- }
107366
- return difference > 0 ? 1 : -1;
107367
- }
107368
- function sortValue(range) {
107369
- return (range.start.line << 16) | range.start.character;
107370
- }
107371
-
107372
-
107373
107327
  /***/ },
107374
107328
 
107375
107329
  /***/ "../catalogue/dist/is.js"
@@ -107499,6 +107453,52 @@ var IsCatalogue;
107499
107453
  })(IsCatalogue || (IsCatalogue = {}));
107500
107454
 
107501
107455
 
107456
+ /***/ },
107457
+
107458
+ /***/ "../catalogue/dist/range.js"
107459
+ /*!**********************************!*\
107460
+ !*** ../catalogue/dist/range.js ***!
107461
+ \**********************************/
107462
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
107463
+
107464
+ "use strict";
107465
+ __webpack_require__.r(__webpack_exports__);
107466
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
107467
+ /* harmony export */ getCatalogueRange: () => (/* binding */ getCatalogueRange)
107468
+ /* harmony export */ });
107469
+ function getCatalogueRange(entry) {
107470
+ var _a, _b, _c, _d, _e, _f, _g, _h;
107471
+ const start = entry.keywordParserItem.textRange.start;
107472
+ const entries = ((_a = entry.valueParserItems) !== null && _a !== void 0 ? _a : [])
107473
+ .concat(...((_b = entry.looseItems) !== null && _b !== void 0 ? _b : []))
107474
+ .concat(...((_c = entry.errorHeaderItems) !== null && _c !== void 0 ? _c : []))
107475
+ .concat((_f = (_e = (_d = entry.arrayCountParserItem) !== null && _d !== void 0 ? _d : entry.catalogueNameParserItem) !== null && _e !== void 0 ? _e : entry.overrideKeyword) !== null && _f !== void 0 ? _f : entry.keywordParserItem);
107476
+ entries.sort(sortParserItemsByStart);
107477
+ let end = (_h = (_g = entries.pop()) === null || _g === void 0 ? void 0 : _g.textRange) === null || _h === void 0 ? void 0 : _h.end;
107478
+ if (end == null) {
107479
+ return entry.keywordParserItem.textRange;
107480
+ }
107481
+ else {
107482
+ return {
107483
+ start: start,
107484
+ end: end
107485
+ };
107486
+ }
107487
+ }
107488
+ function sortParserItemsByStart(a, b) {
107489
+ const first = sortValue(a.textRange);
107490
+ const second = sortValue(b.textRange);
107491
+ const difference = first - second;
107492
+ if (difference === 0) {
107493
+ return 0;
107494
+ }
107495
+ return difference > 0 ? 1 : -1;
107496
+ }
107497
+ function sortValue(range) {
107498
+ return (range.start.line << 16) | range.start.character;
107499
+ }
107500
+
107501
+
107502
107502
  /***/ },
107503
107503
 
107504
107504
  /***/ "../catalogue/dist/semantic-highlighter.js"
@@ -108478,7 +108478,7 @@ __webpack_require__.r(__webpack_exports__);
108478
108478
  /* harmony export */ });
108479
108479
  /* harmony import */ var vscode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vscode */ "vscode");
108480
108480
  /* harmony import */ var vscode__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vscode__WEBPACK_IMPORTED_MODULE_0__);
108481
- /* harmony import */ var _creatures_lsp_caos_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/caos-util */ "../caos-util/lib/document-symbols-provider.js");
108481
+ /* harmony import */ var _creatures_lsp_caos_document_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/caos/document-symbols */ "../caos/dist/document-symbols.js");
108482
108482
  /* harmony import */ var _settings_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./settings.js */ "./src/settings.ts");
108483
108483
  /* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helpers.js */ "./src/helpers.ts");
108484
108484
  /* harmony import */ var _log_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log.js */ "./src/log.ts");
@@ -108512,7 +108512,7 @@ class CaosSymbolProvider {
108512
108512
  const text = document.getText();
108513
108513
  let symbolsRaw;
108514
108514
  try {
108515
- symbolsRaw = (0,_creatures_lsp_caos_util__WEBPACK_IMPORTED_MODULE_1__.getCaosScriptDocumentSymbols)(variant, text);
108515
+ symbolsRaw = (0,_creatures_lsp_caos_document_symbols__WEBPACK_IMPORTED_MODULE_1__.getCaosScriptDocumentSymbols)(variant, text);
108516
108516
  }
108517
108517
  catch (e) {
108518
108518
  const error = e instanceof Error ? (e.message + "\n" + e.stack) : e;
@@ -108619,9 +108619,9 @@ __webpack_require__.r(__webpack_exports__);
108619
108619
  /* harmony export */ });
108620
108620
  /* harmony import */ var vscode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vscode */ "vscode");
108621
108621
  /* harmony import */ var vscode__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vscode__WEBPACK_IMPORTED_MODULE_0__);
108622
- /* harmony import */ var _creatures_lsp_caos_kt_catalogue_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/caos-kt/catalogue-core */ "../caos-kt/dist/catalogue-core.mjs");
108622
+ /* harmony import */ var _creatures_lsp_catalogue_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/catalogue/core */ "../caos-kt/dist/catalogue-core.mjs");
108623
108623
  /* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helpers.js */ "./src/helpers.ts");
108624
- /* harmony import */ var _creatures_lsp_catalogue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @creatures-lsp/catalogue */ "../catalogue/dist/catalogue.range.js");
108624
+ /* harmony import */ var _creatures_lsp_catalogue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @creatures-lsp/catalogue */ "../catalogue/dist/range.js");
108625
108625
  /* harmony import */ var _log_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log.js */ "./src/log.ts");
108626
108626
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
108627
108627
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -108650,7 +108650,7 @@ class CatalogueSymbolProvider {
108650
108650
  return __awaiter(this, void 0, void 0, function* () {
108651
108651
  const text = document.getText();
108652
108652
  try {
108653
- return (0,_creatures_lsp_caos_kt_catalogue_core__WEBPACK_IMPORTED_MODULE_1__.parseCatalogue)(text)
108653
+ return (0,_creatures_lsp_catalogue_core__WEBPACK_IMPORTED_MODULE_1__.parseCatalogue)(text)
108654
108654
  .catalogueEntries
108655
108655
  .map(toVsCodeSymbol);
108656
108656
  }
@@ -108910,9 +108910,9 @@ __webpack_require__.r(__webpack_exports__);
108910
108910
  /* harmony import */ var vscode_languageclient_lib_common_utils_uuid_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vscode-languageclient/lib/common/utils/uuid.js */ "../../node_modules/vscode-languageclient/lib/common/utils/uuid.js");
108911
108911
  /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! events */ "../../node_modules/events/events.js");
108912
108912
  /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_7__);
108913
- /* harmony import */ var _creatures_lsp_caos_kt_caos_parser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-parser */ "../caos-kt/dist/caos-parser.mjs");
108913
+ /* harmony import */ var _creatures_lsp_caos_parser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @creatures-lsp/caos/parser */ "../caos-kt/dist/caos-parser.mjs");
108914
108914
  /* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helpers.js */ "./src/helpers.ts");
108915
- /* harmony import */ var _creatures_lsp_caos_kt_caos_validation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-validation */ "../caos-kt/dist/caos-validation.mjs");
108915
+ /* harmony import */ var _creatures_lsp_caos_validation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @creatures-lsp/caos/validation */ "../caos-kt/dist/caos-validation.mjs");
108916
108916
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
108917
108917
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
108918
108918
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -108947,7 +108947,7 @@ const _injectCaosSnippet = (textEditor, edit, ...args) => __awaiter(void 0, void
108947
108947
  yield _injectCaos(textEditor, textEditor.selection);
108948
108948
  });
108949
108949
  const _injectCaosEventScript = (textEditor, edit, ...args) => __awaiter(void 0, void 0, void 0, function* () {
108950
- const scripts = (0,_creatures_lsp_caos_kt_caos_parser__WEBPACK_IMPORTED_MODULE_8__.caosScriptOffsets)(textEditor.document.getText());
108950
+ const scripts = (0,_creatures_lsp_caos_parser__WEBPACK_IMPORTED_MODULE_8__.caosScriptOffsets)(textEditor.document.getText());
108951
108951
  const { line, character } = textEditor.selection.active;
108952
108952
  const range = scripts
108953
108953
  .find(r => r.startToken == "scrp" && (0,_creatures_lsp_extension_util__WEBPACK_IMPORTED_MODULE_5__.inRange)((0,_creatures_lsp_extension_util__WEBPACK_IMPORTED_MODULE_5__.toVsRange)(r), line, character, true));
@@ -108971,7 +108971,7 @@ const _injectCaos = (textEditor, range) => __awaiter(void 0, void 0, void 0, fun
108971
108971
  return;
108972
108972
  }
108973
108973
  if (!injectDangerouslyForThisSession) {
108974
- const errors = (0,_creatures_lsp_caos_kt_caos_validation__WEBPACK_IMPORTED_MODULE_10__.validateCaos)(variant, caos);
108974
+ const errors = (0,_creatures_lsp_caos_validation__WEBPACK_IMPORTED_MODULE_10__.validateCaos)(variant, caos);
108975
108975
  if (errors.length > 0) {
108976
108976
  // 2. Trigger the modal dialog block
108977
108977
  const selection = yield vscode__WEBPACK_IMPORTED_MODULE_0___default().window.showInformationMessage("There are errors in your CAOS script. Would you like to ignore errors and continue?", { modal: true }, "Ignore once", "Ignore for this session");
@@ -109040,7 +109040,7 @@ const _injectCaos = (textEditor, range) => __awaiter(void 0, void 0, void 0, fun
109040
109040
  const result = resultOrBoolean;
109041
109041
  _log_js__WEBPACK_IMPORTED_MODULE_2__.Log.i(documentURI, `InjectionResult: ${result.status}; ` + JSON.stringify(result, null, 2));
109042
109042
  if (result.status === "failed") {
109043
- vscode__WEBPACK_IMPORTED_MODULE_0__.window.showErrorMessage(`Failed to inject all scripts successfully. ${result.results.map(r => "\n\t" + r.response.split(/\r?\n/).join("\n\t")).join("\t> ")}`);
109043
+ vscode__WEBPACK_IMPORTED_MODULE_0__.window.showErrorMessage(`Failed to inject all scripts successfully. ${result.results.map((r) => "\n\t" + r.response.split(/\r?\n/).join("\n\t")).join("\t> ")}`);
109044
109044
  }
109045
109045
  const logger = (0,_caosConsoleLogger_js__WEBPACK_IMPORTED_MODULE_3__.getCaosLogger)(documentURI);
109046
109046
  let connFailed = false;
@@ -109371,8 +109371,8 @@ __webpack_require__.r(__webpack_exports__);
109371
109371
  /* harmony export */ });
109372
109372
  /* harmony import */ var vscode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vscode */ "vscode");
109373
109373
  /* harmony import */ var vscode__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vscode__WEBPACK_IMPORTED_MODULE_0__);
109374
- /* harmony import */ var _creatures_lsp_caos_kt_caos_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-parser */ "../caos-kt/dist/caos-parser.mjs");
109375
- /* harmony import */ var _creatures_lsp_caos_kt_caos_inlay_hints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-inlay-hints */ "../caos-kt/dist/caos-inlay-hints.mjs");
109374
+ /* harmony import */ var _creatures_lsp_caos_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @creatures-lsp/caos/parser */ "../caos-kt/dist/caos-parser.mjs");
109375
+ /* harmony import */ var _creatures_lsp_caos_inlay_hints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @creatures-lsp/caos/inlay-hints */ "../caos-kt/dist/caos-inlay-hints.mjs");
109376
109376
 
109377
109377
 
109378
109378
 
@@ -109391,7 +109391,7 @@ class CaosInlayHintsProvider {
109391
109391
  const hintSettings = settings;
109392
109392
  let disabled;
109393
109393
  if (settings) {
109394
- const inlayOptions = (0,_creatures_lsp_caos_kt_caos_inlay_hints__WEBPACK_IMPORTED_MODULE_2__.getCaosInlayOptions)();
109394
+ const inlayOptions = (0,_creatures_lsp_caos_inlay_hints__WEBPACK_IMPORTED_MODULE_2__.getCaosInlayOptions)();
109395
109395
  // Get disabled type hints
109396
109396
  disabled = inlayOptions
109397
109397
  .filter((option) => {
@@ -109405,15 +109405,15 @@ class CaosInlayHintsProvider {
109405
109405
  const keepGoing = () => (token === null || token === void 0 ? void 0 : token.isCancellationRequested) != true;
109406
109406
  let parseResult;
109407
109407
  if (range != null) {
109408
- parseResult = (0,_creatures_lsp_caos_kt_caos_parser__WEBPACK_IMPORTED_MODULE_1__.parseCaosWithin)(variant, text, range.start.line, range.start.character, range.end.line, range.end.character, false, null, keepGoing);
109408
+ parseResult = (0,_creatures_lsp_caos_parser__WEBPACK_IMPORTED_MODULE_1__.parseCaosWithin)(variant, text, range.start.line, range.start.character, range.end.line, range.end.character, false, null, keepGoing);
109409
109409
  }
109410
109410
  else {
109411
- parseResult = (0,_creatures_lsp_caos_kt_caos_parser__WEBPACK_IMPORTED_MODULE_1__.parseCaos)(variant, text, keepGoing);
109411
+ parseResult = (0,_creatures_lsp_caos_parser__WEBPACK_IMPORTED_MODULE_1__.parseCaos)(variant, text, keepGoing);
109412
109412
  }
109413
109413
  if (parseResult == null) {
109414
109414
  return [];
109415
109415
  }
109416
- const raw = (0,_creatures_lsp_caos_kt_caos_inlay_hints__WEBPACK_IMPORTED_MODULE_2__.getCaosInlayHints)(parseResult, disabled, [], minimumParameters)
109416
+ const raw = (0,_creatures_lsp_caos_inlay_hints__WEBPACK_IMPORTED_MODULE_2__.getCaosInlayHints)(parseResult, disabled, [], minimumParameters)
109417
109417
  .filter(it => it != null);
109418
109418
  return raw.map((hint) => {
109419
109419
  var _a;
@@ -109569,7 +109569,7 @@ function spinUpServer(context, document, _defaultClient, clientOptions) {
109569
109569
  }
109570
109570
  function createClient(context, clientOptions) {
109571
109571
  // Stash caos lib url
109572
- self.caosLibUrl = vscode__WEBPACK_IMPORTED_MODULE_0__.Uri.joinPath(context.extensionUri, 'packages', 'caos-util', 'lib', 'caos.universal.lib.json')
109572
+ self.caosLibUrl = vscode__WEBPACK_IMPORTED_MODULE_0__.Uri.joinPath(context.extensionUri, 'packages', 'caos', 'lib', 'caos.universal.lib.json')
109573
109573
  .toString(true);
109574
109574
  // Create a worker. The worker main file implements the language server.
109575
109575
  const serverMain = vscode__WEBPACK_IMPORTED_MODULE_0__.Uri.joinPath(context.extensionUri, 'packages', 'server', 'dist', 'web', 'server.cjs');
@@ -110155,7 +110155,7 @@ __webpack_require__.r(__webpack_exports__);
110155
110155
  /* harmony import */ var _creatures_lsp_catalogue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @creatures-lsp/catalogue */ "../catalogue/dist/semantics-legend.js");
110156
110156
  /* harmony import */ var _catalogue_semantic_tokens_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./catalogue.semantic-tokens.js */ "./src/catalogue.semantic-tokens.ts");
110157
110157
  /* harmony import */ var _vfs_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./vfs.js */ "./src/vfs.ts");
110158
- /* harmony import */ var _creatures_lsp_caos_kt_caos_libsfile_full__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @creatures-lsp/caos-kt/caos-libsfile-full */ "../caos-kt/dist/caos-libsfile-full.mjs");
110158
+ /* harmony import */ var _creatures_lsp_caos_libsfile_full__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @creatures-lsp/caos/libsfile-full */ "../caos-kt/dist/caos-libsfile-full.mjs");
110159
110159
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
110160
110160
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
110161
110161
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -110181,7 +110181,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
110181
110181
 
110182
110182
 
110183
110183
  let defaultClient;
110184
- (0,_creatures_lsp_caos_kt_caos_libsfile_full__WEBPACK_IMPORTED_MODULE_11__.useFullCaosLibDefinitions)();
110184
+ (0,_creatures_lsp_caos_libsfile_full__WEBPACK_IMPORTED_MODULE_11__.useFullCaosLibDefinitions)();
110185
110185
  function setDefaultClient(client) {
110186
110186
  defaultClient = client;
110187
110187
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "displayName": "CAOSEditor",
5
5
  "description": "An editor for the Creature's CAOS language",
6
- "version": "0.0.4",
6
+ "version": "0.0.5",
7
7
  "main": "./dist/node/extension.cjs",
8
8
  "browser": "./dist/web/extension.cjs",
9
9
  "types": "./dist/extension.d.ts",
@@ -29,7 +29,6 @@
29
29
  "test": "echo 'no test'",
30
30
  "lint": "eslint \"./src/**/*.{mts,ts,tsx}\" --max-warnings=0",
31
31
  "webpack": "webpack --mode development --devtool cheap-source-map",
32
- "postversion": "webpack --mode development --watch",
33
32
  "package": "webpack --mode production --devtool hidden-source-map"
34
33
  },
35
34
  "files": [
@@ -37,9 +36,9 @@
37
36
  "./dist/web/extension.cjs"
38
37
  ],
39
38
  "dependencies": {
40
- "@creatures-lsp/caos-util": "^0.0.4",
41
- "@creatures-lsp/catalogue": "^0.0.4",
42
- "@creatures-lsp/extension-util": "^0.0.4",
39
+ "@creatures-lsp/caos": "^0.0.5",
40
+ "@creatures-lsp/catalogue": "^0.0.5",
41
+ "@creatures-lsp/extension-util": "^0.0.5",
43
42
  "vscode-languageclient": "^9.0.1"
44
43
  },
45
44
  "devDependencies": {