ace-linters 1.2.0 → 1.2.2

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.
@@ -20830,7 +20830,7 @@ class LanguageProvider {
20830
20830
  messageController = new MessageController(worker);
20831
20831
  return new LanguageProvider(messageController, options);
20832
20832
  }
20833
- static fromCdn(source, options) {
20833
+ static fromCdn(source, options, includeDefaultLinters) {
20834
20834
  let messageController;
20835
20835
  let worker;
20836
20836
  if (typeof source === "string") {
@@ -20840,15 +20840,16 @@ class LanguageProvider {
20840
20840
  if (source[source.length - 1] == "/") {
20841
20841
  source = source.substring(0, source.length - 1);
20842
20842
  }
20843
- worker = createWorker(source);
20843
+ worker = createWorker(source, includeDefaultLinters);
20844
20844
  } else {
20845
20845
  if (source.includeDefaultLinters == undefined) {
20846
20846
  source.includeDefaultLinters = true;
20847
20847
  }
20848
+ var _source_includeDefaultLinters;
20848
20849
  worker = createWorker({
20849
20850
  services: source.services,
20850
20851
  serviceManagerCdn: source.serviceManagerCdn
20851
- }, source.includeDefaultLinters);
20852
+ }, (_source_includeDefaultLinters = source.includeDefaultLinters) !== null && _source_includeDefaultLinters !== void 0 ? _source_includeDefaultLinters : includeDefaultLinters);
20852
20853
  }
20853
20854
  messageController = new MessageController(worker);
20854
20855
  return new LanguageProvider(messageController, options);
@@ -20424,7 +20424,7 @@ class LanguageProvider {
20424
20424
  messageController = new MessageController(worker);
20425
20425
  return new LanguageProvider(messageController, options);
20426
20426
  }
20427
- static fromCdn(source, options) {
20427
+ static fromCdn(source, options, includeDefaultLinters) {
20428
20428
  let messageController;
20429
20429
  let worker;
20430
20430
  if (typeof source === "string") {
@@ -20434,15 +20434,16 @@ class LanguageProvider {
20434
20434
  if (source[source.length - 1] == "/") {
20435
20435
  source = source.substring(0, source.length - 1);
20436
20436
  }
20437
- worker = createWorker(source);
20437
+ worker = createWorker(source, includeDefaultLinters);
20438
20438
  } else {
20439
20439
  if (source.includeDefaultLinters == undefined) {
20440
20440
  source.includeDefaultLinters = true;
20441
20441
  }
20442
+ var _source_includeDefaultLinters;
20442
20443
  worker = createWorker({
20443
20444
  services: source.services,
20444
20445
  serviceManagerCdn: source.serviceManagerCdn
20445
- }, source.includeDefaultLinters);
20446
+ }, (_source_includeDefaultLinters = source.includeDefaultLinters) !== null && _source_includeDefaultLinters !== void 0 ? _source_includeDefaultLinters : includeDefaultLinters);
20446
20447
  }
20447
20448
  messageController = new MessageController(worker);
20448
20449
  return new LanguageProvider(messageController, options);
@@ -549,6 +549,73 @@ class BaseService {
549
549
  _define_property(this, "globalOptions", {});
550
550
  _define_property(this, "serviceData", void 0);
551
551
  _define_property(this, "serviceCapabilities", {});
552
+ _define_property(this, "clientCapabilities", {
553
+ textDocument: {
554
+ hover: {
555
+ dynamicRegistration: true,
556
+ contentFormat: [
557
+ 'markdown',
558
+ 'plaintext'
559
+ ]
560
+ },
561
+ synchronization: {
562
+ dynamicRegistration: true,
563
+ willSave: false,
564
+ didSave: false,
565
+ willSaveWaitUntil: false
566
+ },
567
+ formatting: {
568
+ dynamicRegistration: true
569
+ },
570
+ completion: {
571
+ dynamicRegistration: true,
572
+ completionItem: {
573
+ snippetSupport: true,
574
+ commitCharactersSupport: false,
575
+ documentationFormat: [
576
+ 'markdown',
577
+ 'plaintext'
578
+ ],
579
+ deprecatedSupport: false,
580
+ preselectSupport: false
581
+ },
582
+ contextSupport: false
583
+ },
584
+ signatureHelp: {
585
+ signatureInformation: {
586
+ documentationFormat: [
587
+ 'markdown',
588
+ 'plaintext'
589
+ ],
590
+ activeParameterSupport: true
591
+ }
592
+ },
593
+ documentHighlight: {
594
+ dynamicRegistration: true
595
+ },
596
+ semanticTokens: {
597
+ multilineTokenSupport: false,
598
+ overlappingTokenSupport: false,
599
+ tokenTypes: [],
600
+ tokenModifiers: [],
601
+ formats: [
602
+ "relative"
603
+ ],
604
+ requests: {
605
+ full: {
606
+ delta: false
607
+ },
608
+ range: true
609
+ },
610
+ augmentsSyntaxTokens: true
611
+ }
612
+ },
613
+ workspace: {
614
+ didChangeConfiguration: {
615
+ dynamicRegistration: true
616
+ }
617
+ }
618
+ });
552
619
  this.mode = mode;
553
620
  }
554
621
  }
@@ -3948,6 +3948,73 @@ class BaseService {
3948
3948
  _define_property(this, "globalOptions", {});
3949
3949
  _define_property(this, "serviceData", void 0);
3950
3950
  _define_property(this, "serviceCapabilities", {});
3951
+ _define_property(this, "clientCapabilities", {
3952
+ textDocument: {
3953
+ hover: {
3954
+ dynamicRegistration: true,
3955
+ contentFormat: [
3956
+ 'markdown',
3957
+ 'plaintext'
3958
+ ]
3959
+ },
3960
+ synchronization: {
3961
+ dynamicRegistration: true,
3962
+ willSave: false,
3963
+ didSave: false,
3964
+ willSaveWaitUntil: false
3965
+ },
3966
+ formatting: {
3967
+ dynamicRegistration: true
3968
+ },
3969
+ completion: {
3970
+ dynamicRegistration: true,
3971
+ completionItem: {
3972
+ snippetSupport: true,
3973
+ commitCharactersSupport: false,
3974
+ documentationFormat: [
3975
+ 'markdown',
3976
+ 'plaintext'
3977
+ ],
3978
+ deprecatedSupport: false,
3979
+ preselectSupport: false
3980
+ },
3981
+ contextSupport: false
3982
+ },
3983
+ signatureHelp: {
3984
+ signatureInformation: {
3985
+ documentationFormat: [
3986
+ 'markdown',
3987
+ 'plaintext'
3988
+ ],
3989
+ activeParameterSupport: true
3990
+ }
3991
+ },
3992
+ documentHighlight: {
3993
+ dynamicRegistration: true
3994
+ },
3995
+ semanticTokens: {
3996
+ multilineTokenSupport: false,
3997
+ overlappingTokenSupport: false,
3998
+ tokenTypes: [],
3999
+ tokenModifiers: [],
4000
+ formats: [
4001
+ "relative"
4002
+ ],
4003
+ requests: {
4004
+ full: {
4005
+ delta: false
4006
+ },
4007
+ range: true
4008
+ },
4009
+ augmentsSyntaxTokens: true
4010
+ }
4011
+ },
4012
+ workspace: {
4013
+ didChangeConfiguration: {
4014
+ dynamicRegistration: true
4015
+ }
4016
+ }
4017
+ });
3951
4018
  this.mode = mode;
3952
4019
  }
3953
4020
  }
@@ -5776,6 +5776,73 @@ class BaseService {
5776
5776
  _define_property(this, "globalOptions", {});
5777
5777
  _define_property(this, "serviceData", void 0);
5778
5778
  _define_property(this, "serviceCapabilities", {});
5779
+ _define_property(this, "clientCapabilities", {
5780
+ textDocument: {
5781
+ hover: {
5782
+ dynamicRegistration: true,
5783
+ contentFormat: [
5784
+ 'markdown',
5785
+ 'plaintext'
5786
+ ]
5787
+ },
5788
+ synchronization: {
5789
+ dynamicRegistration: true,
5790
+ willSave: false,
5791
+ didSave: false,
5792
+ willSaveWaitUntil: false
5793
+ },
5794
+ formatting: {
5795
+ dynamicRegistration: true
5796
+ },
5797
+ completion: {
5798
+ dynamicRegistration: true,
5799
+ completionItem: {
5800
+ snippetSupport: true,
5801
+ commitCharactersSupport: false,
5802
+ documentationFormat: [
5803
+ 'markdown',
5804
+ 'plaintext'
5805
+ ],
5806
+ deprecatedSupport: false,
5807
+ preselectSupport: false
5808
+ },
5809
+ contextSupport: false
5810
+ },
5811
+ signatureHelp: {
5812
+ signatureInformation: {
5813
+ documentationFormat: [
5814
+ 'markdown',
5815
+ 'plaintext'
5816
+ ],
5817
+ activeParameterSupport: true
5818
+ }
5819
+ },
5820
+ documentHighlight: {
5821
+ dynamicRegistration: true
5822
+ },
5823
+ semanticTokens: {
5824
+ multilineTokenSupport: false,
5825
+ overlappingTokenSupport: false,
5826
+ tokenTypes: [],
5827
+ tokenModifiers: [],
5828
+ formats: [
5829
+ "relative"
5830
+ ],
5831
+ requests: {
5832
+ full: {
5833
+ delta: false
5834
+ },
5835
+ range: true
5836
+ },
5837
+ augmentsSyntaxTokens: true
5838
+ }
5839
+ },
5840
+ workspace: {
5841
+ didChangeConfiguration: {
5842
+ dynamicRegistration: true
5843
+ }
5844
+ }
5845
+ });
5779
5846
  this.mode = mode;
5780
5847
  }
5781
5848
  }
@@ -3948,6 +3948,73 @@ class BaseService {
3948
3948
  _define_property(this, "globalOptions", {});
3949
3949
  _define_property(this, "serviceData", void 0);
3950
3950
  _define_property(this, "serviceCapabilities", {});
3951
+ _define_property(this, "clientCapabilities", {
3952
+ textDocument: {
3953
+ hover: {
3954
+ dynamicRegistration: true,
3955
+ contentFormat: [
3956
+ 'markdown',
3957
+ 'plaintext'
3958
+ ]
3959
+ },
3960
+ synchronization: {
3961
+ dynamicRegistration: true,
3962
+ willSave: false,
3963
+ didSave: false,
3964
+ willSaveWaitUntil: false
3965
+ },
3966
+ formatting: {
3967
+ dynamicRegistration: true
3968
+ },
3969
+ completion: {
3970
+ dynamicRegistration: true,
3971
+ completionItem: {
3972
+ snippetSupport: true,
3973
+ commitCharactersSupport: false,
3974
+ documentationFormat: [
3975
+ 'markdown',
3976
+ 'plaintext'
3977
+ ],
3978
+ deprecatedSupport: false,
3979
+ preselectSupport: false
3980
+ },
3981
+ contextSupport: false
3982
+ },
3983
+ signatureHelp: {
3984
+ signatureInformation: {
3985
+ documentationFormat: [
3986
+ 'markdown',
3987
+ 'plaintext'
3988
+ ],
3989
+ activeParameterSupport: true
3990
+ }
3991
+ },
3992
+ documentHighlight: {
3993
+ dynamicRegistration: true
3994
+ },
3995
+ semanticTokens: {
3996
+ multilineTokenSupport: false,
3997
+ overlappingTokenSupport: false,
3998
+ tokenTypes: [],
3999
+ tokenModifiers: [],
4000
+ formats: [
4001
+ "relative"
4002
+ ],
4003
+ requests: {
4004
+ full: {
4005
+ delta: false
4006
+ },
4007
+ range: true
4008
+ },
4009
+ augmentsSyntaxTokens: true
4010
+ }
4011
+ },
4012
+ workspace: {
4013
+ didChangeConfiguration: {
4014
+ dynamicRegistration: true
4015
+ }
4016
+ }
4017
+ });
3951
4018
  this.mode = mode;
3952
4019
  }
3953
4020
  }
@@ -104982,7 +105049,7 @@ function toDiagnostics(diagnostics, filterErrors) {
104982
105049
  if (!diagnostics) {
104983
105050
  return [];
104984
105051
  }
104985
- return CommonConverter.excludeByErrorMessage(diagnostics).map((error)=>toDiagnostic(error, filterErrors));
105052
+ return CommonConverter.excludeByErrorMessage(diagnostics, filterErrors.errorMessagesToIgnore).map((error)=>toDiagnostic(error, filterErrors));
104986
105053
  }
104987
105054
 
104988
105055
  ;// CONCATENATED MODULE: ./src/services/javascript/javascript-service.ts
@@ -3948,6 +3948,73 @@ class BaseService {
3948
3948
  _define_property(this, "globalOptions", {});
3949
3949
  _define_property(this, "serviceData", void 0);
3950
3950
  _define_property(this, "serviceCapabilities", {});
3951
+ _define_property(this, "clientCapabilities", {
3952
+ textDocument: {
3953
+ hover: {
3954
+ dynamicRegistration: true,
3955
+ contentFormat: [
3956
+ 'markdown',
3957
+ 'plaintext'
3958
+ ]
3959
+ },
3960
+ synchronization: {
3961
+ dynamicRegistration: true,
3962
+ willSave: false,
3963
+ didSave: false,
3964
+ willSaveWaitUntil: false
3965
+ },
3966
+ formatting: {
3967
+ dynamicRegistration: true
3968
+ },
3969
+ completion: {
3970
+ dynamicRegistration: true,
3971
+ completionItem: {
3972
+ snippetSupport: true,
3973
+ commitCharactersSupport: false,
3974
+ documentationFormat: [
3975
+ 'markdown',
3976
+ 'plaintext'
3977
+ ],
3978
+ deprecatedSupport: false,
3979
+ preselectSupport: false
3980
+ },
3981
+ contextSupport: false
3982
+ },
3983
+ signatureHelp: {
3984
+ signatureInformation: {
3985
+ documentationFormat: [
3986
+ 'markdown',
3987
+ 'plaintext'
3988
+ ],
3989
+ activeParameterSupport: true
3990
+ }
3991
+ },
3992
+ documentHighlight: {
3993
+ dynamicRegistration: true
3994
+ },
3995
+ semanticTokens: {
3996
+ multilineTokenSupport: false,
3997
+ overlappingTokenSupport: false,
3998
+ tokenTypes: [],
3999
+ tokenModifiers: [],
4000
+ formats: [
4001
+ "relative"
4002
+ ],
4003
+ requests: {
4004
+ full: {
4005
+ delta: false
4006
+ },
4007
+ range: true
4008
+ },
4009
+ augmentsSyntaxTokens: true
4010
+ }
4011
+ },
4012
+ workspace: {
4013
+ didChangeConfiguration: {
4014
+ dynamicRegistration: true
4015
+ }
4016
+ }
4017
+ });
3951
4018
  this.mode = mode;
3952
4019
  }
3953
4020
  }
@@ -3948,6 +3948,73 @@ class BaseService {
3948
3948
  _define_property(this, "globalOptions", {});
3949
3949
  _define_property(this, "serviceData", void 0);
3950
3950
  _define_property(this, "serviceCapabilities", {});
3951
+ _define_property(this, "clientCapabilities", {
3952
+ textDocument: {
3953
+ hover: {
3954
+ dynamicRegistration: true,
3955
+ contentFormat: [
3956
+ 'markdown',
3957
+ 'plaintext'
3958
+ ]
3959
+ },
3960
+ synchronization: {
3961
+ dynamicRegistration: true,
3962
+ willSave: false,
3963
+ didSave: false,
3964
+ willSaveWaitUntil: false
3965
+ },
3966
+ formatting: {
3967
+ dynamicRegistration: true
3968
+ },
3969
+ completion: {
3970
+ dynamicRegistration: true,
3971
+ completionItem: {
3972
+ snippetSupport: true,
3973
+ commitCharactersSupport: false,
3974
+ documentationFormat: [
3975
+ 'markdown',
3976
+ 'plaintext'
3977
+ ],
3978
+ deprecatedSupport: false,
3979
+ preselectSupport: false
3980
+ },
3981
+ contextSupport: false
3982
+ },
3983
+ signatureHelp: {
3984
+ signatureInformation: {
3985
+ documentationFormat: [
3986
+ 'markdown',
3987
+ 'plaintext'
3988
+ ],
3989
+ activeParameterSupport: true
3990
+ }
3991
+ },
3992
+ documentHighlight: {
3993
+ dynamicRegistration: true
3994
+ },
3995
+ semanticTokens: {
3996
+ multilineTokenSupport: false,
3997
+ overlappingTokenSupport: false,
3998
+ tokenTypes: [],
3999
+ tokenModifiers: [],
4000
+ formats: [
4001
+ "relative"
4002
+ ],
4003
+ requests: {
4004
+ full: {
4005
+ delta: false
4006
+ },
4007
+ range: true
4008
+ },
4009
+ augmentsSyntaxTokens: true
4010
+ }
4011
+ },
4012
+ workspace: {
4013
+ didChangeConfiguration: {
4014
+ dynamicRegistration: true
4015
+ }
4016
+ }
4017
+ });
3951
4018
  this.mode = mode;
3952
4019
  }
3953
4020
  }
@@ -17396,73 +17463,6 @@ class LanguageClient extends base_service.BaseService {
17396
17463
  language_client_define_property(this, "socket", void 0);
17397
17464
  language_client_define_property(this, "connection", void 0);
17398
17465
  language_client_define_property(this, "requestsQueue", []);
17399
- language_client_define_property(this, "clientCapabilities", {
17400
- textDocument: {
17401
- hover: {
17402
- dynamicRegistration: true,
17403
- contentFormat: [
17404
- 'markdown',
17405
- 'plaintext'
17406
- ]
17407
- },
17408
- synchronization: {
17409
- dynamicRegistration: true,
17410
- willSave: false,
17411
- didSave: false,
17412
- willSaveWaitUntil: false
17413
- },
17414
- formatting: {
17415
- dynamicRegistration: true
17416
- },
17417
- completion: {
17418
- dynamicRegistration: true,
17419
- completionItem: {
17420
- snippetSupport: true,
17421
- commitCharactersSupport: false,
17422
- documentationFormat: [
17423
- 'markdown',
17424
- 'plaintext'
17425
- ],
17426
- deprecatedSupport: false,
17427
- preselectSupport: false
17428
- },
17429
- contextSupport: false
17430
- },
17431
- signatureHelp: {
17432
- signatureInformation: {
17433
- documentationFormat: [
17434
- 'markdown',
17435
- 'plaintext'
17436
- ],
17437
- activeParameterSupport: true
17438
- }
17439
- },
17440
- documentHighlight: {
17441
- dynamicRegistration: true
17442
- },
17443
- semanticTokens: {
17444
- multilineTokenSupport: false,
17445
- overlappingTokenSupport: false,
17446
- tokenTypes: [],
17447
- tokenModifiers: [],
17448
- formats: [
17449
- "relative"
17450
- ],
17451
- requests: {
17452
- full: {
17453
- delta: false
17454
- },
17455
- range: true
17456
- },
17457
- augmentsSyntaxTokens: true
17458
- }
17459
- },
17460
- workspace: {
17461
- didChangeConfiguration: {
17462
- dynamicRegistration: true
17463
- }
17464
- }
17465
- });
17466
17466
  language_client_define_property(this, "ctx", void 0);
17467
17467
  this.ctx = ctx;
17468
17468
  switch(serverData.type){
@@ -6689,6 +6689,73 @@ class BaseService {
6689
6689
  _define_property(this, "globalOptions", {});
6690
6690
  _define_property(this, "serviceData", void 0);
6691
6691
  _define_property(this, "serviceCapabilities", {});
6692
+ _define_property(this, "clientCapabilities", {
6693
+ textDocument: {
6694
+ hover: {
6695
+ dynamicRegistration: true,
6696
+ contentFormat: [
6697
+ 'markdown',
6698
+ 'plaintext'
6699
+ ]
6700
+ },
6701
+ synchronization: {
6702
+ dynamicRegistration: true,
6703
+ willSave: false,
6704
+ didSave: false,
6705
+ willSaveWaitUntil: false
6706
+ },
6707
+ formatting: {
6708
+ dynamicRegistration: true
6709
+ },
6710
+ completion: {
6711
+ dynamicRegistration: true,
6712
+ completionItem: {
6713
+ snippetSupport: true,
6714
+ commitCharactersSupport: false,
6715
+ documentationFormat: [
6716
+ 'markdown',
6717
+ 'plaintext'
6718
+ ],
6719
+ deprecatedSupport: false,
6720
+ preselectSupport: false
6721
+ },
6722
+ contextSupport: false
6723
+ },
6724
+ signatureHelp: {
6725
+ signatureInformation: {
6726
+ documentationFormat: [
6727
+ 'markdown',
6728
+ 'plaintext'
6729
+ ],
6730
+ activeParameterSupport: true
6731
+ }
6732
+ },
6733
+ documentHighlight: {
6734
+ dynamicRegistration: true
6735
+ },
6736
+ semanticTokens: {
6737
+ multilineTokenSupport: false,
6738
+ overlappingTokenSupport: false,
6739
+ tokenTypes: [],
6740
+ tokenModifiers: [],
6741
+ formats: [
6742
+ "relative"
6743
+ ],
6744
+ requests: {
6745
+ full: {
6746
+ delta: false
6747
+ },
6748
+ range: true
6749
+ },
6750
+ augmentsSyntaxTokens: true
6751
+ }
6752
+ },
6753
+ workspace: {
6754
+ didChangeConfiguration: {
6755
+ dynamicRegistration: true
6756
+ }
6757
+ }
6758
+ });
6692
6759
  this.mode = mode;
6693
6760
  }
6694
6761
  }