@likec4/language-server 1.11.0 → 1.12.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.
- package/dist/browser.cjs +1 -1
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.mts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/likec4lib.cjs +589 -0
- package/dist/likec4lib.mjs +589 -0
- package/dist/model-graph/index.cjs +1 -1
- package/dist/model-graph/index.mjs +1 -1
- package/dist/shared/{language-server.DJhoJBWh.cjs → language-server.3Bh0zvVS.cjs} +10 -2
- package/dist/shared/{language-server.Cyw-bCtc.d.ts → language-server.BCDM5gt9.d.ts} +6 -3
- package/dist/shared/{language-server.DGjTE7xL.d.mts → language-server.BN7V1vQA.d.mts} +6 -3
- package/dist/shared/language-server.BX2gtzo8.d.cts +1233 -0
- package/dist/shared/{language-server.CCOotWDz.mjs → language-server.BbMFBkE-.mjs} +80 -24
- package/dist/shared/language-server.BiN_phWO.d.mts +1233 -0
- package/dist/shared/{language-server.CbqwHp7Q.mjs → language-server.BxxqS4Id.mjs} +10 -2
- package/dist/shared/{language-server.C8lV6gDw.cjs → language-server.BzrAcTYK.cjs} +78 -22
- package/dist/shared/{language-server.Ol32Kygo.d.cts → language-server.DtLmc4Fz.d.cts} +6 -3
- package/dist/shared/language-server.ljop0PBQ.d.ts +1233 -0
- package/package.json +11 -11
- package/src/ast.ts +23 -9
- package/src/formatting/LikeC4Formatter.ts +19 -7
- package/src/generated/ast.ts +9 -4
- package/src/generated/grammar.ts +1 -1
- package/src/generated-lib/icons.ts +589 -0
- package/src/like-c4.langium +8 -4
- package/src/lsp/CompletionProvider.ts +48 -1
- package/src/model/model-parser.ts +2 -6
- package/src/model-graph/compute-view/compute.ts +5 -1
- package/src/model-graph/dynamic-view/compute.ts +5 -1
- package/src/test/testServices.ts +1 -1
- package/src/view-utils/manual-layout.ts +5 -2
|
@@ -306,6 +306,595 @@ export const LibIcons: string = `likec4lib { icons {
|
|
|
306
306
|
aws:work-mail
|
|
307
307
|
aws:work-spaces-family
|
|
308
308
|
aws:x-ray
|
|
309
|
+
azure:abs-member
|
|
310
|
+
azure:active-directory-connect-health
|
|
311
|
+
azure:activity-log
|
|
312
|
+
azure:administrative-units
|
|
313
|
+
azure:advisor
|
|
314
|
+
azure:ai-studio
|
|
315
|
+
azure:aks-automatic
|
|
316
|
+
azure:aks-istio
|
|
317
|
+
azure:alerts
|
|
318
|
+
azure:all-resources
|
|
319
|
+
azure:analysis-services
|
|
320
|
+
azure:anomaly-detector
|
|
321
|
+
azure:api-center
|
|
322
|
+
azure:api-connections
|
|
323
|
+
azure:api-management-services
|
|
324
|
+
azure:api-proxy
|
|
325
|
+
azure:app-compliance-automation
|
|
326
|
+
azure:app-configuration
|
|
327
|
+
azure:app-registrations
|
|
328
|
+
azure:app-service-certificates
|
|
329
|
+
azure:app-service-domains
|
|
330
|
+
azure:app-service-environments
|
|
331
|
+
azure:app-service-plans
|
|
332
|
+
azure:app-services
|
|
333
|
+
azure:app-space
|
|
334
|
+
azure:app-space-component
|
|
335
|
+
azure:applens
|
|
336
|
+
azure:application-gateway-containers
|
|
337
|
+
azure:application-gateways
|
|
338
|
+
azure:application-group
|
|
339
|
+
azure:application-insights
|
|
340
|
+
azure:application-security-groups
|
|
341
|
+
azure:aquila
|
|
342
|
+
azure:arc-data-services
|
|
343
|
+
azure:arc-kubernetes
|
|
344
|
+
azure:arc-machines
|
|
345
|
+
azure:arc-postgre-sql
|
|
346
|
+
azure:arc-sql-managed-instance
|
|
347
|
+
azure:arc-sql-server
|
|
348
|
+
azure:atm-multistack
|
|
349
|
+
azure:auto-scale
|
|
350
|
+
azure:automanaged-vm
|
|
351
|
+
azure:automation-accounts
|
|
352
|
+
azure:availability-sets
|
|
353
|
+
azure:avs-vm
|
|
354
|
+
azure:azure-a
|
|
355
|
+
azure:azure-ad-b2c
|
|
356
|
+
azure:azure-api-for-fhir
|
|
357
|
+
azure:azure-applied-ai-services
|
|
358
|
+
azure:azure-arc
|
|
359
|
+
azure:azure-attestation
|
|
360
|
+
azure:azure-backup-center
|
|
361
|
+
azure:azure-blockchain-service
|
|
362
|
+
azure:azure-center-for-sap
|
|
363
|
+
azure:azure-chaos-studio
|
|
364
|
+
azure:azure-cloud-shell
|
|
365
|
+
azure:azure-communication-services
|
|
366
|
+
azure:azure-communications-gateway
|
|
367
|
+
azure:azure-compute-galleries
|
|
368
|
+
azure:azure-cosmos-db
|
|
369
|
+
azure:azure-data-catalog
|
|
370
|
+
azure:azure-data-explorer-clusters
|
|
371
|
+
azure:azure-database-maria-db-server
|
|
372
|
+
azure:azure-database-migration-services
|
|
373
|
+
azure:azure-database-my-sql-server
|
|
374
|
+
azure:azure-database-postgre-sql-server
|
|
375
|
+
azure:azure-database-postgre-sql-server-group
|
|
376
|
+
azure:azure-databox-gateway
|
|
377
|
+
azure:azure-databricks
|
|
378
|
+
azure:azure-deployment-environments
|
|
379
|
+
azure:azure-dev-ops
|
|
380
|
+
azure:azure-dev-tunnels
|
|
381
|
+
azure:azure-edge-hardware-center
|
|
382
|
+
azure:azure-experimentation-studio
|
|
383
|
+
azure:azure-fileshares
|
|
384
|
+
azure:azure-firewall-manager
|
|
385
|
+
azure:azure-firewall-policy
|
|
386
|
+
azure:azure-hcp-cache
|
|
387
|
+
azure:azure-hpc-workbenches
|
|
388
|
+
azure:azure-hybrid-center
|
|
389
|
+
azure:azure-information-protection
|
|
390
|
+
azure:azure-io-t-operations
|
|
391
|
+
azure:azure-lighthouse
|
|
392
|
+
azure:azure-load-testing
|
|
393
|
+
azure:azure-managed-grafana
|
|
394
|
+
azure:azure-maps-accounts
|
|
395
|
+
azure:azure-media-service
|
|
396
|
+
azure:azure-migrate
|
|
397
|
+
azure:azure-monitor-dashboard
|
|
398
|
+
azure:azure-monitor-pipeline
|
|
399
|
+
azure:azure-monitors-for-sap-solutions
|
|
400
|
+
azure:azure-net-app-files
|
|
401
|
+
azure:azure-network-function-manager
|
|
402
|
+
azure:azure-network-function-manager-functions
|
|
403
|
+
azure:azure-object-understanding
|
|
404
|
+
azure:azure-open-ai
|
|
405
|
+
azure:azure-operator-5g-core
|
|
406
|
+
azure:azure-operator-insights
|
|
407
|
+
azure:azure-operator-nexus
|
|
408
|
+
azure:azure-operator-service-manager
|
|
409
|
+
azure:azure-orbital
|
|
410
|
+
azure:azure-programmable-connectivity
|
|
411
|
+
azure:azure-purview-accounts
|
|
412
|
+
azure:azure-quotas
|
|
413
|
+
azure:azure-red-hat-open-shift
|
|
414
|
+
azure:azure-sentinel
|
|
415
|
+
azure:azure-service-bus
|
|
416
|
+
azure:azure-sphere
|
|
417
|
+
azure:azure-spring-apps
|
|
418
|
+
azure:azure-sql
|
|
419
|
+
azure:azure-sql-edge
|
|
420
|
+
azure:azure-sql-server-stretch-databases
|
|
421
|
+
azure:azure-sql-vm
|
|
422
|
+
azure:azure-stack
|
|
423
|
+
azure:azure-stack-edge
|
|
424
|
+
azure:azure-stack-hci-sizer
|
|
425
|
+
azure:azure-storage-mover
|
|
426
|
+
azure:azure-support-center-blue
|
|
427
|
+
azure:azure-sustainability
|
|
428
|
+
azure:azure-synapse-analytics
|
|
429
|
+
azure:azure-token-service
|
|
430
|
+
azure:azure-video-indexer
|
|
431
|
+
azure:azure-virtual-desktop
|
|
432
|
+
azure:azure-vmware-solution
|
|
433
|
+
azure:azure-workbooks
|
|
434
|
+
azure:azurite
|
|
435
|
+
azure:backlog
|
|
436
|
+
azure:backup-vault
|
|
437
|
+
azure:bare-metal-infrastructure
|
|
438
|
+
azure:bastions
|
|
439
|
+
azure:batch-accounts
|
|
440
|
+
azure:batch-ai
|
|
441
|
+
azure:biz-talk
|
|
442
|
+
azure:blob-block
|
|
443
|
+
azure:blob-page
|
|
444
|
+
azure:blockchain-applications
|
|
445
|
+
azure:blueprints
|
|
446
|
+
azure:bonsai
|
|
447
|
+
azure:bot-services
|
|
448
|
+
azure:branch
|
|
449
|
+
azure:browser
|
|
450
|
+
azure:bug
|
|
451
|
+
azure:builds
|
|
452
|
+
azure:business-process-tracking
|
|
453
|
+
azure:cache
|
|
454
|
+
azure:cache-redis
|
|
455
|
+
azure:capacity
|
|
456
|
+
azure:capacity-reservation-groups
|
|
457
|
+
azure:cdn-profiles
|
|
458
|
+
azure:central-service-instance-for-sap
|
|
459
|
+
azure:ceres
|
|
460
|
+
azure:change-analysis
|
|
461
|
+
azure:client-apps
|
|
462
|
+
azure:cloud-services-classic
|
|
463
|
+
azure:cloud-services-extended-support
|
|
464
|
+
azure:cloud-test
|
|
465
|
+
azure:code
|
|
466
|
+
azure:code-optimization
|
|
467
|
+
azure:cognitive-search
|
|
468
|
+
azure:cognitive-services
|
|
469
|
+
azure:cognitive-services-decisions
|
|
470
|
+
azure:collaborative-service
|
|
471
|
+
azure:commit
|
|
472
|
+
azure:community-images
|
|
473
|
+
azure:compliance
|
|
474
|
+
azure:compliance-center
|
|
475
|
+
azure:compute-fleet
|
|
476
|
+
azure:computer-vision
|
|
477
|
+
azure:conditional-access
|
|
478
|
+
azure:confidential-ledgers
|
|
479
|
+
azure:connected-cache
|
|
480
|
+
azure:connected-vehicle-platform
|
|
481
|
+
azure:connections
|
|
482
|
+
azure:consortium
|
|
483
|
+
azure:container-apps-environments
|
|
484
|
+
azure:container-instances
|
|
485
|
+
azure:container-registries
|
|
486
|
+
azure:container-services-deprecated
|
|
487
|
+
azure:content-moderators
|
|
488
|
+
azure:content-safety
|
|
489
|
+
azure:controls
|
|
490
|
+
azure:controls-horizontal
|
|
491
|
+
azure:cost-alerts
|
|
492
|
+
azure:cost-analysis
|
|
493
|
+
azure:cost-budgets
|
|
494
|
+
azure:cost-export
|
|
495
|
+
azure:cost-management
|
|
496
|
+
azure:cost-management-and-billing
|
|
497
|
+
azure:counter
|
|
498
|
+
azure:cubes
|
|
499
|
+
azure:custom-ip-prefix
|
|
500
|
+
azure:custom-vision
|
|
501
|
+
azure:customer-lockbox-for-microsoft-azure
|
|
502
|
+
azure:dashboard
|
|
503
|
+
azure:dashboard-hub
|
|
504
|
+
azure:data-box
|
|
505
|
+
azure:data-collection-rules
|
|
506
|
+
azure:data-factories
|
|
507
|
+
azure:data-lake-analytics
|
|
508
|
+
azure:data-lake-storage-gen1
|
|
509
|
+
azure:data-lake-store-gen1
|
|
510
|
+
azure:data-share-invitations
|
|
511
|
+
azure:data-shares
|
|
512
|
+
azure:database-instance-for-sap
|
|
513
|
+
azure:ddo-s-protection-plans
|
|
514
|
+
azure:dedicated-hsm
|
|
515
|
+
azure:defender-cm-local-manager
|
|
516
|
+
azure:defender-dcs-controller
|
|
517
|
+
azure:defender-distributer-control-system
|
|
518
|
+
azure:defender-engineering-station
|
|
519
|
+
azure:defender-external-management
|
|
520
|
+
azure:defender-freezer-monitor
|
|
521
|
+
azure:defender-historian
|
|
522
|
+
azure:defender-hmi
|
|
523
|
+
azure:defender-industrial-packaging-system
|
|
524
|
+
azure:defender-industrial-printer
|
|
525
|
+
azure:defender-industrial-robot
|
|
526
|
+
azure:defender-industrial-scale-system
|
|
527
|
+
azure:defender-marquee
|
|
528
|
+
azure:defender-meter
|
|
529
|
+
azure:defender-plc
|
|
530
|
+
azure:defender-pneumatic-device
|
|
531
|
+
azure:defender-programable-board
|
|
532
|
+
azure:defender-relay
|
|
533
|
+
azure:defender-robot-controller
|
|
534
|
+
azure:defender-rtu
|
|
535
|
+
azure:defender-sensor
|
|
536
|
+
azure:defender-slot
|
|
537
|
+
azure:defender-web-guiding-system
|
|
538
|
+
azure:detonation
|
|
539
|
+
azure:dev-console
|
|
540
|
+
azure:dev-ops-starter
|
|
541
|
+
azure:dev-test-labs
|
|
542
|
+
azure:device-compliance
|
|
543
|
+
azure:device-configuration
|
|
544
|
+
azure:device-enrollment
|
|
545
|
+
azure:device-provisioning-services
|
|
546
|
+
azure:device-security-apple
|
|
547
|
+
azure:device-security-google
|
|
548
|
+
azure:device-security-windows
|
|
549
|
+
azure:device-update-io-t-hub
|
|
550
|
+
azure:devices
|
|
551
|
+
azure:diagnostics-settings
|
|
552
|
+
azure:digital-twins
|
|
553
|
+
azure:disk-encryption-sets
|
|
554
|
+
azure:disk-pool
|
|
555
|
+
azure:disks
|
|
556
|
+
azure:disks-classic
|
|
557
|
+
azure:disks-snapshots
|
|
558
|
+
azure:dns-multistack
|
|
559
|
+
azure:dns-private-resolver
|
|
560
|
+
azure:dns-security-policy
|
|
561
|
+
azure:dns-zones
|
|
562
|
+
azure:download
|
|
563
|
+
azure:e-books
|
|
564
|
+
azure:edge-management
|
|
565
|
+
azure:education
|
|
566
|
+
azure:elastic-job-agents
|
|
567
|
+
azure:elastic-san
|
|
568
|
+
azure:endpoint-analytics
|
|
569
|
+
azure:enterprise-applications
|
|
570
|
+
azure:entra-connect
|
|
571
|
+
azure:entra-connect-health
|
|
572
|
+
azure:entra-connect-sync
|
|
573
|
+
azure:entra-domain-services
|
|
574
|
+
azure:entra-global-secure-access
|
|
575
|
+
azure:entra-id-protection
|
|
576
|
+
azure:entra-identity-custom-roles
|
|
577
|
+
azure:entra-identity-licenses
|
|
578
|
+
azure:entra-identity-risky-signins
|
|
579
|
+
azure:entra-identity-risky-users
|
|
580
|
+
azure:entra-identity-roles-and-administrators
|
|
581
|
+
azure:entra-internet-access
|
|
582
|
+
azure:entra-managed-identities
|
|
583
|
+
azure:entra-private-access
|
|
584
|
+
azure:entra-privleged-identity-management
|
|
585
|
+
azure:entra-verified-id
|
|
586
|
+
azure:error
|
|
587
|
+
azure:event-grid-domains
|
|
588
|
+
azure:event-grid-subscriptions
|
|
589
|
+
azure:event-grid-topics
|
|
590
|
+
azure:event-hub-clusters
|
|
591
|
+
azure:event-hubs
|
|
592
|
+
azure:exchange-access
|
|
593
|
+
azure:exchange-on-premises-access
|
|
594
|
+
azure:express-route-circuits
|
|
595
|
+
azure:express-route-direct
|
|
596
|
+
azure:express-route-traffic-collector
|
|
597
|
+
azure:extended-security-updates
|
|
598
|
+
azure:extensions
|
|
599
|
+
azure:external-identities
|
|
600
|
+
azure:face-apis
|
|
601
|
+
azure:feature-previews
|
|
602
|
+
azure:fhir-service
|
|
603
|
+
azure:fiji
|
|
604
|
+
azure:file
|
|
605
|
+
azure:files
|
|
606
|
+
azure:firewalls
|
|
607
|
+
azure:folder-blank
|
|
608
|
+
azure:folder-website
|
|
609
|
+
azure:form-recognizers
|
|
610
|
+
azure:free-services
|
|
611
|
+
azure:front-door-and-cdn-profiles
|
|
612
|
+
azure:ftp
|
|
613
|
+
azure:function-apps
|
|
614
|
+
azure:gear
|
|
615
|
+
azure:genomics
|
|
616
|
+
azure:genomics-accounts
|
|
617
|
+
azure:globe-error
|
|
618
|
+
azure:globe-success
|
|
619
|
+
azure:globe-warning
|
|
620
|
+
azure:groups
|
|
621
|
+
azure:guide
|
|
622
|
+
azure:hd-insight-clusters
|
|
623
|
+
azure:hdi-aks-cluster
|
|
624
|
+
azure:heart
|
|
625
|
+
azure:help-and-support
|
|
626
|
+
azure:host-groups
|
|
627
|
+
azure:host-pools
|
|
628
|
+
azure:hosts
|
|
629
|
+
azure:ic-m-troubleshooting
|
|
630
|
+
azure:identity-governance
|
|
631
|
+
azure:identity-multi-factor-authentication
|
|
632
|
+
azure:identity-secure-score
|
|
633
|
+
azure:image
|
|
634
|
+
azure:image-definitions
|
|
635
|
+
azure:image-templates
|
|
636
|
+
azure:image-versions
|
|
637
|
+
azure:images
|
|
638
|
+
azure:immersive-readers
|
|
639
|
+
azure:import-export-jobs
|
|
640
|
+
azure:industrial-io-t
|
|
641
|
+
azure:information
|
|
642
|
+
azure:infrastructure-backup
|
|
643
|
+
azure:input-output
|
|
644
|
+
azure:instance-pools
|
|
645
|
+
azure:integration-accounts
|
|
646
|
+
azure:integration-environments
|
|
647
|
+
azure:integration-service-environments
|
|
648
|
+
azure:internet-analyzer-profiles
|
|
649
|
+
azure:intune
|
|
650
|
+
azure:intune-app-protection
|
|
651
|
+
azure:intune-for-education
|
|
652
|
+
azure:intune-trends
|
|
653
|
+
azure:io-t-central-applications
|
|
654
|
+
azure:io-t-edge
|
|
655
|
+
azure:io-t-hub
|
|
656
|
+
azure:ip-address-manager
|
|
657
|
+
azure:ip-groups
|
|
658
|
+
azure:journey-hub
|
|
659
|
+
azure:key-vaults
|
|
660
|
+
azure:keys
|
|
661
|
+
azure:kubernetes-fleet-manager
|
|
662
|
+
azure:kubernetes-services
|
|
663
|
+
azure:lab-accounts
|
|
664
|
+
azure:lab-services
|
|
665
|
+
azure:language
|
|
666
|
+
azure:language-understanding
|
|
667
|
+
azure:launch-portal
|
|
668
|
+
azure:learn
|
|
669
|
+
azure:load-balancer-hub
|
|
670
|
+
azure:load-balancers
|
|
671
|
+
azure:load-test
|
|
672
|
+
azure:load-testing
|
|
673
|
+
azure:local-network-gateways
|
|
674
|
+
azure:location
|
|
675
|
+
azure:log-analytics-query-pack
|
|
676
|
+
azure:log-analytics-workspaces
|
|
677
|
+
azure:log-streaming
|
|
678
|
+
azure:logic-apps
|
|
679
|
+
azure:logic-apps-custom-connector
|
|
680
|
+
azure:machine-learning
|
|
681
|
+
azure:machine-learning-studio-classic-web-services
|
|
682
|
+
azure:machine-learning-studio-web-service-plans
|
|
683
|
+
azure:machine-learning-studio-workspaces
|
|
684
|
+
azure:machines-azure-arc
|
|
685
|
+
azure:maintenance-configuration
|
|
686
|
+
azure:managed-applications-center
|
|
687
|
+
azure:managed-database
|
|
688
|
+
azure:managed-desktop
|
|
689
|
+
azure:managed-dev-ops-pools
|
|
690
|
+
azure:managed-file-shares
|
|
691
|
+
azure:managed-identities
|
|
692
|
+
azure:managed-instance-apache-cassandra
|
|
693
|
+
azure:managed-service-fabric
|
|
694
|
+
azure:management-groups
|
|
695
|
+
azure:management-portal
|
|
696
|
+
azure:marketplace
|
|
697
|
+
azure:marketplace-management
|
|
698
|
+
azure:med-tech-service
|
|
699
|
+
azure:media
|
|
700
|
+
azure:media-file
|
|
701
|
+
azure:mesh-applications
|
|
702
|
+
azure:metrics
|
|
703
|
+
azure:metrics-advisor
|
|
704
|
+
azure:microsoft-defender-easm
|
|
705
|
+
azure:microsoft-defender-for-cloud
|
|
706
|
+
azure:microsoft-defender-for-io-t
|
|
707
|
+
azure:microsoft-dev-box
|
|
708
|
+
azure:mindaro
|
|
709
|
+
azure:mission-landing-zone
|
|
710
|
+
azure:mobile
|
|
711
|
+
azure:mobile-engagement
|
|
712
|
+
azure:mobile-networks
|
|
713
|
+
azure:modular-data-center
|
|
714
|
+
azure:module
|
|
715
|
+
azure:monitor
|
|
716
|
+
azure:monitor-health-models
|
|
717
|
+
azure:multi-tenancy
|
|
718
|
+
azure:multifactor-authentication
|
|
719
|
+
azure:my-customers
|
|
720
|
+
azure:nat
|
|
721
|
+
azure:network-interfaces
|
|
722
|
+
azure:network-managers
|
|
723
|
+
azure:network-security-groups
|
|
724
|
+
azure:network-security-perimeters
|
|
725
|
+
azure:network-watcher
|
|
726
|
+
azure:notification-hub-namespaces
|
|
727
|
+
azure:notification-hubs
|
|
728
|
+
azure:offers
|
|
729
|
+
azure:on-premises-data-gateways
|
|
730
|
+
azure:open-supply-chain-platform
|
|
731
|
+
azure:operation-log-classic
|
|
732
|
+
azure:oracle-database
|
|
733
|
+
azure:os-images-classic
|
|
734
|
+
azure:osconfig
|
|
735
|
+
azure:outbound-connection
|
|
736
|
+
azure:partner-namespace
|
|
737
|
+
azure:partner-registration
|
|
738
|
+
azure:partner-topic
|
|
739
|
+
azure:peering-service
|
|
740
|
+
azure:peerings
|
|
741
|
+
azure:personalizers
|
|
742
|
+
azure:plans
|
|
743
|
+
azure:policy
|
|
744
|
+
azure:power
|
|
745
|
+
azure:power-bi-embedded
|
|
746
|
+
azure:power-platform
|
|
747
|
+
azure:power-up
|
|
748
|
+
azure:powershell
|
|
749
|
+
azure:preview-features
|
|
750
|
+
azure:private-endpoints
|
|
751
|
+
azure:private-link
|
|
752
|
+
azure:private-link-service
|
|
753
|
+
azure:private-link-services
|
|
754
|
+
azure:process-explorer
|
|
755
|
+
azure:production-ready-database
|
|
756
|
+
azure:proximity-placement-groups
|
|
757
|
+
azure:public-ip-addresses
|
|
758
|
+
azure:public-ip-addresses-classic
|
|
759
|
+
azure:public-ip-prefixes
|
|
760
|
+
azure:qn-a-makers
|
|
761
|
+
azure:quickstart-center
|
|
762
|
+
azure:recent
|
|
763
|
+
azure:recovery-services-vaults
|
|
764
|
+
azure:region-management
|
|
765
|
+
azure:relays
|
|
766
|
+
azure:remote-rendering
|
|
767
|
+
azure:reservations
|
|
768
|
+
azure:reserved-capacity
|
|
769
|
+
azure:reserved-ip-addresses-classic
|
|
770
|
+
azure:resource-explorer
|
|
771
|
+
azure:resource-graph-explorer
|
|
772
|
+
azure:resource-group-list
|
|
773
|
+
azure:resource-groups
|
|
774
|
+
azure:resource-guard
|
|
775
|
+
azure:resource-linked
|
|
776
|
+
azure:resource-management-private-link
|
|
777
|
+
azure:resource-mover
|
|
778
|
+
azure:resources-provider
|
|
779
|
+
azure:restore-points
|
|
780
|
+
azure:restore-points-collections
|
|
781
|
+
azure:route-filters
|
|
782
|
+
azure:route-tables
|
|
783
|
+
azure:rtos
|
|
784
|
+
azure:savings-plans
|
|
785
|
+
azure:scheduler
|
|
786
|
+
azure:scheduler-job-collections
|
|
787
|
+
azure:scvmm-management-servers
|
|
788
|
+
azure:search
|
|
789
|
+
azure:search-grid
|
|
790
|
+
azure:security
|
|
791
|
+
azure:security-baselines
|
|
792
|
+
azure:send-grid-accounts
|
|
793
|
+
azure:server-farm
|
|
794
|
+
azure:serverless-search
|
|
795
|
+
azure:service-catalog-mad
|
|
796
|
+
azure:service-endpoint-policies
|
|
797
|
+
azure:service-fabric-clusters
|
|
798
|
+
azure:service-health
|
|
799
|
+
azure:service-providers
|
|
800
|
+
azure:shared-image-galleries
|
|
801
|
+
azure:signal-r
|
|
802
|
+
azure:software-as-a-service
|
|
803
|
+
azure:software-updates
|
|
804
|
+
azure:solutions
|
|
805
|
+
azure:sonic-dash
|
|
806
|
+
azure:spatial-anchor-accounts
|
|
807
|
+
azure:speech-services
|
|
808
|
+
azure:spot-vm
|
|
809
|
+
azure:spot-vmss
|
|
810
|
+
azure:sql-data-warehouses
|
|
811
|
+
azure:sql-database
|
|
812
|
+
azure:sql-elastic-pools
|
|
813
|
+
azure:sql-managed-instance
|
|
814
|
+
azure:sql-server
|
|
815
|
+
azure:sql-server-registries
|
|
816
|
+
azure:ssd
|
|
817
|
+
azure:ssh-keys
|
|
818
|
+
azure:ssis-lift-and-shift-ir
|
|
819
|
+
azure:stack-hci-premium
|
|
820
|
+
azure:static-apps
|
|
821
|
+
azure:stor-simple-data-managers
|
|
822
|
+
azure:stor-simple-device-managers
|
|
823
|
+
azure:storage-accounts
|
|
824
|
+
azure:storage-accounts-classic
|
|
825
|
+
azure:storage-actions
|
|
826
|
+
azure:storage-azure-files
|
|
827
|
+
azure:storage-container
|
|
828
|
+
azure:storage-explorer
|
|
829
|
+
azure:storage-functions
|
|
830
|
+
azure:storage-queue
|
|
831
|
+
azure:storage-sync-services
|
|
832
|
+
azure:stream-analytics-jobs
|
|
833
|
+
azure:subnet
|
|
834
|
+
azure:subscriptions
|
|
835
|
+
azure:system-topic
|
|
836
|
+
azure:table
|
|
837
|
+
azure:tag
|
|
838
|
+
azure:tags
|
|
839
|
+
azure:targets-management
|
|
840
|
+
azure:template-specs
|
|
841
|
+
azure:templates
|
|
842
|
+
azure:tenant-properties
|
|
843
|
+
azure:tenant-status
|
|
844
|
+
azure:test-base
|
|
845
|
+
azure:tfs-vc-repository
|
|
846
|
+
azure:time-series-data-sets
|
|
847
|
+
azure:time-series-insights-access-policies
|
|
848
|
+
azure:time-series-insights-environments
|
|
849
|
+
azure:time-series-insights-event-sources
|
|
850
|
+
azure:toolbox
|
|
851
|
+
azure:traffic-manager-profiles
|
|
852
|
+
azure:translator-text
|
|
853
|
+
azure:troubleshoot
|
|
854
|
+
azure:universal-print
|
|
855
|
+
azure:update-management-center
|
|
856
|
+
azure:updates
|
|
857
|
+
azure:user-privacy
|
|
858
|
+
azure:user-settings
|
|
859
|
+
azure:user-subscriptions
|
|
860
|
+
azure:users
|
|
861
|
+
azure:verifiable-credentials
|
|
862
|
+
azure:verification-as-a-service
|
|
863
|
+
azure:versions
|
|
864
|
+
azure:video-analyzers
|
|
865
|
+
azure:virtual-clusters
|
|
866
|
+
azure:virtual-enclaves
|
|
867
|
+
azure:virtual-instance-for-sap
|
|
868
|
+
azure:virtual-machine
|
|
869
|
+
azure:virtual-machines-classic
|
|
870
|
+
azure:virtual-network-gateways
|
|
871
|
+
azure:virtual-networks
|
|
872
|
+
azure:virtual-networks-classic
|
|
873
|
+
azure:virtual-router
|
|
874
|
+
azure:virtual-visits-builder
|
|
875
|
+
azure:virtual-wan-hub
|
|
876
|
+
azure:virtual-wans
|
|
877
|
+
azure:vm-app-definitions
|
|
878
|
+
azure:vm-app-versions
|
|
879
|
+
azure:vm-image-version
|
|
880
|
+
azure:vm-images-classic
|
|
881
|
+
azure:vm-scale-sets
|
|
882
|
+
azure:wac
|
|
883
|
+
azure:wac-installer
|
|
884
|
+
azure:web-app-database
|
|
885
|
+
azure:web-application-firewall-policies-waf
|
|
886
|
+
azure:web-jobs
|
|
887
|
+
azure:web-slots
|
|
888
|
+
azure:web-test
|
|
889
|
+
azure:website-power
|
|
890
|
+
azure:website-staging
|
|
891
|
+
azure:windows-notification-services
|
|
892
|
+
azure:windows10-core-services
|
|
893
|
+
azure:workbooks
|
|
894
|
+
azure:worker-container-app
|
|
895
|
+
azure:workflow
|
|
896
|
+
azure:workspace-gateway
|
|
897
|
+
azure:workspaces
|
|
309
898
|
gcp:access-context-manager
|
|
310
899
|
gcp:administration
|
|
311
900
|
gcp:advanced-agent-modeling
|
package/src/like-c4.langium
CHANGED
|
@@ -439,7 +439,10 @@ ViewRuleStyle:
|
|
|
439
439
|
'}';
|
|
440
440
|
|
|
441
441
|
ViewRuleAutoLayout:
|
|
442
|
-
'autoLayout' direction=ViewLayoutDirection
|
|
442
|
+
'autoLayout' direction=ViewLayoutDirection (
|
|
443
|
+
rankSep=Number (
|
|
444
|
+
nodeSep=Number)?
|
|
445
|
+
)?;
|
|
443
446
|
|
|
444
447
|
NotationProperty:
|
|
445
448
|
key='notation' ':'? value=String ';'?
|
|
@@ -547,7 +550,7 @@ ElementShape returns string:
|
|
|
547
550
|
'rectangle' | 'person' | 'browser' | 'mobile' | 'cylinder' | 'storage' | 'queue';
|
|
548
551
|
|
|
549
552
|
CustomColorValue returns string:
|
|
550
|
-
Hash (Id | Hex);
|
|
553
|
+
Hash (Id | Hex | Number);
|
|
551
554
|
|
|
552
555
|
IconId returns string:
|
|
553
556
|
LIB_ICON;
|
|
@@ -599,7 +602,7 @@ hidden terminal NL: /[\r\n]+/;
|
|
|
599
602
|
//terminal LineStartWithDash: /(?<=([\r?\n][^\S\r\n]*))-/;
|
|
600
603
|
|
|
601
604
|
// LibIcons
|
|
602
|
-
terminal LIB_ICON: /(aws|gcp|tech):[-\w]*/;
|
|
605
|
+
terminal LIB_ICON: /(aws|azure|gcp|tech):[-\w]*/;
|
|
603
606
|
|
|
604
607
|
terminal URI_WITH_SCHEMA: /\w+:\/\/\S+/;
|
|
605
608
|
terminal URI_RELATIVE: /\.{0,2}\/[^\/]\S+/;
|
|
@@ -620,4 +623,5 @@ terminal String: /"[^"]*"|'[^']*'/;
|
|
|
620
623
|
// terminal TagId: HASH LETTER (LETTER | DIGIT | UNDERSCORE | DASH)*;
|
|
621
624
|
// terminal IdTerminal: (LETTER | UNDERSCORE+ (LETTER | DIGIT)) (LETTER | DIGIT | UNDERSCORE | DASH)*;
|
|
622
625
|
terminal IdTerminal: /[_]*[a-zA-Z][-\w]*/;
|
|
623
|
-
terminal
|
|
626
|
+
terminal Number returns number: /\b\d+\b/;
|
|
627
|
+
terminal Hex: /\b[a-zA-Z0-9]+\b/;
|
|
@@ -1,7 +1,54 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type GrammarAST, type MaybePromise } from 'langium'
|
|
2
|
+
import {
|
|
3
|
+
type CompletionAcceptor,
|
|
4
|
+
type CompletionContext,
|
|
5
|
+
type CompletionProviderOptions,
|
|
6
|
+
DefaultCompletionProvider
|
|
7
|
+
} from 'langium/lsp'
|
|
8
|
+
import { CompletionItemKind, InsertTextFormat } from 'vscode-languageserver-types'
|
|
2
9
|
|
|
3
10
|
export class LikeC4CompletionProvider extends DefaultCompletionProvider {
|
|
4
11
|
override readonly completionOptions = {
|
|
5
12
|
triggerCharacters: ['.']
|
|
6
13
|
} satisfies CompletionProviderOptions
|
|
14
|
+
|
|
15
|
+
protected override completionForKeyword(
|
|
16
|
+
context: CompletionContext,
|
|
17
|
+
keyword: GrammarAST.Keyword,
|
|
18
|
+
acceptor: CompletionAcceptor
|
|
19
|
+
): MaybePromise<void> {
|
|
20
|
+
if (!this.filterKeyword(context, keyword)) {
|
|
21
|
+
return
|
|
22
|
+
}
|
|
23
|
+
if (['views', 'specification', 'model'].includes(keyword.value)) {
|
|
24
|
+
return acceptor(context, {
|
|
25
|
+
label: keyword.value,
|
|
26
|
+
detail: `Insert ${keyword} block`,
|
|
27
|
+
kind: CompletionItemKind.Module,
|
|
28
|
+
insertTextFormat: InsertTextFormat.Snippet,
|
|
29
|
+
insertText: `${keyword} {\n\t$0\n}`
|
|
30
|
+
})
|
|
31
|
+
}
|
|
32
|
+
if (keyword.value === 'dynamic') {
|
|
33
|
+
return acceptor(context, {
|
|
34
|
+
label: keyword.value,
|
|
35
|
+
detail: `Insert dynamic view`,
|
|
36
|
+
kind: CompletionItemKind.Class,
|
|
37
|
+
insertTextFormat: InsertTextFormat.Snippet,
|
|
38
|
+
insertText: [
|
|
39
|
+
'dynamic view ${1:view_${TM_FILENAME_BASE}_${CURRENT_SECOND}} {',
|
|
40
|
+
'\ttitle \'${2:Untitled}\'',
|
|
41
|
+
'\t',
|
|
42
|
+
'\t$0',
|
|
43
|
+
'}'
|
|
44
|
+
].join('\n')
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
acceptor(context, {
|
|
48
|
+
label: keyword.value,
|
|
49
|
+
kind: this.getKeywordCompletionItemKind(keyword),
|
|
50
|
+
detail: 'Keyword',
|
|
51
|
+
sortText: '1'
|
|
52
|
+
})
|
|
53
|
+
}
|
|
7
54
|
}
|
|
@@ -608,9 +608,7 @@ export class LikeC4ModelParser {
|
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
if (ast.isViewRuleAutoLayout(astRule)) {
|
|
611
|
-
return
|
|
612
|
-
autoLayout: toAutoLayout(astRule.direction)
|
|
613
|
-
}
|
|
611
|
+
return toAutoLayout(astRule)
|
|
614
612
|
}
|
|
615
613
|
nonexhaustive(astRule)
|
|
616
614
|
}
|
|
@@ -849,9 +847,7 @@ export class LikeC4ModelParser {
|
|
|
849
847
|
return acc
|
|
850
848
|
}
|
|
851
849
|
if (ast.isViewRuleAutoLayout(n)) {
|
|
852
|
-
acc.push(
|
|
853
|
-
autoLayout: toAutoLayout(n.direction)
|
|
854
|
-
})
|
|
850
|
+
acc.push(toAutoLayout(n))
|
|
855
851
|
return acc
|
|
856
852
|
}
|
|
857
853
|
nonexhaustive(n)
|
|
@@ -175,7 +175,11 @@ export class ComputeCtx {
|
|
|
175
175
|
|
|
176
176
|
return calcViewLayoutHash({
|
|
177
177
|
...view,
|
|
178
|
-
autoLayout:
|
|
178
|
+
autoLayout: {
|
|
179
|
+
direction: autoLayoutRule?.direction ?? 'TB',
|
|
180
|
+
...(autoLayoutRule?.nodeSep && { nodeSep: autoLayoutRule.nodeSep }),
|
|
181
|
+
...(autoLayoutRule?.rankSep && { rankSep: autoLayoutRule.rankSep }),
|
|
182
|
+
},
|
|
179
183
|
nodes: map(nodes, omit(['notation'])),
|
|
180
184
|
edges: applyCustomRelationProperties(rules, nodes, sortedEdges),
|
|
181
185
|
...(elementNotations.length > 0 && {
|