Skip to content

Commit

Permalink
Merge branch 'master' into sandy081/userDataProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Sep 11, 2019
2 parents 6d16d7a + ab10e26 commit 65f1449
Show file tree
Hide file tree
Showing 157 changed files with 4,416 additions and 2,537 deletions.
3 changes: 3 additions & 0 deletions build/gulpfile.hygiene.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const indentationFilter = [
'!test/assert.js',

// except specific folders
'!test/automation/out/**',
'!test/smoke/out/**',
'!extensions/vscode-api-tests/testWorkspace/**',
'!extensions/vscode-api-tests/testWorkspace2/**',
Expand Down Expand Up @@ -152,6 +153,7 @@ const tslintCoreFilter = [
'src/**/*.ts',
'test/**/*.ts',
'!extensions/**/*.ts',
'!test/automation/**',
'!test/smoke/**',
...tslintBaseFilter
];
Expand All @@ -160,6 +162,7 @@ const tslintExtensionsFilter = [
'extensions/**/*.ts',
'!src/**/*.ts',
'!test/**/*.ts',
'test/automation/**/*.ts',
...tslintBaseFilter
];

Expand Down
2 changes: 1 addition & 1 deletion build/gulpfile.vscode.linux.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function prepareSnapPackage(arch) {
.pipe(replace('@@NAME_LONG@@', product.nameLong))
.pipe(replace('@@NAME_SHORT@@', product.nameShort))
.pipe(replace('@@NAME@@', product.applicationName))
.pipe(replace('@@EXEC@@', product.applicationName))
.pipe(replace('@@EXEC@@', `${product.applicationName} --force-user-env`))
.pipe(replace('@@ICON@@', `\${SNAP}/meta/gui/${product.linuxIconName}.png`))
.pipe(replace('@@URLPROTOCOL@@', product.urlProtocol));

Expand Down
4 changes: 4 additions & 0 deletions build/lib/i18n.resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@
"name": "vs/workbench/contrib/webview",
"project": "vscode-workbench"
},
{
"name": "vs/workbench/contrib/customEditor",
"project": "vscode-workbench"
},
{
"name": "vs/workbench/contrib/welcome",
"project": "vscode-workbench"
Expand Down
1 change: 1 addition & 0 deletions build/npm/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ runtime "${runtime}"`;
}

yarnInstall(`build`); // node modules required for build
yarnInstall('test/automation'); // node modules required for smoketest
yarnInstall('test/smoke'); // node modules required for smoketest
yarnInstallBuildDependencies(); // node modules for watching, specific to host node version, not electron

Expand Down
6 changes: 3 additions & 3 deletions build/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2433,9 +2433,9 @@ [email protected]:
yazl "^2.2.2"

vscode-ripgrep@^1.5.6:
version "1.5.6"
resolved "https://registry.yarnpkg.com/vscode-ripgrep/-/vscode-ripgrep-1.5.6.tgz#93bf5c99ca5f8248950a305e224f6ca153c30af4"
integrity sha512-WRIM9XpUj6dsfdAmuI3ANbmT1ysPUVsYy/2uCLDHJa9kbiB4T7uGvFnnc0Rgx2qQnyRAwL7PeWaFgUljPPxf2g==
version "1.5.7"
resolved "https://registry.yarnpkg.com/vscode-ripgrep/-/vscode-ripgrep-1.5.7.tgz#acb6b548af488a4bca5d0f1bb5faf761343289ce"
integrity sha512-/Vsz/+k8kTvui0q3O74pif9FK0nKopgFTiGNVvxicZANxtSA8J8gUE9GQ/4dpi7D/2yI/YVORszwVskFbz46hQ==

vscode-telemetry-extractor@^1.5.4:
version "1.5.4"
Expand Down
4 changes: 2 additions & 2 deletions extensions/cpp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"contributes": {
"languages": [{
"id": "c",
"extensions": [ ".c"],
"extensions": [ ".c", ".i"],
"aliases": [ "C", "c" ],
"configuration": "./language-configuration.json"
},
{
"id": "cpp",
"extensions": [ ".cpp", ".cc", ".cxx", ".c++", ".hpp", ".hh", ".hxx", ".h", ".i", ".ino", ".inl", ".ipp", ".hpp.in", ".h.in" ],
"extensions": [ ".cpp", ".cc", ".cxx", ".c++", ".hpp", ".hh", ".hxx", ".h", ".ii", ".ino", ".inl", ".ipp", ".hpp.in", ".h.in" ],
"aliases": [ "C++", "Cpp", "cpp"],
"configuration": "./language-configuration.json"
}],
Expand Down
10 changes: 10 additions & 0 deletions extensions/image-preview/.vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
test/**
src/**
tsconfig.json
out/test/**
out/**
extension.webpack.config.js
cgmanifest.json
yarn.lock
preview-src/**
webpack.config.js
3 changes: 3 additions & 0 deletions extensions/image-preview/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Image Preview

**Notice:** This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
20 changes: 20 additions & 0 deletions extensions/image-preview/extension.webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. 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,
resolve: {
mainFields: ['module', 'main']
},
entry: {
extension: './src/extension.ts',
}
});
78 changes: 78 additions & 0 deletions extensions/image-preview/media/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

html, body {
height: 100%;
max-height: 100%;
}


body img {
max-width: none;
max-height: none;
}

.container:focus {
outline: none !important;
}

.container {
padding: 5px 0 0 10px;
box-sizing: border-box;
user-select: none;
}

.container.image {
padding: 0;
display: flex;
box-sizing: border-box;
}

.container.image img {
padding: 0;
background-position: 0 0, 8px 8px;
background-size: 16px 16px;
}

.container.image img {
background-image:
linear-gradient(45deg, rgb(230, 230, 230) 25%, transparent 25%, transparent 75%, rgb(230, 230, 230) 75%, rgb(230, 230, 230)),
linear-gradient(45deg, rgb(230, 230, 230) 25%, transparent 25%, transparent 75%, rgb(230, 230, 230) 75%, rgb(230, 230, 230));
}

.vscode-dark.container.image img {
background-image:
linear-gradient(45deg, rgb(20, 20, 20) 25%, transparent 25%, transparent 75%, rgb(20, 20, 20) 75%, rgb(20, 20, 20)),
linear-gradient(45deg, rgb(20, 20, 20) 25%, transparent 25%, transparent 75%, rgb(20, 20, 20) 75%, rgb(20, 20, 20));
}

.container img.pixelated {
image-rendering: pixelated;
}

.container img.scale-to-fit {
max-width: calc(100% - 20px);
max-height: calc(100% - 20px);
object-fit: contain;
}

.container img {
margin: auto;
}

.container.zoom-in {
cursor: zoom-in;
}

.container.zoom-out {
cursor: zoom-out;
}

.container .embedded-link,
.container .embedded-link:hover {
cursor: pointer;
text-decoration: underline;
margin-left: 5px;
}
Loading

0 comments on commit 65f1449

Please sign in to comment.