We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcd97af commit 4299de2Copy full SHA for 4299de2
src/config.ts
@@ -1,13 +1,11 @@
1
import type { TextEditor } from "atom"
2
-import featureConfig from "@atom-ide-community/nuclide-commons-atom/feature-config"
3
4
export function getFormatOnSave(editor: TextEditor): boolean {
5
- const formatOnSave = featureConfig.get("atom-ide-code-format.formatOnSave", {
+ return atom.config.get("atom-ide-code-format.formatOnSave", {
6
scope: editor.getRootScopeDescriptor(),
7
- }) as any
8
- return formatOnSave == null ? false : formatOnSave
+ }) as boolean
9
}
10
11
export function getFormatOnType(): boolean {
12
- return featureConfig.getWithDefaults("atom-ide-code-format.formatOnType", false)
+ return atom.config.get("atom-ide-code-format.formatOnType") as boolean
13
0 commit comments