Skip to content

Commit

Permalink
Use an exact version of prettier
Browse files Browse the repository at this point in the history
Closes gh-390
  • Loading branch information
wilkinsona committed Aug 30, 2023
1 parent e3716b9 commit fdc8451
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"eslint": "^8.33.0",
"glob": "8.1.0",
"mocha": "10.2.0",
"prettier": "3.0.3",
"typescript": "^4.9.4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class SpringDocumentFormattingEditProvider implements vscode.Docu
provideDocumentFormattingEdits(
document: vscode.TextDocument,
options: vscode.FormattingOptions,
token: vscode.CancellationToken
token: vscode.CancellationToken,
): vscode.ProviderResult<vscode.TextEdit[]> {
if (vscode.window.visibleTextEditors.every((editor) => editor.document.fileName !== document.fileName)) {
return []
Expand All @@ -36,7 +36,7 @@ export default class SpringDocumentFormattingEditProvider implements vscode.Docu
console.log(err)
return Promise.reject(`Check the console in dev tools to find errors when formatting spring-javaformat`)
}
}
},
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function activate(context: vscode.ExtensionContext) {
scheme: 'file',
},
],
new SpringDocumentFormattingEditProvider()
)
new SpringDocumentFormattingEditProvider(),
),
)
}

0 comments on commit fdc8451

Please sign in to comment.