diff --git a/package.json b/package.json index e13ea2f5..8b19d68b 100644 --- a/package.json +++ b/package.json @@ -92,11 +92,6 @@ "type": ["boolean", "null"], "default": null, "markdownDescription": "Enable/Disable Biome handling renames in the workspace. (Experimental)" - }, - "biome.requireConfiguration": { - "type": "boolean", - "default": true, - "markdownDescription": "Require a Biome configuration file to enable syntax errors, formatting and linting." } } } diff --git a/src/main.ts b/src/main.ts index bdec4c1c..e93eb9c7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -63,10 +63,6 @@ export async function activate(context: ExtensionContext) { } } - const requiresConfiguration = workspace - .getConfiguration("biome") - .get("requireConfiguration"); - commands.registerCommand(Commands.StopServer, async () => { if (!client) { return; @@ -97,23 +93,6 @@ export async function activate(context: ExtensionContext) { await context.globalState.update("biome_versions_cache", undefined); }); - // If the extension requires a configuration file to be present, we attempt to - // locate it. If a config file cannot be found, we do not go any further. - if (requiresConfiguration) { - outputChannel.appendLine("Configuration file required, looking for one."); - // TODO: Stop looking for rome.json when we reach biome v2.0 - const configFiles = await workspace.findFiles("**/{biome,rome}.json"); - if (configFiles.length === 0) { - outputChannel.appendLine( - "No config file found, disabling Biome extension", - ); - return; - } - outputChannel.appendLine( - `Config file found at ${configFiles[0].fsPath}, enabling Biome extension`, - ); - } - let server = await getServerPath(context, outputChannel); if (!server.command) {