mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46: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:
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": {
|
"dependencies": {
|
||||||
"vscode-nls": "^3.2.1"
|
"vscode-nls": "^4.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typemoq": "^2.1.0",
|
"typemoq": "^2.1.0",
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export enum ToolType {
|
|||||||
AzCli,
|
AzCli,
|
||||||
KubeCtl,
|
KubeCtl,
|
||||||
Docker,
|
Docker,
|
||||||
MSSQLCtl
|
Azdata
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ITool {
|
export interface ITool {
|
||||||
|
|||||||
@@ -23,4 +23,4 @@ export class AzCliTool implements ITool {
|
|||||||
get displayName(): string {
|
get displayName(): string {
|
||||||
return localize('resourceDeployment.AzCLIDisplayName', 'Azure CLI');
|
return localize('resourceDeployment.AzCLIDisplayName', 'Azure CLI');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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 {
|
||||||
|
|||||||
@@ -23,4 +23,4 @@ export class KubeCtlTool implements ITool {
|
|||||||
get displayName(): string {
|
get displayName(): string {
|
||||||
return localize('resourceDeployment.KubeCtlDisplayName', 'kubectl');
|
return localize('resourceDeployment.KubeCtlDisplayName', 'kubectl');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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[] = [];
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true
|
"noUnusedParameters": true,
|
||||||
|
"forceConsistentCasingInFileNames": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user