@ripple-ts/language-server 0.3.87 → 0.3.89

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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const require_server = require('./server-Bltpbx9k.js');
2
+ const require_server = require('./server-D9tbDqrh.js');
3
3
 
4
4
  //#region src/language-server.js
5
5
  require_server.createRippleLanguageServer();
@@ -21292,6 +21292,21 @@ function generateImportEdit(documentText, importName) {
21292
21292
  }];
21293
21293
  }
21294
21294
  /**
21295
+ * Generic (non-`@`) TSRX authoring snippet: the component-function shape. Target-neutral, so it
21296
+ * is offered in every `.tsrx` file. Kept out of `TSRX_SNIPPETS` because it is not an `@`-directive
21297
+ * — it must not be offered when the user is typing `@`, and it is the one snippet that still makes
21298
+ * sense inside an `export` declaration (`export function Name(props)` followed by a code block).
21299
+ */
21300
+ const COMPONENT_SNIPPET = {
21301
+ label: "function Component(props) @{ }",
21302
+ kind: import_language_server.CompletionItemKind.Snippet,
21303
+ detail: "TSRX component function",
21304
+ documentation: "Create a new TSRX component",
21305
+ insertText: "function ${1:ComponentName}(${2:props}) @{\n $0\n}",
21306
+ insertTextFormat: import_language_server.InsertTextFormat.Snippet,
21307
+ sortText: "0-function-component"
21308
+ };
21309
+ /**
21295
21310
  * Target-neutral TSRX authoring snippets. These apply to every target (Ripple,
21296
21311
  * React, Solid, Preact, Vue) because they only use shared TSRX syntax — the
21297
21312
  * component-function shape, code blocks, and `@if`/`@for`/`@switch`/`@try` control flow.
@@ -21308,6 +21323,10 @@ const TSRX_SNIPPETS = [
21308
21323
  insertTextFormat: import_language_server.InsertTextFormat.Snippet,
21309
21324
  sortText: "0-@{"
21310
21325
  },
21326
+ {
21327
+ ...COMPONENT_SNIPPET,
21328
+ filterText: "@"
21329
+ },
21311
21330
  {
21312
21331
  label: "@for-of",
21313
21332
  kind: import_language_server.CompletionItemKind.Snippet,
@@ -21463,21 +21482,6 @@ const TSRX_SNIPPETS = [
21463
21482
  }
21464
21483
  ];
21465
21484
  /**
21466
- * Generic (non-`@`) TSRX authoring snippet: the component-function shape. Target-neutral, so it
21467
- * is offered in every `.tsrx` file. Kept out of `TSRX_SNIPPETS` because it is not an `@`-directive
21468
- * — it must not be offered when the user is typing `@`, and it is the one snippet that still makes
21469
- * sense inside an `export` declaration (`export function Name(props)` followed by a code block).
21470
- */
21471
- const COMPONENT_SNIPPET = {
21472
- label: "function component",
21473
- kind: import_language_server.CompletionItemKind.Snippet,
21474
- detail: "TSRX component function",
21475
- documentation: "Create a new TSRX component",
21476
- insertText: "function ${1:ComponentName}(${2:props}) @{\n $0\n}",
21477
- insertTextFormat: import_language_server.InsertTextFormat.Snippet,
21478
- sortText: "0-function-component"
21479
- };
21480
- /**
21481
21485
  * Ripple-runtime-only snippets: reactivity primitives (`track`/`effect`/`untrack`)
21482
21486
  * and server modules. These reference the `ripple` runtime API, so they are only
21483
21487
  * offered when the file is compiled by the Ripple target (see `is_ripple_platform_file`).
@@ -22606,4 +22610,4 @@ Object.defineProperty(exports, 'createRippleLanguageServer', {
22606
22610
  return createRippleLanguageServer;
22607
22611
  }
22608
22612
  });
22609
- //# sourceMappingURL=server-Bltpbx9k.js.map
22613
+ //# sourceMappingURL=server-D9tbDqrh.js.map