Skip to content

Commit

Permalink
Remove useless arrow function wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Jun 7, 2024
1 parent 4df69c7 commit a255d0e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/yaml.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ initialize<YAMLWorker, MonacoYamlOptions>((ctx, { enableSchemaRequest, ...langua
ls.doDefinition(document, { position, textDocument: document })
),

doHover: withDocument((document, position) => ls.doHover(document, position)),
doHover: withDocument(ls.doHover),

format: withDocument((document) => ls.doFormat(document, {})),
format: withDocument(ls.doFormat),

resetSchema: (uri) => ls.resetSchema(uri),
resetSchema: ls.resetSchema,

findDocumentSymbols: withDocument((document) => ls.findDocumentSymbols2(document, {})),
findDocumentSymbols: withDocument(ls.findDocumentSymbols2),

findLinks: withDocument((document) => ls.findLinks(document)),
findLinks: withDocument(ls.findLinks),

getCodeAction: withDocument((document, range, context) =>
ls.getCodeAction(document, { range, textDocument: document, context })
Expand Down

0 comments on commit a255d0e

Please sign in to comment.