mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 17:22:59 -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:
19
extensions/big-data-cluster/extension.webpack.config.js
Normal file
19
extensions/big-data-cluster/extension.webpack.config.js
Normal 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: {
|
||||
}
|
||||
});
|
||||
17
extensions/resource-deployment/extension.webpack.config.js
Normal file
17
extensions/resource-deployment/extension.webpack.config.js
Normal 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'
|
||||
}
|
||||
});
|
||||
@@ -183,7 +183,7 @@
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"vscode-nls": "^3.2.1"
|
||||
"vscode-nls": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typemoq": "^2.1.0",
|
||||
|
||||
@@ -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[] = [];
|
||||
|
||||
|
||||
@@ -598,10 +598,10 @@ verror@1.10.0:
|
||||
core-util-is "1.0.2"
|
||||
extsprintf "^1.2.0"
|
||||
|
||||
vscode-nls@^3.2.1:
|
||||
version "3.2.5"
|
||||
resolved "https://registry.yarnpkg.com/vscode-nls/-/vscode-nls-3.2.5.tgz#25520c1955108036dec607c85e00a522f247f1a4"
|
||||
integrity sha512-ITtoh3V4AkWXMmp3TB97vsMaHRgHhsSFPsUdzlueSL+dRZbSNTZeOmdQv60kjCV306ghPxhDeoNUEm3+EZMuyw==
|
||||
vscode-nls@^4.0.0:
|
||||
version "4.1.1"
|
||||
resolved "https://registry.yarnpkg.com/vscode-nls/-/vscode-nls-4.1.1.tgz#f9916b64e4947b20322defb1e676a495861f133c"
|
||||
integrity sha512-4R+2UoUUU/LdnMnFjePxfLqNhBS8lrAFyX7pjb2ud/lqDkrUavFUTcG7wR0HBZFakae0Q6KLBFjMS6W93F403A==
|
||||
|
||||
vscode-test@^0.4.1:
|
||||
version "0.4.1"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"noImplicitAny": true,
|
||||
"noImplicitReturns": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true
|
||||
"noUnusedParameters": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user