mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 17:23:40 -05:00
deployment extension not working on Linux (#6476)
* add webpack for built in extensions * fix the casing issue * Rename azCLITool.ts to azCliTool.ts * Rename kubectlTool.ts to kubeCtlTool.ts * fix the error * fix the packaging issue
This commit is contained in:
@@ -47,7 +47,7 @@ export enum ToolType {
|
||||
AzCli,
|
||||
KubeCtl,
|
||||
Docker,
|
||||
MSSQLCtl
|
||||
Azdata
|
||||
}
|
||||
|
||||
export interface ITool {
|
||||
|
||||
@@ -23,4 +23,4 @@ export class AzCliTool implements ITool {
|
||||
get displayName(): string {
|
||||
return localize('resourceDeployment.AzCLIDisplayName', 'Azure CLI');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,7 @@ export class AzdataTool implements ITool {
|
||||
}
|
||||
|
||||
get type(): ToolType {
|
||||
return ToolType.MSSQLCtl;
|
||||
return ToolType.Azdata;
|
||||
}
|
||||
|
||||
get displayName(): string {
|
||||
|
||||
@@ -23,4 +23,4 @@ export class KubeCtlTool implements ITool {
|
||||
get displayName(): string {
|
||||
return localize('resourceDeployment.KubeCtlDisplayName', 'kubectl');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,12 +14,12 @@ export interface IToolsService {
|
||||
}
|
||||
|
||||
export class ToolsService implements IToolsService {
|
||||
private supportedTools: ITool[];
|
||||
|
||||
constructor() {
|
||||
this.supportedTools = [new DockerTool(), new AzCliTool(), new AzdataTool(), new KubeCtlTool()];
|
||||
}
|
||||
|
||||
private supportedTools: ITool[];
|
||||
|
||||
getToolByName(toolName: string): ITool | undefined {
|
||||
return this.supportedTools.find(t => t.name === toolName);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import 'mocha';
|
||||
import { NotebookService } from '../services/NotebookService';
|
||||
import { NotebookService } from '../services/notebookService';
|
||||
import assert = require('assert');
|
||||
import { NotebookInfo } from '../interfaces';
|
||||
import { IPlatformService } from '../services/platformService';
|
||||
|
||||
@@ -20,7 +20,7 @@ suite('Tools Service Tests', function (): void {
|
||||
{ name: 'azcli', type: ToolType.AzCli },
|
||||
{ name: 'docker', type: ToolType.Docker },
|
||||
{ name: 'kubectl', type: ToolType.KubeCtl },
|
||||
{ name: 'mssqlctl', type: ToolType.MSSQLCtl }];
|
||||
{ name: 'azdata', type: ToolType.Azdata }];
|
||||
|
||||
const missingTypes: string[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user