forked from rojo-rbx/rojo
Migrate DevSettings to PluginSettings for much better config flow (#572)
* Add the devsetting config options into settings * Create dropdown component and add setting controls * Static dropdwon width and spin arrow * Improve dropdown option contrast and border * Forgot to make the settings page respect the static spacing, oops * Smaller arrow * Vert padding * Reset option for settings * Hide reset button when on default * Respect the logLevel setting * Portal settings out to external typechecking module * Implement new configs using the new singleton Settings * Remove DevSettings * Update test runner to use new settings * More helpful test failure output * Support non-plugin environment * Migrate dropdown to new packages system * Clean up components a tad
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
local Packages = script.Parent.Parent.Packages
|
||||
local t = require(Packages.t)
|
||||
local DevSettings = require(script.Parent.DevSettings)
|
||||
local Settings = require(script.Parent.Settings)
|
||||
local strict = require(script.Parent.strict)
|
||||
|
||||
local RbxId = t.string
|
||||
@@ -66,7 +66,7 @@ local ApiError = t.interface({
|
||||
|
||||
local function ifEnabled(innerCheck)
|
||||
return function(...)
|
||||
if DevSettings:shouldTypecheck() then
|
||||
if Settings:get("typecheckingEnabled") then
|
||||
return innerCheck(...)
|
||||
else
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user