From 1a0d99621bfe8bd46dda2dc6072a21c777e2d5a1 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 14 May 2015 09:36:12 -0700 Subject: [PATCH 1/8] Avoid saving window state when closing windows after quitting --- src/browser/atom-application.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/browser/atom-application.coffee b/src/browser/atom-application.coffee index afc811144..d81660a49 100644 --- a/src/browser/atom-application.coffee +++ b/src/browser/atom-application.coffee @@ -56,6 +56,7 @@ class AtomApplication atomProtocolHandler: null resourcePath: null version: null + quitting: false exit: (status) -> app.exit(status) @@ -104,7 +105,7 @@ class AtomApplication if process.platform in ['win32', 'linux'] app.quit() return - @saveState() unless window.isSpec + @saveState() unless window.isSpec or @quitting # Public: Adds the {AtomWindow} to the global window list. addWindow: (window) -> @@ -208,6 +209,9 @@ class AtomApplication @openPathOnEvent('application:open-your-stylesheet', 'atom://.atom/stylesheet') @openPathOnEvent('application:open-license', path.join(process.resourcesPath, 'LICENSE.md')) + app.on 'before-quit', => + @quitting = true + app.on 'will-quit', => @killAllProcesses() @deleteSocketFile() From ff56c1f0bb4d5132dd8c01e0c05f5cb0a2118e75 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 14 May 2015 09:49:04 -0700 Subject: [PATCH 2/8] :arrow_up: metrics@0.48 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 072279196..cdc464084 100644 --- a/package.json +++ b/package.json @@ -110,7 +110,7 @@ "keybinding-resolver": "0.32.0", "link": "0.30.0", "markdown-preview": "0.148.0", - "metrics": "0.47.0", + "metrics": "0.48.0", "notifications": "0.44.0", "open-on-github": "0.36.0", "package-generator": "0.39.0", From c4d7df9e991a5743c130cd9c495ce49ca9cfe981 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 14 May 2015 09:54:22 -0700 Subject: [PATCH 3/8] Prevent global variables from leaking out of index.js --- spec/atom-spec.coffee | 2 +- static/index.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/atom-spec.coffee b/spec/atom-spec.coffee index 99a7f432e..c5c4255e3 100644 --- a/spec/atom-spec.coffee +++ b/spec/atom-spec.coffee @@ -20,7 +20,7 @@ describe "the `atom` global", -> afterEach -> atom.setSize(originalSize.width, originalSize.height) - it 'sets the size of the window, and can retrieve the size just set', -> + fit 'sets the size of the window, and can retrieve the size just set', -> atom.setSize(100, 400) expect(atom.getSize()).toEqual width: 100, height: 400 diff --git a/static/index.js b/static/index.js index ef61e8bce..f41d41cd9 100644 --- a/static/index.js +++ b/static/index.js @@ -1,3 +1,5 @@ +(function() { + var fs = require('fs'); var path = require('path'); @@ -204,3 +206,5 @@ var setupWindowBackground = function() { parseLoadSettings(); setupWindowBackground(); + +})(); From b2ee37ab2925a44b840417e68427d923d5eaa197 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 14 May 2015 10:01:06 -0700 Subject: [PATCH 4/8] Unfocus spec --- spec/atom-spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/atom-spec.coffee b/spec/atom-spec.coffee index c5c4255e3..99a7f432e 100644 --- a/spec/atom-spec.coffee +++ b/spec/atom-spec.coffee @@ -20,7 +20,7 @@ describe "the `atom` global", -> afterEach -> atom.setSize(originalSize.width, originalSize.height) - fit 'sets the size of the window, and can retrieve the size just set', -> + it 'sets the size of the window, and can retrieve the size just set', -> atom.setSize(100, 400) expect(atom.getSize()).toEqual width: 100, height: 400 From 827595fcda21c399d2129a631ab2bbacde3489f8 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 14 May 2015 10:07:42 -0700 Subject: [PATCH 5/8] :arrow_up: fuzzy-finder@0.85 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cdc464084..c8f726ed7 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "encoding-selector": "0.20.0", "exception-reporting": "0.24.0", "find-and-replace": "0.162.0", - "fuzzy-finder": "0.84.0", + "fuzzy-finder": "0.85.0", "git-diff": "0.55.0", "go-to-line": "0.30.0", "grammar-selector": "0.47.0", From 26f3fd3cdf8cb657326e14bf036b07d51f3b3c91 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 14 May 2015 10:08:47 -0700 Subject: [PATCH 6/8] :arrow_up: deprecation-cop@0.48 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c8f726ed7..61e1826f9 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,7 @@ "bookmarks": "0.35.0", "bracket-matcher": "0.74.0", "command-palette": "0.35.0", - "deprecation-cop": "0.47.0", + "deprecation-cop": "0.48.0", "dev-live-reload": "0.46.0", "encoding-selector": "0.20.0", "exception-reporting": "0.24.0", From 372fdc2ae0e4cda064d93d0a6633f30e15d0cbcf Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 14 May 2015 10:14:28 -0700 Subject: [PATCH 7/8] :arrow_up: update-package-dependencies@0.10 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 61e1826f9..a960b10a0 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "tabs": "0.68.0", "timecop": "0.31.0", "tree-view": "0.171.0", - "update-package-dependencies": "0.9.0", + "update-package-dependencies": "0.10.0", "welcome": "0.27.0", "whitespace": "0.29.0", "wrap-guide": "0.33.0", From a78bd1b774e98f4e9790f534e6ef4e6418467309 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Thu, 14 May 2015 10:20:51 -0700 Subject: [PATCH 8/8] :arrow_up: autocomplete-plus@2.16.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a960b10a0..b7fd6f2a2 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "autocomplete-css": "0.7.2", "autocomplete-emojis": "2.2.2", "autocomplete-html": "0.7.2", - "autocomplete-plus": "2.15.2", + "autocomplete-plus": "2.16.1", "autocomplete-snippets": "1.6.1", "autoflow": "0.23.0", "autosave": "0.20.0",