likec4 1.51.0 → 1.52.0

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.
@@ -2005,7 +2005,6 @@ interface ParsedAstElementView {
2005
2005
  tags: c4.NonEmptyArray<c4.Tag> | null;
2006
2006
  links: c4.NonEmptyArray<c4.Link> | null;
2007
2007
  rules: c4.ElementViewRule[];
2008
- manualLayout?: c4.ViewManualLayout;
2009
2008
  }
2010
2009
  interface ParsedAstDynamicView {
2011
2010
  id: c4.ViewId;
@@ -2017,7 +2016,6 @@ interface ParsedAstDynamicView {
2017
2016
  steps: c4.DynamicViewStep[];
2018
2017
  rules: Array<c4.DynamicViewRule>;
2019
2018
  variant: c4.DynamicViewDisplayVariant | undefined;
2020
- manualLayout?: c4.ViewManualLayout;
2021
2019
  }
2022
2020
  interface ParsedAstDeploymentView {
2023
2021
  id: c4.ViewId;
@@ -2027,7 +2025,6 @@ interface ParsedAstDeploymentView {
2027
2025
  tags: c4.NonEmptyArray<c4.Tag> | null;
2028
2026
  links: c4.NonEmptyArray<c4.Link> | null;
2029
2027
  rules: Array<c4.DeploymentViewRule>;
2030
- manualLayout?: c4.ViewManualLayout;
2031
2028
  }
2032
2029
  type ParsedAstView = ParsedAstElementView | ParsedAstDynamicView | ParsedAstDeploymentView;
2033
2030
  interface AstNodeDescriptionWithFqn extends AstNodeDescription {
@@ -3317,7 +3314,42 @@ interface LikeC4LanguageServices {
3317
3314
  * Returns the location of the specified element, relation, view or deployment element
3318
3315
  */
3319
3316
  locate(params: Locate.Params): Locate.Res;
3317
+ /**
3318
+ * Formats documents and returns a map of document URI → formatted source text.
3319
+ *
3320
+ * Target selection uses union semantics:
3321
+ * - No options: formats all documents across all projects
3322
+ * - `projectIds`: includes all documents from those projects
3323
+ * - `documentUris`: includes specific documents
3324
+ * - Both: formats the union (deduplicated)
3325
+ */
3326
+ format(options?: FormatOptions): Promise<Map<string, string>>;
3320
3327
  dispose(): Promise<void>;
3328
+ }
3329
+ /**
3330
+ * Options for {@link LikeC4LanguageServices.format}.
3331
+ *
3332
+ * Target selection uses union semantics:
3333
+ * - Omit both `projectIds` and `documentUris` to format **all** documents.
3334
+ * - Provide `projectIds` to include all documents from those projects.
3335
+ * - Provide `documentUris` to include specific documents.
3336
+ * - Provide both to format the **union** of project documents and specified documents.
3337
+ */
3338
+ interface FormatOptions {
3339
+ /** Include all documents from these projects. */
3340
+ projectIds?: ReadonlyArray<ProjectId>;
3341
+ /** Include these specific documents (by URI string). */
3342
+ documentUris?: ReadonlyArray<string>;
3343
+ /** Size of a tab in spaces (default: 2). */
3344
+ tabSize?: number;
3345
+ /** Prefer spaces over tabs (default: true). */
3346
+ insertSpaces?: boolean;
3347
+ /** Trim trailing whitespace on a line. */
3348
+ trimTrailingWhitespace?: boolean;
3349
+ /** Insert a newline character at the end of the file if one does not exist. */
3350
+ insertFinalNewline?: boolean;
3351
+ /** Trim all newlines after the final newline at the end of the file. */
3352
+ trimFinalNewlines?: boolean;
3321
3353
  } //#endregion
3322
3354
  //#region src/lsp/CodeLensProvider.d.ts
3323
3355
  declare class LikeC4CodeLensProvider implements CodeLensProvider {
@@ -3424,7 +3456,7 @@ declare class LikeC4CodeActionProvider implements CodeActionProvider {
3424
3456
  * @throws `OperationCancelled` if cancellation is detected during execution
3425
3457
  * @throws `ResponseError` if an error is detected that should be sent as response to the client
3426
3458
  */
3427
- getCodeActions(document: LangiumDocument, params: CodeActionParams): CommandOrCodeAction[] | undefined;
3459
+ getCodeActions(_document: LangiumDocument, _params: CodeActionParams): CommandOrCodeAction[] | undefined;
3428
3460
  } //#endregion
3429
3461
  //#region src/lsp/SemanticTokenProvider.d.ts
3430
3462
  declare class LikeC4SemanticTokenProvider extends AbstractSemanticTokenProvider {