Skip to content

Commit 90fc7e6

Browse files
authored
Merge pull request #54854 from Microsoft/revert-52782-electron-2.0.x
Revert "Update to Electron 2.0.x"
2 parents 3b25417 + 1dc23e5 commit 90fc7e6

File tree

20 files changed

+3948
-7575
lines changed

20 files changed

+3948
-7575
lines changed

.yarnrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
disturl "https://atom.io/download/electron"
2-
target "2.0.5"
2+
target "1.7.12"
33
runtime "electron"

resources/linux/debian/control.template

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: @@NAME@@
22
Version: @@VERSION@@
33
Section: devel
4-
Depends: libnotify4, libnss3, gnupg, apt, libxkbfile1, libgconf-2-4, libsecret-1-0, libgtk-3-0 (>= 3.10.0)
4+
Depends: libnotify4, libnss3, gnupg, apt, libxkbfile1, libgconf-2-4, libsecret-1-0
55
Priority: optional
66
Architecture: @@ARCHITECTURE@@
77
Maintainer: Microsoft Corporation <vscode-linux@microsoft.com>
@@ -12,4 +12,3 @@ Conflicts: visual-studio-@@NAME@@
1212
Replaces: visual-studio-@@NAME@@
1313
Description: Code editing. Redefined.
1414
Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/linux for installation instructions and FAQ.
15-

resources/linux/rpm/dependencies.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"libpthread.so.0(GLIBC_2.2.5)(64bit)",
55
"libpthread.so.0(GLIBC_2.3.2)(64bit)",
66
"libpthread.so.0(GLIBC_2.3.3)(64bit)",
7-
"libgtk-3.so.0()(64bit)",
7+
"libgtk-x11-2.0.so.0()(64bit)",
88
"libgdk-x11-2.0.so.0()(64bit)",
99
"libatk-1.0.so.0()(64bit)",
1010
"libgio-2.0.so.0()(64bit)",
@@ -114,7 +114,7 @@
114114
"libglib-2.0.so.0",
115115
"libgmodule-2.0.so.0",
116116
"libgobject-2.0.so.0",
117-
"libgtk-3.so.0",
117+
"libgtk-x11-2.0.so.0",
118118
"libm.so.6",
119119
"libm.so.6(GLIBC_2.0)",
120120
"libm.so.6(GLIBC_2.1)",

scripts/code-cli.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ set ELECTRON_ENABLE_LOGGING=1
2929
set ELECTRON_ENABLE_STACK_DUMPING=1
3030

3131
:: Launch Code
32-
%CODE% --inspect=5874 out\cli.js . %*
32+
%CODE% --debug=5874 out\cli.js . %*
3333
popd
3434

3535
endlocal

scripts/code-cli.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function code() {
3232
VSCODE_DEV=1 \
3333
ELECTRON_ENABLE_LOGGING=1 \
3434
ELECTRON_ENABLE_STACK_DUMPING=1 \
35-
"$CODE" --inspect=5874 "$ROOT/out/cli.js" . "$@"
35+
"$CODE" --debug=5874 "$ROOT/out/cli.js" . "$@"
3636
}
3737

3838
code "$@"

scripts/code.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
if [[ "$OSTYPE" == "darwin"* ]]; then
44
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
55
ROOT=$(dirname "$(dirname "$(realpath "$0")")")
6-
7-
# On Linux with Electron 2.0.x running out of a VM causes
8-
# a freeze so we only enable this flag on macOS
9-
export ELECTRON_ENABLE_LOGGING=1
106
else
117
ROOT=$(dirname "$(dirname "$(readlink -f $0)")")
128
fi
@@ -44,6 +40,7 @@ function code() {
4440
export NODE_ENV=development
4541
export VSCODE_DEV=1
4642
export VSCODE_CLI=1
43+
export ELECTRON_ENABLE_LOGGING=1
4744
export ELECTRON_ENABLE_STACK_DUMPING=1
4845

4946
# Launch Code

scripts/test.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
if [[ "$OSTYPE" == "darwin"* ]]; then
55
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
66
ROOT=$(dirname $(dirname $(realpath "$0")))
7-
8-
# On Linux with Electron 2.0.x running out of a VM causes
9-
# a freeze so we only enable this flag on macOS
10-
export ELECTRON_ENABLE_LOGGING=1
117
else
128
ROOT=$(dirname $(dirname $(readlink -f $0)))
139
fi
@@ -29,6 +25,7 @@ test -d node_modules || yarn
2925
node build/lib/electron.js || ./node_modules/.bin/gulp electron
3026

3127
# Unit Tests
28+
export ELECTRON_ENABLE_LOGGING=1
3229
if [[ "$OSTYPE" == "darwin"* ]]; then
3330
cd $ROOT ; ulimit -n 4096 ; \
3431
"$CODE" \

src/main.js

-7
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,6 @@ if (isTempPortable) {
8181

8282
const app = require('electron').app;
8383

84-
// TODO@Ben Electron 2.0.x: prevent localStorage migration from SQLite to LevelDB due to issues
85-
app.commandLine.appendSwitch('disable-mojo-local-storage');
86-
87-
// TODO@Ben Electron 2.0.x: force srgb color profile (for https://github.com/Microsoft/vscode/issues/51791)
88-
// This also seems to fix: https://github.com/Microsoft/vscode/issues/48043
89-
app.commandLine.appendSwitch('force-color-profile', 'srgb');
90-
9184
const minimist = require('minimist');
9285
const paths = require('./paths');
9386

0 commit comments

Comments
 (0)