Skip to content

Commit

Permalink
chore(typings): add uriConverter to LanguageClientOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
chemzqm committed Feb 24, 2025
1 parent 546823c commit a6aa8d0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11626,6 +11626,10 @@ declare module 'coc.nvim' {
filter?(document: { uri: string, languageId: string }, mode: 'onType' | 'onSave'): boolean
}

export interface URIConverter {
(value: Uri): string
}

export interface LanguageClientOptions {
ignoredRootPaths?: string[]
disableSnippetCompletion?: boolean
Expand All @@ -11643,6 +11647,10 @@ declare module 'coc.nvim' {
* to 'utf8' if omitted.
*/
stdioEncoding?: string
// converter used to decode uri.
uriConverter?: {
code2Protocol: URIConverter
}
initializationOptions?: any | (() => any)
initializationFailedHandler?: InitializationFailedHandler
progressOnInitialization?: boolean
Expand Down

0 comments on commit a6aa8d0

Please sign in to comment.