@@ -33,6 +33,7 @@ import {
3333 ServerCapabilities ,
3434 TextDocuments ,
3535 TextDocumentSyncKind ,
36+ DidChangeWatchedFilesParams ,
3637} from 'vscode-languageserver'
3738
3839import { posix } from 'path'
@@ -314,7 +315,7 @@ function validateTextDocument(textDocument: TextDocument, callback?: (diagnostic
314315 )
315316}
316317
317- connection . onDidChangeWatchedFiles ( ( change : any ) => {
318+ connection . onDidChangeWatchedFiles ( ( change : DidChangeWatchedFilesParams ) => {
318319 // Monitored files have changed in VSCode
319320 let hasChanges = false
320321 for ( const c of change . changes ) {
@@ -342,7 +343,7 @@ function getJSONDocument(document: TextDocument): JSONDocument {
342343 return jsonDocuments . get ( document )
343344}
344345
345- connection . onCompletion ( ( textDocumentPosition : any , token : any ) => {
346+ connection . onCompletion ( ( textDocumentPosition , token ) => {
346347 return runSafeAsync (
347348 async ( ) => {
348349 const document = documents . get ( textDocumentPosition . textDocument . uri )
@@ -364,7 +365,7 @@ connection.onCompletion((textDocumentPosition: any, token: any) => {
364365 )
365366} )
366367
367- connection . onCompletionResolve ( ( completionItem : any , token : any ) => {
368+ connection . onCompletionResolve ( ( completionItem , token ) => {
368369 return runSafeAsync (
369370 ( ) => {
370371 // the asl-yaml-languageservice uses doResolve from the asl service
@@ -376,7 +377,7 @@ connection.onCompletionResolve((completionItem: any, token: any) => {
376377 )
377378} )
378379
379- connection . onHover ( ( textDocumentPositionParams : any , token : any ) => {
380+ connection . onHover ( ( textDocumentPositionParams , token ) => {
380381 return runSafeAsync (
381382 async ( ) => {
382383 const document = documents . get ( textDocumentPositionParams . textDocument . uri )
@@ -397,7 +398,7 @@ connection.onHover((textDocumentPositionParams: any, token: any) => {
397398 )
398399} )
399400
400- connection . onDocumentSymbol ( ( documentSymbolParams : any , token : any ) => {
401+ connection . onDocumentSymbol ( ( documentSymbolParams , token ) => {
401402 return runSafe (
402403 ( ) => {
403404 const document = documents . get ( documentSymbolParams . textDocument . uri )
@@ -429,7 +430,7 @@ connection.onDocumentSymbol((documentSymbolParams: any, token: any) => {
429430 )
430431} )
431432
432- connection . onDocumentRangeFormatting ( ( formatParams : any , token : any ) => {
433+ connection . onDocumentRangeFormatting ( ( formatParams , token ) => {
433434 return runSafe (
434435 ( ) => {
435436 const document = documents . get ( formatParams . textDocument . uri )
@@ -449,7 +450,7 @@ connection.onDocumentRangeFormatting((formatParams: any, token: any) => {
449450 )
450451} )
451452
452- connection . onDocumentColor ( ( params : any , token : any ) => {
453+ connection . onDocumentColor ( ( params , token ) => {
453454 return runSafeAsync (
454455 async ( ) => {
455456 const document = documents . get ( params . textDocument . uri )
@@ -475,7 +476,7 @@ connection.onDocumentColor((params: any, token: any) => {
475476 )
476477} )
477478
478- connection . onColorPresentation ( ( params : any , token : any ) => {
479+ connection . onColorPresentation ( ( params , token ) => {
479480 return runSafe (
480481 ( ) => {
481482 const document = documents . get ( params . textDocument . uri )
@@ -498,7 +499,7 @@ connection.onColorPresentation((params: any, token: any) => {
498499 )
499500} )
500501
501- connection . onFoldingRanges ( ( params : any , token : any ) => {
502+ connection . onFoldingRanges ( ( params , token ) => {
502503 return runSafe (
503504 ( ) => {
504505 const document = documents . get ( params . textDocument . uri )
@@ -522,7 +523,7 @@ connection.onFoldingRanges((params: any, token: any) => {
522523 )
523524} )
524525
525- connection . onSelectionRanges ( ( params : any , token : any ) => {
526+ connection . onSelectionRanges ( ( params , token ) => {
526527 return runSafe (
527528 ( ) => {
528529 const document = documents . get ( params . textDocument . uri )
0 commit comments