mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
dependencies messages, no curl on win32, fixes to min Version (#8039)
* checking temp work to move to another branch * removing freeTds * dependencies Messages and No curl on Win32 * elipsis instead of ... * add min version check post install and pr fixes * removing unnecessary comment * removing old TODO comment * fix text messages * add github toke nto electron download (#8047) * remove hardcode of kubectl version for download
This commit is contained in:
@@ -14,13 +14,20 @@ export interface IToolsService {
|
||||
}
|
||||
|
||||
export class ToolsService implements IToolsService {
|
||||
private supportedTools: ITool[];
|
||||
private supportedTools: Map<string, ITool>;
|
||||
|
||||
constructor(private _platformService: IPlatformService) {
|
||||
this.supportedTools = [new DockerTool(this._platformService), new AzCliTool(this._platformService), new AzdataTool(this._platformService), new KubeCtlTool(this._platformService)];
|
||||
this.supportedTools = new Map<string, ITool>(
|
||||
[
|
||||
new DockerTool(this._platformService),
|
||||
new AzCliTool(this._platformService),
|
||||
new AzdataTool(this._platformService),
|
||||
new KubeCtlTool(this._platformService)
|
||||
].map<[string, ITool]>((tool: ITool) => [tool.name, tool])
|
||||
);
|
||||
}
|
||||
|
||||
getToolByName(toolName: string): ITool | undefined {
|
||||
return this.supportedTools.find(t => t.name === toolName);
|
||||
return this.supportedTools.get(toolName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user