diff --git a/client/src/common/settings.ts b/client/src/common/settings.ts index b10e7ca..d47fcb7 100644 --- a/client/src/common/settings.ts +++ b/client/src/common/settings.ts @@ -78,7 +78,8 @@ export async function getWorkspaceSettings( path: resolveVariables(config.get(`path`) ?? [], workspace), interpreter: resolveVariables(interpreter, workspace), importStrategy: config.get(`importStrategy`) ?? "useBundled", - showNotifications: config.get(`showNotifications`) ?? "off" + showNotifications: config.get(`showNotifications`) ?? "off", + formatter: config.get(`formatter`) ?? false } return workspaceSetting } @@ -109,7 +110,8 @@ export async function getGlobalSettings( path: getGlobalValue(config, "path", []), interpreter: interpreter, importStrategy: getGlobalValue(config, "importStrategy", "useBundled"), - showNotifications: getGlobalValue(config, "showNotifications", "off") + showNotifications: getGlobalValue(config, "showNotifications", "off"), + formatter: config.get(`formatter`) ?? false } return setting } @@ -123,7 +125,8 @@ export function checkIfConfigurationChanged( `${namespace}.path`, `${namespace}.interpreter`, `${namespace}.importStrategy`, - `${namespace}.showNotifications` + `${namespace}.showNotifications`, + `${namespace}.formatter` ] const changed = settings.map((s) => e.affectsConfiguration(s)) return changed.includes(true) diff --git a/package.json b/package.json index 06c4368..2211175 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,11 @@ ], "configuration": { "properties": { + "nx-post-support.formatter": { + "type": "boolean", + "default": false, + "description": "Use the TCL formatter from `NX Postprocessor Support`" + }, "nx-post-support.importStrategy": { "default": "useBundled", "description": "Defines where `NX Postprocessor Support` is imported from.", @@ -118,4 +123,4 @@ "prettier": "^3.4.2", "typescript": "^5.7.2" } -} +} \ No newline at end of file