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:
Alan Ren
2019-07-23 18:34:17 -07:00
committed by GitHub
parent 53ab31766c
commit a92b2e0691
12 changed files with 51 additions and 14 deletions

View File

@@ -0,0 +1,19 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
//@ts-check
'use strict';
const withDefaults = require('../shared.webpack.config');
module.exports = withDefaults({
context: __dirname,
entry: {
main: './src/extension.ts'
},
externals: {
}
});

View File

@@ -0,0 +1,17 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
//@ts-check
'use strict';
const withDefaults = require('../shared.webpack.config');
module.exports = withDefaults({
context: __dirname,
entry: {
main: './src/main.ts'
}
});

View File

@@ -183,7 +183,7 @@
} }
], ],
"dependencies": { "dependencies": {
"vscode-nls": "^3.2.1" "vscode-nls": "^4.0.0"
}, },
"devDependencies": { "devDependencies": {
"typemoq": "^2.1.0", "typemoq": "^2.1.0",

View File

@@ -47,7 +47,7 @@ export enum ToolType {
AzCli, AzCli,
KubeCtl, KubeCtl,
Docker, Docker,
MSSQLCtl Azdata
} }
export interface ITool { export interface ITool {

View File

@@ -17,7 +17,7 @@ export class AzdataTool implements ITool {
} }
get type(): ToolType { get type(): ToolType {
return ToolType.MSSQLCtl; return ToolType.Azdata;
} }
get displayName(): string { get displayName(): string {

View File

@@ -14,12 +14,12 @@ export interface IToolsService {
} }
export class ToolsService implements IToolsService { export class ToolsService implements IToolsService {
private supportedTools: ITool[];
constructor() { constructor() {
this.supportedTools = [new DockerTool(), new AzCliTool(), new AzdataTool(), new KubeCtlTool()]; this.supportedTools = [new DockerTool(), new AzCliTool(), new AzdataTool(), new KubeCtlTool()];
} }
private supportedTools: ITool[];
getToolByName(toolName: string): ITool | undefined { getToolByName(toolName: string): ITool | undefined {
return this.supportedTools.find(t => t.name === toolName); return this.supportedTools.find(t => t.name === toolName);
} }

View File

@@ -7,7 +7,7 @@
import * as TypeMoq from 'typemoq'; import * as TypeMoq from 'typemoq';
import 'mocha'; import 'mocha';
import { NotebookService } from '../services/NotebookService'; import { NotebookService } from '../services/notebookService';
import assert = require('assert'); import assert = require('assert');
import { NotebookInfo } from '../interfaces'; import { NotebookInfo } from '../interfaces';
import { IPlatformService } from '../services/platformService'; import { IPlatformService } from '../services/platformService';

View File

@@ -20,7 +20,7 @@ suite('Tools Service Tests', function (): void {
{ name: 'azcli', type: ToolType.AzCli }, { name: 'azcli', type: ToolType.AzCli },
{ name: 'docker', type: ToolType.Docker }, { name: 'docker', type: ToolType.Docker },
{ name: 'kubectl', type: ToolType.KubeCtl }, { name: 'kubectl', type: ToolType.KubeCtl },
{ name: 'mssqlctl', type: ToolType.MSSQLCtl }]; { name: 'azdata', type: ToolType.Azdata }];
const missingTypes: string[] = []; const missingTypes: string[] = [];

View File

@@ -598,10 +598,10 @@ verror@1.10.0:
core-util-is "1.0.2" core-util-is "1.0.2"
extsprintf "^1.2.0" extsprintf "^1.2.0"
vscode-nls@^3.2.1: vscode-nls@^4.0.0:
version "3.2.5" version "4.1.1"
resolved "https://registry.yarnpkg.com/vscode-nls/-/vscode-nls-3.2.5.tgz#25520c1955108036dec607c85e00a522f247f1a4" resolved "https://registry.yarnpkg.com/vscode-nls/-/vscode-nls-4.1.1.tgz#f9916b64e4947b20322defb1e676a495861f133c"
integrity sha512-ITtoh3V4AkWXMmp3TB97vsMaHRgHhsSFPsUdzlueSL+dRZbSNTZeOmdQv60kjCV306ghPxhDeoNUEm3+EZMuyw== integrity sha512-4R+2UoUUU/LdnMnFjePxfLqNhBS8lrAFyX7pjb2ud/lqDkrUavFUTcG7wR0HBZFakae0Q6KLBFjMS6W93F403A==
vscode-test@^0.4.1: vscode-test@^0.4.1:
version "0.4.1" version "0.4.1"

View File

@@ -7,6 +7,7 @@
"noImplicitAny": true, "noImplicitAny": true,
"noImplicitReturns": true, "noImplicitReturns": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"noUnusedParameters": true "noUnusedParameters": true,
"forceConsistentCasingInFileNames": true
} }
} }