From 4baa9d224ef8141d6a6474b82a20269f43ab7711 Mon Sep 17 00:00:00 2001 From: hverlin Date: Wed, 20 Nov 2024 23:21:00 -0500 Subject: [PATCH] feat: add support for Dart-Code.dart-code --- package.json | 3 ++- src/providers/toolsProvider.ts | 2 +- src/utils/supportedExtensions.ts | 9 +++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c4c6b98..505f986 100644 --- a/package.json +++ b/package.json @@ -119,7 +119,8 @@ "vscode.php-language-features", "xdebug.php-debug", "julialang.language-julia", - "pgourlain.erlang" + "pgourlain.erlang", + "Dart-Code.dart-code" ] }, "scope": "resource", diff --git a/src/providers/toolsProvider.ts b/src/providers/toolsProvider.ts index 26d4871..a167dda 100644 --- a/src/providers/toolsProvider.ts +++ b/src/providers/toolsProvider.ts @@ -610,7 +610,7 @@ export function registerToolsCommands( } notificationContent.push( - `${configurableExtension.extensionId} (${updatedKeys.join(", ")} settings)`, + `${configurableExtension.extensionId} (${updatedKeys.join(", ")})`, ); } catch (error) { logger.error( diff --git a/src/utils/supportedExtensions.ts b/src/utils/supportedExtensions.ts index 187e01b..86a8e12 100644 --- a/src/utils/supportedExtensions.ts +++ b/src/utils/supportedExtensions.ts @@ -252,6 +252,15 @@ export const SUPPORTED_EXTENSIONS: Array = [ }; }, }, + { + toolNames: ["dart"], + extensionId: "Dart-Code.dart-code", + generateConfiguration: async (tool: MiseTool) => { + return { + "dart.sdkPath": tool.install_path, + }; + }, + }, ]; export const CONFIGURABLE_EXTENSIONS_BY_TOOL_NAME = new Map<