8000 1.28 releases by lee-doppelganger · Pull Request #17733 · atom/atom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

1.28 releases #1773 8000 3

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
bbe2fe3
1.28.0-beta0
hubot May 14, 2018
888634b
:arrow_up: fuzzy-finder@1.8.2
jasonrudolph May 17, 2018
42b2235
1.28.0-beta1
jasonrudolph May 17, 2018
235322f
Merge pull request #17351 from atom/improve-message-when-test-fails-d…
jasonrudolph May 18, 2018
2b9269a
:arrow_up: line-ending-selector@0.7.7
jasonrudolph May 18, 2018
55142da
Merge pull request #17362 from atom/electron-2.0.1
jasonrudolph May 18, 2018
fc481f9
Fix deprecated hidden-inset title bar style
npezza93 May 20, 2018
420bae0
Merge pull request #17373 from npezza93/fix-hidden-inset
jasonrudolph May 24, 2018
72448ef
1.28.0-beta2
jasonrudolph May 24, 2018
2f2ebb0
:arrow_up: github
smashwilson May 29, 2018
dff5818
Merge pull request #17422 from atom/aw/github-up-beta
smashwilson May 29, 2018
8c11d56
:arrow_up: atom/github
smashwilson May 30, 2018
ce04c0c
Merge pull request #17433 from atom/aw/github-up
smashwilson May 30, 2018
f0eecd9
:arrow_up: :arrow_up: atom/github
smashwilson May 30, 2018
caa4d42
Merge pull request #17438 from atom/aw/github-up-beta
smashwilson May 31, 2018
35d7d46
Atom version bump
smashwilson Jun 4, 2018
9e14540
:arrow_up: github
smashwilson Jun 4, 2018
3bb2c85
Merge pull request #17462 from atom/aw/github-up-beta
smashwilson Jun 4, 2018
15a2219
:arrow_up: find-and-replace
maxbrunsfeld Jun 4, 2018
77ff959
Merge pull request #17380 from atom/fix-color-problems-using-electron…
daviwil Jun 4, 2018
7623e31
Merge pull request #17464 from atom/extended-color-profile-bits
daviwil Jun 4, 2018
d783e50
:arrow_up: underscore-plus
maxbrunsfeld Jun 5, 2018
a6d80ba
:arrow_up: archive-view@0.64.6
thomasjo Jun 5, 2018
594c2f3
1.28.0
hubot Jun 15, 2018
78909f2
Use specific version of focus-trap
maxbrunsfeld Jun 13, 2018
9855000
:arrow_up: :electron: 2.0.2
jasonrudolph Jun 15, 2018
8106e95
:arrow_up: :electron: 2.0.3
jasonrudolph Jun 21, 2018
2dfcaa1
Bump Atom version to 1.28.1
jasonrudolph Jul 3, 2018
cae082a
Merge pull request #17620 from atom/electron-2.0.4
jasonrudolph Jul 3, 2018
e4ef480
Bump Atom version to 1.28.2
jasonrudolph Jul 9, 2018
dc6631d
:arrow_up: electron@2.0.5
daviwil Jul 13, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "atom",
"productName": "Atom",
"version": "1.28.0-dev",
"version": "1.28.2",
"description": "A hackable text editor for the 21st Century.",
"main": "./src/main-process/main.js",
"repository": {
Expand All @@ -12,7 +12,7 @@
"url": "https://github.com/atom/atom/issues"
},
"license": "MIT",
"electronVersion": "2.0.0",
"electronVersion": "2.0.5",
"dependencies": {
"@atom/nsfw": "^1.0.18",
"@atom/watcher": "1.0.3",
Expand All @@ -34,7 +34,7 @@
"event-kit": "^2.4.0",
"find-parent-dir": "^0.3.0",
"first-mate": "7.1.0",
"focus-trap": "^2.3.0",
"focus-trap": "2.4.5",
"fs-admin": "^0.1.6",
"fs-plus": "^3.0.1",
"fstream": "0.1.24",
Expand Down Expand Up @@ -74,7 +74,7 @@
"text-buffer": "13.14.2",
"tree-sitter": "^0.11.2",
"typescript-simple": "1.0.0",
"underscore-plus": "^1.6.6",
"underscore-plus": "^1.6.8",
"winreg": "^1.2.1",
"yargs": "^3.23.0"
},
Expand All @@ -92,7 +92,7 @@
"solarized-dark-syntax": "1.1.4",
"solarized-light-syntax": "1.1.4",
"about": "1.9.1",
"archive-view": "0.64.5",
"archive-view": "0.64.6",
"autocomplete-atom-api": "0.10.7",
"autocomplete-css": "0.17.5",
"autocomplete-html": "0.8.4",
Expand All @@ -109,16 +109,16 @@
"dev-live-reload": "0.48.1",
"encoding-selector": "0.23.9",
"exception-reporting": "0.43.1",
"find-and-replace": "0.215.10",
"fuzzy-finder": "1.8.1",
"github": "0.15.0",
"find-and-replace": "0.215.11",
"fuzzy-finder": "1.8.2",
"github": "0.15.5",
"git-diff": "1.3.9",
"go-to-line": "0.33.0",
"grammar-selector": "0.50.1",
"image-view": "0.62.4",
"incompatible-packages": "0.27.3",
"keybinding-resolver": "0.38.1",
"line-ending-selector": "0.7.6",
"line-ending-selector": "0.7.7",
"link": "0.31.4",
"markd 10000 own-preview": "0.159.20",
"metrics": "1.2.6",
Expand Down
15 changes: 15 additions & 0 deletions src/config-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,21 @@ const configSchema = {
type: 'boolean',
default: false,
description: 'Experimental: Use the new Tree-sitter parsing system for supported languages.'
},
colorProfile: {
description: "Specify whether Atom should use the operating system's color profile (recommended) or an alternative color profile.<br>Changing this setting will require a relaunch of Atom to take effect.",
type: 'string',
default: 'default',
enum: [
{
value: 'default',
description: 'Use color profile configured in the operating system'
},
{
value: 'srgb',
description: 'Use sRGB color profile'
}
]
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion src/main-process/atom-application.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ class AtomApplication extends EventEmitter {
if (!this.configFilePromise) {
this.configFilePromise = this.configFile.watch()
this.disposable.add(await this.configFilePromise)
this.config.onDidChange('core.titleBar', this.promptForRestart.bind(this))
this.config.onDidChange('core.titleBar', () => this.promptForRestart())
this.config.onDidChange('core.colorProfile', () => this.promptForRestart())
}

const optionsForWindowsToOpen = []
Expand Down
2 changes: 1 addition & 1 deletion src/main-process/atom-window.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class AtomWindow extends EventEmitter {
// taskbar's icon. See https://github.com/atom/atom/issues/4811 for more.
if (process.platform === 'linux') options.icon = ICON_PATH
if (this.shouldAddCustomTitleBar()) options.titleBarStyle = 'hidden'
if (this.shouldAddCustomInsetTitleBar()) options.titleBarStyle = 'hidden-inset'
if (this.shouldAddCustomInsetTitleBar()) options.titleBarStyle = 'hiddenInset'
if (this.shouldHideTitleBar()) options.frame = false
this.browserWindow = new BrowserWindow(options)

Expand Down
27 changes: 27 additions & 0 deletions src/main-process/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ const temp = require('temp').track()
const parseCommandLine = require('./parse-command-line')
const startCrashReporter = require('../crash-reporter-start')
const atomPaths = require('../atom-paths')
const fs = require('fs')
const CSON = require('season')
const Config = require('../config')

module.exports = function start (resourcePath, startTime) {
global.shellStartTime = startTime
Expand Down Expand Up @@ -39,6 +42,12 @@ module.exports = function start (resourcePath, startTime) {
atomPaths.setUserData(app)
setupCompileCache()

const config = getConfig()
const colorProfile = config.get('core.colorProfile')
if (colorProfile && colorProfile !== 'default') {
app.commandLine.appendSwitch('force-color-profile', colorProfile)
}

if (handleStartupEventWithSquirrel()) {
return
} else if (args.test && args.mainProcess) {
Expand Down Expand Up @@ -97,3 +106,21 @@ function setupCompileCache () {
CompileCache.setAtomHomeDirectory(process.env.ATOM_HOME)
CompileCache.install(process.resourcesPath, require)
}

function getConfig () {
const config = new Config()

let configFilePath
if (fs.existsSync(path.join(process.env.ATOM_HOME, 'config.json'))) {
configFilePath = path.join(process.env.ATOM_HOME, 'config.json')
} else if (fs.existsSync(path.join(process.env.ATOM_HOME, 'config.cson'))) {
configFilePath = path.join(process.env.ATOM_HOME, 'config.cson')
}

if (configFilePath) {
const configFileData = CSON.readFileSync(configFilePath)
config.resetUserSettings(configFileData)
}

return config
}
63 changes: 0 additions & 63 deletions src/scope-descriptor.coffee

This file was deleted.

80 changes: 80 additions & 0 deletions src/scope-descriptor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// Extended: Wraps an {Array} of `String`s. The Array describes a path from the
// root of the syntax tree to a token including _all_ scope names for the entire
// path.
//
// Methods that take a `ScopeDescriptor` will also accept an {Array} of {String}
// scope names e.g. `['.source.js']`.
//
// You can use `ScopeDescriptor`s to get language-specific config settings via
// {Config::get}.
//
// You should not need to create a `ScopeDescriptor` directly.
//
// * {TextEditor::getRootScopeDescriptor} to get the language's descriptor.
// * {TextEditor::scopeDescriptorForBufferPosition} to get the descriptor at a
// specific position in the buffer.
// * {Cursor::getScopeDescriptor} to get a cursor's descriptor based on position.
//
// See the [scopes and scope descriptor guide](http://flight-manual.atom.io/behind-atom/sections/scoped-settings-scopes-and-scope-descriptors/)
// for more information.
module.exports =
class ScopeDescriptor {
static fromObject (scopes) {
if (scopes instanceof ScopeDescriptor) {
return scopes
} else {
return new ScopeDescriptor({scopes})
}
}

/*
Section: Construction and Destruction
*/

// Public: Create a {ScopeDescriptor} object.
//
// * `object` {Object}
// * `scopes` {Array} of {String}s
constructor ({scopes}) {
this.scopes = scopes
}

// Public: Returns an {Array} of {String}s
getScopesArray () {
return this.scopes
}

getScopeChain () {
// For backward compatibility, prefix TextMate-style scope names with
// leading dots (e.g. 'source.js' -> '.source.js').
if (this.scopes[0] != null && this.scopes[0].includes('.')) {
let result = ''
for (let i = 0; i < this.scopes.length; i++) {
const scope = this.scopes[i]
if (i > 0) { result += ' ' }
if (scope[0] !== '.') { result += '.' }
result += scope
}
return result
} else {
return this.scopes.join(' ')
}
}

toString () {
return this.getScopeChain()
}

isEqual (other) {
if (this.scopes.length !== other.scopes.length) {
return false
}
for (let i = 0; i < this.scopes.length; i++) {
const scope = this.scopes[i]
if (scope !== other.scopes[i]) {
return false
}
}
return true
}
}
8 changes: 8 additions & 0 deletions vendor/jasmine.js
Original file line number Diff line number Diff line change
Expand Up @@ -2317,6 +2317,14 @@ jasmine.Spec.prototype.waitsFor = function(latchFunction, optional_timeoutMessag
}
}

if (optional_timeoutMessage_ == null) {
const objectToCaptureStack = {}
Error.captureStackTrace(objectToCaptureStack, waitsFor)
const stack = objectToCaptureStack.stack
const line = stack.split('\n')[1]
optional_timeoutMessage_ = `condition ${line}`
}

var waitsForFunc = new jasmine.WaitsForBlock(this.env, optional_timeout_, latchFunction_, optional_timeoutMessage_, this);
this.addToQueue(waitsForFunc);
return this;
Expand Down
0