Skip to content

Commit d5844e0

Browse files
authored
Merge pull request #247 from atom-ide-community/upstream_master
2 parents 8dffd45 + d50b3dc commit d5844e0

Some content is hidden

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

57 files changed

+3265
-2605
lines changed

package-lock.json

Lines changed: 49 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"open-on-github": "https://www.atom.io/api/packages/open-on-github/versions/1.3.2/tarball",
136136
"package-generator": "https://www.atom.io/api/packages/package-generator/versions/1.3.0/tarball",
137137
"pathwatcher": "8.1.0",
138-
"postcss": "8.1.2",
138+
"postcss": "8.1.3",
139139
"postcss-selector-parser": "6.0.4",
140140
"prebuild-install": "5.3.5",
141141
"property-accessors": "^1.1.3",
@@ -147,20 +147,20 @@
147147
"semver": "7.3.2",
148148
"service-hub": "^0.7.4",
149149
"settings-view": "https://www.atom.io/api/packages/settings-view/versions/0.261.6/tarball",
150-
"sinon": "9.2.0",
150+
"sinon": "9.2.1",
151151
"snippets": "https://www.atom.io/api/packages/snippets/versions/1.5.1/tarball",
152152
"solarized-dark-syntax": "file:packages/solarized-dark-syntax",
153153
"solarized-light-syntax": "file:packages/solarized-light-syntax",
154-
"spell-check": "https://www.atom.io/api/packages/spell-check/versions/0.76.1/tarball",
154+
"spell-check": "https://www.atom.io/api/packages/spell-check/versions/0.76.2/tarball",
155155
"status-bar": "https://www.atom.io/api/packages/status-bar/versions/1.8.17/tarball",
156156
"styleguide": "https://www.atom.io/api/packages/styleguide/versions/0.49.12/tarball",
157157
"symbols-view": "https://www.atom.io/api/packages/symbols-view/versions/0.118.4/tarball",
158158
"tabs": "https://www.atom.io/api/packages/tabs/versions/0.110.0/tarball",
159-
"temp": "^0.9.0",
159+
"temp": "0.9.2",
160160
"text-buffer": "13.17.3",
161161
"timecop": "https://www.atom.io/api/packages/timecop/versions/0.36.2/tarball",
162162
"tree-sitter": "0.17.1",
163-
"tree-view": "https://www.atom.io/api/packages/tree-view/versions/0.228.1/tarball",
163+
"tree-view": "https://www.atom.io/api/packages/tree-view/versions/0.228.2/tarball",
164164
"typescript-simple": "8.0.6",
165165
"update-package-dependencies": "file:./packages/update-package-dependencies",
166166
"vscode-ripgrep": "1.9.0",
@@ -219,13 +219,13 @@
219219
"package-generator": "1.3.0",
220220
"settings-view": "0.261.6",
221221
"snippets": "1.5.1",
222-
"spell-check": "0.76.1",
222+
"spell-check": "0.76.2",
223223
"status-bar": "1.8.17",
224224
"styleguide": "0.49.12",
225225
"symbols-view": "0.118.4",
226226
"tabs": "0.110.0",
227227
"timecop": "0.36.2",
228-
"tree-view": "0.228.1",
228+
"tree-view": "0.228.2",
229229
"update-package-dependencies": "file:./packages/update-package-dependencies",
230230
"welcome": "file:./packages/welcome",
231231
"whitespace": "0.37.7",

script/vsts/platforms/templates/bootstrap.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ steps:
1717
}
1818
1919
# Bootstrap
20-
if (($env:AGENT_OS -eq "Windows_NT") -and ($env:BUILD_ARCH -eq "x86")) {
21-
node 'script\vsts\windows-run.js' 'script\bootstrap.cmd'
22-
}
23-
else {
24-
script/bootstrap
25-
}
20+
script/bootstrap
2621
displayName: Bootstrap build environment
2722
env:
2823
GITHUB_TOKEN: $(GITHUB_TOKEN)

script/vsts/platforms/templates/build.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ steps:
2929
3030
# Build
3131
$esc = '--%'
32-
if (($env:AGENT_OS -eq "Windows_NT") -and ($env:BUILD_ARCH -eq "x86")) {
33-
node 'script\vsts\windows-run.js' 'script\build.cmd' --no-bootstrap --compress-artifacts $esc $CodeSign $CreateWindowsInstallaer
34-
} else {
35-
script/build --no-bootstrap --compress-artifacts $esc $env:LinuxArgs $CodeSign $CreateWindowsInstallaer
36-
}
32+
script/build --no-bootstrap --compress-artifacts $esc $env:LinuxArgs $CodeSign $CreateWindowsInstallaer
3733
displayName: Build Atom
3834
env:
3935
GITHUB_TOKEN: $(GITHUB_TOKEN)

script/vsts/platforms/templates/preparation.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,19 @@ steps:
2020
condition: eq(variables['Agent.OS'], 'Linux')
2121

2222
# Common
23+
- pwsh: |
24+
if ($env:BUILD_ARCH -eq "x86") {
25+
echo "##vso[task.setvariable variable=IsWinX86]true"
26+
}
27+
displayName: Set "IsWinX86" based on "BUILD_ARCH"
28+
# Convert "BUILD_ARCH" to a boolean ("IsWinX86") for the following NodeTool task.
29+
# Templates evaluate too early for the matrix variable "BUILD_ARCH" to be available in ${{ template expressions }}.
30+
# Scripts are interpreted at runtime, so "BUILD_ARCH" will be available to this script, and we can set "IsWinX86".
31+
2332
- task: NodeTool@0
2433
inputs:
2534
versionSpec: 12.16.3
35+
force32bit: $(IsWinX86)
2636
displayName: Install Node.js 12.16.3
2737

2838
- script: npm install --global npm@6.14.8

script/vsts/platforms/templates/test.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ steps:
1010
if ($env:AGENT_OS -eq "Darwin") {
1111
osascript -e 'tell application "System Events" to keystroke "x"' # clear screen saver
1212
caffeinate -s script/test # Run with caffeinate to prevent screen saver
13-
} elseif (($env:AGENT_OS -eq "Windows_NT") -and ($env:BUILD_ARCH -eq "x86")) {
14-
node 'script\vsts\windows-run.js' 'script\test.cmd'
1513
} else {
1614
script/test
1715
}
@@ -28,12 +26,7 @@ steps:
2826
condition: and(succeeded(), ne(variables['Atom.SkipTests'], 'true'))
2927
3028
# Test results
31-
- pwsh: |
32-
if (($env:AGENT_OS -eq "Windows_NT") -and ($env:BUILD_ARCH -eq "x86")) {
33-
node 'script\vsts\windows-run.js' 'script\postprocess-junit-results.cmd' --search-folder "$env:TEST_JUNIT_XML_ROOT" --test-results-files "**/*.xml"
34-
} else {
35-
script/postprocess-junit-results --search-folder "$env:TEST_JUNIT_XML_ROOT" --test-results-files "**/*.xml"
36-
}
29+
- pwsh: script/postprocess-junit-results --search-folder "$env:TEST_JUNIT_XML_ROOT" --test-results-files "**/*.xml"
3730
env:
3831
TEST_JUNIT_XML_ROOT: $(Common.TestResultsDirectory)/junit
3932
displayName: Post-process test results

script/vsts/platforms/windows.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ jobs:
108108
$env:FileID=""
109109
}
110110
echo "##vso[task.setvariable variable=FileID]$env:FileID" # Azure syntax
111-
env:
112-
BUILD_ARCH: $(BUILD_ARCH)
113111
displayName: Set FileID based on the arch
114112
115113
- template: templates/download-unzip.yml

script/vsts/windows-run.js

Lines changed: 0 additions & 54 deletions
This file was deleted.

spec/atom-protocol-handler-spec.coffee

Lines changed: 0 additions & 9 deletions
This file was deleted.

spec/atom-protocol-handler-spec.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
describe('"atom" protocol URL', () =>
2+
it('sends the file relative in the package as response', function() {
3+
let called = false;
4+
const request = new XMLHttpRequest();
5+
request.addEventListener('load', () => (called = true));
6+
request.open('GET', 'atom://async/package.json', true);
7+
request.send();
8+
9+
waitsFor('request to be done', () => called === true);
10+
}));

0 commit comments

Comments
 (0)