Skip to content

Commit a6644bc

Browse files
authored
VSCODE-75: Add connect form ssh methods (#57)
1 parent 2977feb commit a6644bc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+810
-181
lines changed

.eslintrc

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"es6": true
55
},
66
"parser": "@typescript-eslint/parser", // Specifies the ESLint parser
7-
"plugins": [
8-
"@typescript-eslint"
9-
],
7+
"plugins": ["@typescript-eslint"],
108
"extends": [
119
"eslint:recommended",
1210
"plugin:@typescript-eslint/eslint-recommended",
@@ -18,10 +16,7 @@
1816
"parserOptions": {
1917
"ecmaVersion": 2018,
2018
"sourceType": "module",
21-
"project": [
22-
"./tsconfig.json",
23-
"./src/views/connect-form-app/tsconfig.json"
24-
]
19+
"project": ["./tsconfig.json", "./src/views/webview-app/tsconfig.json"]
2520
},
2621
"globals": {
2722
"acquireVsCodeApi": true
@@ -33,22 +28,17 @@
3328
"space-before-function-paren": 0,
3429
"no-async-promise-executor": 0,
3530
"no-extra-semi": "off",
36-
"@typescript-eslint/no-extra-semi": [
37-
"error"
38-
],
31+
"@typescript-eslint/no-extra-semi": ["error"],
3932
"semi": "off",
40-
"@typescript-eslint/semi": [
41-
"error"
42-
],
33+
"@typescript-eslint/semi": ["error"],
4334
"no-empty-function": "off",
4435
"@typescript-eslint/no-empty-function": [
4536
"error",
4637
{
47-
"allow": [
48-
"arrowFunctions"
49-
]
38+
"allow": ["arrowFunctions"]
5039
}
5140
],
41+
"comma-dangle": ["error", "never"],
5242
"no-misused-promises": "off",
5343
"@typescript-eslint/no-misused-promises": "off",
5444
"no-var-requires": "off",

src/test/suite/views/webviewController.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import WebviewController, {
1313
getReactAppUri
1414
} from '../../../views/webviewController';
1515
import { StatusView } from '../../../views';
16-
import { MESSAGE_TYPES } from '../../../views/connect-form-app/extension-app-message-constants';
16+
import { MESSAGE_TYPES } from '../../../views/webview-app/extension-app-message-constants';
1717

1818
import { mdbTestExtension } from '../stubbableMdbExtension';
1919
import { TestExtensionContext } from '../stubs';
@@ -78,11 +78,11 @@ suite('Connect Form View Test Suite', () => {
7878
const htmlString = getConnectWebviewContent(appUri);
7979

8080
assert(
81-
htmlString.includes('vscode-resource:/out/connect-form/connectForm.js')
81+
htmlString.includes('vscode-resource:/out/webview-app/webviewApp.js')
8282
);
83-
const connectFormFileName = (): string => 'out/connect-form/connectForm.js';
83+
const webviewAppFileName = (): string => 'out/webview-app/webviewApp.js';
8484
const jsFileString = await readFile(
85-
path.resolve(__dirname, '..', '..', '..', '..', connectFormFileName())
85+
path.resolve(__dirname, '..', '..', '..', '..', webviewAppFileName())
8686
);
8787
assert(`${jsFileString}`.includes('ConnectionForm'));
8888
});

src/views/connect-form-app/components/help-panel/help-panel.tsx

Lines changed: 0 additions & 51 deletions
This file was deleted.
File renamed without changes.

src/views/connect-form-app/components/connect-form/authentication/authentication.tsx renamed to src/views/webview-app/components/connect-form/authentication/authentication.tsx

File renamed without changes.

src/views/connect-form-app/components/connect-form/authentication/kerberos.tsx renamed to src/views/webview-app/components/connect-form/authentication/kerberos.tsx

File renamed without changes.

src/views/connect-form-app/components/connect-form/authentication/ldap.tsx renamed to src/views/webview-app/components/connect-form/authentication/ldap.tsx

File renamed without changes.

src/views/connect-form-app/components/connect-form/authentication/mongodb-authentication.tsx renamed to src/views/webview-app/components/connect-form/authentication/mongodb-authentication.tsx

File renamed without changes.

src/views/connect-form-app/components/connect-form/authentication/scram-sha-256.tsx renamed to src/views/webview-app/components/connect-form/authentication/scram-sha-256.tsx

File renamed without changes.

src/views/connect-form-app/components/connect-form/authentication/x509.tsx renamed to src/views/webview-app/components/connect-form/authentication/x509.tsx

File renamed without changes.

0 commit comments

Comments
 (0)