@@ -460,6 +460,7 @@ function validatePatternMatching(node: SyntaxNode): Diagnostic[] {
460
460
} ) ;
461
461
}
462
462
463
+ /* eslint-disable @typescript-eslint/no-unused-vars */
463
464
function validateTypeConsistency (
464
465
node : SyntaxNode ,
465
466
text : string ,
@@ -491,6 +492,7 @@ function validateTypeConsistency(
491
492
return diagnostics ;
492
493
} ) ;
493
494
}
495
+ /* eslint-enable @typescript-eslint/no-unused-vars */
494
496
495
497
function inferBasicType ( node : SyntaxNode ) : string | null {
496
498
switch ( node . type ) {
@@ -808,6 +810,7 @@ function getPatternMatchCompletions(): CompletionItem[] {
808
810
} ) ;
809
811
}
810
812
813
+ /* eslint-disable @typescript-eslint/no-unused-vars */
811
814
function getRecordFieldCompletions ( recordType ?: string ) : CompletionItem [ ] {
812
815
// In a real implementation, this would analyze the record type
813
816
const commonFields = [
@@ -828,10 +831,13 @@ function getRecordFieldCompletions(recordType?: string): CompletionItem[] {
828
831
documentation : `Access field: ${ field } ` ,
829
832
} ) ) ;
830
833
}
834
+ /* eslint-enable @typescript-eslint/no-unused-vars */
831
835
832
836
function getFunctionCompletions ( ) : CompletionItem [ ] {
833
837
return BUILT_IN_FUNCTIONS . map ( ( func ) => {
838
+ /* eslint-disable @typescript-eslint/no-unused-vars */
834
839
const [ module , name ] = func . split ( "/" ) ;
840
+ /* eslint-enable @typescript-eslint/no-unused-vars */
835
841
return {
836
842
label : func ,
837
843
kind : CompletionItemKind . Function ,
@@ -1603,7 +1609,9 @@ export function setupServer() {
1603
1609
1604
1610
let hasConfigurationCapability = false ;
1605
1611
let hasWorkspaceFolderCapability = false ;
1612
+ /* eslint-disable @typescript-eslint/no-unused-vars */
1606
1613
let hasDiagnosticRelatedInformationCapability = false ;
1614
+ /* eslint-enable @typescript-eslint/no-unused-vars */
1607
1615
1608
1616
connection . onInitialize ( async ( params : InitializeParams ) => {
1609
1617
const capabilities = params . capabilities ;
@@ -1673,9 +1681,11 @@ export function setupServer() {
1673
1681
) ;
1674
1682
}
1675
1683
if ( hasWorkspaceFolderCapability ) {
1684
+ /* eslint-disable @typescript-eslint/no-unused-vars */
1676
1685
connection . workspace . onDidChangeWorkspaceFolders ( ( _event ) => {
1677
1686
connection . console . log ( "Workspace folder change event received." ) ;
1678
1687
} ) ;
1688
+ /* eslint-enable @typescript-eslint/no-unused-vars */
1679
1689
}
1680
1690
} ) ;
1681
1691
0 commit comments