Skip to content

Commit

Permalink
feat: add support for Dart-Code.dart-code
Browse files Browse the repository at this point in the history
  • Loading branch information
hverlin committed Nov 21, 2024
1 parent 5adf874 commit 4baa9d2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@
"vscode.php-language-features",
"xdebug.php-debug",
"julialang.language-julia",
"pgourlain.erlang"
"pgourlain.erlang",
"Dart-Code.dart-code"
]
},
"scope": "resource",
Expand Down
2 changes: 1 addition & 1 deletion src/providers/toolsProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ export function registerToolsCommands(
}

notificationContent.push(
`${configurableExtension.extensionId} (${updatedKeys.join(", ")} settings)`,
`${configurableExtension.extensionId} (${updatedKeys.join(", ")})`,
);
} catch (error) {
logger.error(
Expand Down
9 changes: 9 additions & 0 deletions src/utils/supportedExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,15 @@ export const SUPPORTED_EXTENSIONS: Array<ConfigurableExtension> = [
};
},
},
{
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<
Expand Down

0 comments on commit 4baa9d2

Please sign in to comment.