mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
Merge from vscode a348d103d1256a06a2c9b3f9b406298a9fef6898 (#15681)
* Merge from vscode a348d103d1256a06a2c9b3f9b406298a9fef6898 * Fixes and cleanup * Distro * Fix hygiene yarn * delete no yarn lock changes file * Fix hygiene * Fix layer check * Fix CI * Skip lib checks * Remove tests deleted in vs code * Fix tests * Distro * Fix tests and add removed extension point * Skip failing notebook tests for now * Disable broken tests and cleanup build folder * Update yarn.lock and fix smoke tests * Bump sqlite * fix contributed actions and file spacing * Fix user data path * Update yarn.locks Co-authored-by: ADS Merger <karlb@microsoft.com>
This commit is contained in:
BIN
extensions/vscode-test-resolver/media/icon.png
Normal file
BIN
extensions/vscode-test-resolver/media/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
@@ -1,92 +1,140 @@
|
||||
{
|
||||
"name": "vscode-test-resolver",
|
||||
"description": "Test resolver for VS Code",
|
||||
"version": "0.0.1",
|
||||
"publisher": "vscode",
|
||||
"enableProposedApi": true,
|
||||
"private": true,
|
||||
"engines": {
|
||||
"vscode": "^1.25.0"
|
||||
},
|
||||
"extensionKind": [ "ui" ],
|
||||
"scripts": {
|
||||
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
|
||||
"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:vscode-test-resolver"
|
||||
},
|
||||
"activationEvents": [
|
||||
"onResolveRemoteAuthority:test",
|
||||
"onCommand:vscode-testresolver.newWindow",
|
||||
"onCommand:vscode-testresolver.newWindowWithError",
|
||||
"onCommand:vscode-testresolver.showLog"
|
||||
],
|
||||
"main": "./out/extension",
|
||||
"devDependencies": {
|
||||
"@types/node": "^12.11.7"
|
||||
},
|
||||
"contributes": {
|
||||
"resourceLabelFormatters": [
|
||||
{
|
||||
"scheme": "vscode-remote",
|
||||
"authority": "test+*",
|
||||
"formatting": {
|
||||
"label": "${path}",
|
||||
"separator": "/",
|
||||
"tildify": true,
|
||||
"workspaceSuffix": "TestResolver"
|
||||
}
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
{
|
||||
"title": "New Window",
|
||||
"category": "Remote-TestResolver",
|
||||
"command": "vscode-testresolver.newWindow"
|
||||
},
|
||||
{
|
||||
"title": "Show Log",
|
||||
"category": "Remote-TestResolver",
|
||||
"command": "vscode-testresolver.showLog"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"statusBar/windowIndicator": [
|
||||
{
|
||||
"command": "vscode-testresolver.newWindow",
|
||||
"when": "!remoteName",
|
||||
"group": "9_local_testresolver@2"
|
||||
},
|
||||
{
|
||||
"command": "vscode-testresolver.showLog",
|
||||
"when": "remoteName == test",
|
||||
"group": "1_remote_testresolver_open@3"
|
||||
},
|
||||
{
|
||||
"command": "vscode-testresolver.newWindow",
|
||||
"when": "remoteName == test",
|
||||
"group": "1_remote_testresolver_open@1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"configuration": {
|
||||
"properties": {
|
||||
"testresolver.startupDelay": {
|
||||
"description": "If set, the resolver will delay for the given amount of seconds. Use ths setting for testing a slow resolver",
|
||||
"type": "number",
|
||||
"default": 0
|
||||
},
|
||||
"testresolver.startupError": {
|
||||
"description": "If set, the resolver will fail. Use ths setting for testing the failure of a resolver.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"testresolver.pause": {
|
||||
"description": "If set, connection is paused",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
"name": "vscode-test-resolver",
|
||||
"description": "Test resolver for VS Code",
|
||||
"version": "0.0.1",
|
||||
"publisher": "vscode",
|
||||
"license": "MIT",
|
||||
"enableProposedApi": true,
|
||||
"private": true,
|
||||
"engines": {
|
||||
"vscode": "^1.25.0"
|
||||
},
|
||||
"icon": "media/icon.png",
|
||||
"extensionKind": [
|
||||
"ui"
|
||||
],
|
||||
"scripts": {
|
||||
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
|
||||
"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:vscode-test-resolver"
|
||||
},
|
||||
"activationEvents": [
|
||||
"onResolveRemoteAuthority:test",
|
||||
"onCommand:vscode-testresolver.newWindow",
|
||||
"onCommand:vscode-testresolver.newWindowWithError",
|
||||
"onCommand:vscode-testresolver.showLog",
|
||||
"onCommand:vscode-testresolver.openTunnel",
|
||||
"onCommand:vscode-testresolver.startRemoteServer"
|
||||
],
|
||||
"main": "./out/extension",
|
||||
"devDependencies": {
|
||||
"@types/node": "^12.19.9"
|
||||
},
|
||||
"contributes": {
|
||||
"resourceLabelFormatters": [
|
||||
{
|
||||
"scheme": "vscode-remote",
|
||||
"authority": "test+*",
|
||||
"formatting": {
|
||||
"label": "${path}",
|
||||
"separator": "/",
|
||||
"tildify": true,
|
||||
"workspaceSuffix": "TestResolver"
|
||||
}
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
{
|
||||
"title": "New TestResolver Window",
|
||||
"category": "Remote-TestResolver",
|
||||
"command": "vscode-testresolver.newWindow"
|
||||
},
|
||||
{
|
||||
"title": "Show TestResolver Log",
|
||||
"category": "Remote-TestResolver",
|
||||
"command": "vscode-testresolver.showLog"
|
||||
},
|
||||
{
|
||||
"title": "Kill Remote Server and Trigger Handled Error",
|
||||
"category": "Remote-TestResolver",
|
||||
"command": "vscode-testresolver.killServerAndTriggerHandledError"
|
||||
},
|
||||
{
|
||||
"title": "Open Tunnel...",
|
||||
"category": "Remote-TestResolver",
|
||||
"command": "vscode-testresolver.openTunnel"
|
||||
},
|
||||
{
|
||||
"title": "Open Remote Server...",
|
||||
"category": "Remote-TestResolver",
|
||||
"command": "vscode-testresolver.startRemoteServer"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"commandPalette": [
|
||||
{
|
||||
"command": "vscode-testresolver.openTunnel",
|
||||
"when": "remoteName == test"
|
||||
},
|
||||
{
|
||||
"command": "vscode-testresolver.startRemoteServer",
|
||||
"when": "remoteName == test"
|
||||
}
|
||||
],
|
||||
"statusBar/remoteIndicator": [
|
||||
{
|
||||
"command": "vscode-testresolver.newWindow",
|
||||
"when": "!remoteName",
|
||||
"group": "remote_90_test_1_local@2"
|
||||
},
|
||||
{
|
||||
"command": "vscode-testresolver.showLog",
|
||||
"when": "remoteName == test",
|
||||
"group": "remote_90_test_1_open@3"
|
||||
},
|
||||
{
|
||||
"command": "vscode-testresolver.newWindow",
|
||||
"when": "remoteName == test",
|
||||
"group": "remote_90_test_1_open@1"
|
||||
},
|
||||
{
|
||||
"command": "vscode-testresolver.openTunnel",
|
||||
"when": "remoteName == test",
|
||||
"group": "remote_90_test_2_more@4"
|
||||
},
|
||||
{
|
||||
"command": "vscode-testresolver.startRemoteServer",
|
||||
"when": "remoteName == test",
|
||||
"group": "remote_90_test_2_more@5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"configuration": {
|
||||
"properties": {
|
||||
"testresolver.startupDelay": {
|
||||
"description": "If set, the resolver will delay for the given amount of seconds. Use ths setting for testing a slow resolver",
|
||||
"type": "number",
|
||||
"default": 0
|
||||
},
|
||||
"testresolver.startupError": {
|
||||
"description": "If set, the resolver will fail. Use ths setting for testing the failure of a resolver.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"testresolver.pause": {
|
||||
"description": "If set, connection is paused",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"testresolver.supportPublicPorts": {
|
||||
"description": "If set, the test resolver tunnel factory will support mock public ports. Forwarded ports will not actually be public. Requires reload.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/microsoft/vscode.git"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -203,7 +203,8 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
proxyServer.listen(0, () => {
|
||||
const port = (<net.AddressInfo>proxyServer.address()).port;
|
||||
outputChannel.appendLine(`Going through proxy at port ${port}`);
|
||||
res(new vscode.ResolvedAuthority('127.0.0.1', port));
|
||||
const r: vscode.ResolverResult = new vscode.ResolvedAuthority('127.0.0.1', port);
|
||||
res(r);
|
||||
});
|
||||
context.subscriptions.push({
|
||||
dispose: () => {
|
||||
@@ -302,7 +303,7 @@ function getActions(): ActionItem[] {
|
||||
actions.push({
|
||||
title: 'Close Remote',
|
||||
execute: async () => {
|
||||
await vscode.commands.executeCommand('vscode.newWindow', { reuseWindow: true });
|
||||
await vscode.commands.executeCommand('vscode.newWindow', { reuseWindow: true, remoteAuthority: null });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"extends": "../shared.tsconfig.json",
|
||||
"extends": "../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./out"
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@types/node@^12.11.7":
|
||||
version "12.11.7"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.11.7.tgz#57682a9771a3f7b09c2497f28129a0462966524a"
|
||||
integrity sha512-JNbGaHFCLwgHn/iCckiGSOZ1XYHsKFwREtzPwSGCVld1SGhOlmZw2D4ZI94HQCrBHbADzW9m4LER/8olJTRGHA==
|
||||
"@types/node@^12.19.9":
|
||||
version "12.20.14"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.14.tgz#9caf7eea0df08b406829889cc015256a6d81ab10"
|
||||
integrity sha512-iFJOS5Q470FF+r4Ol2pSley7/wCNVqf+jgjhtxLLaJcDs+To2iCxlXIkJXrGLD9w9G/oJ9ibySu7z92DCwr7Pg==
|
||||
|
||||
Reference in New Issue
Block a user