Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Spelling #15603

Merged
merged 33 commits into from Sep 10, 2017
Merged

Spelling #15603

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
5cbe7c8
spelling: appearance
jsoref Sep 7, 2017
a92178b
spelling: asynchronous
jsoref Sep 10, 2017
1b7f3ca
spelling: beginning
jsoref Sep 10, 2017
cbc4823
spelling: combinations
jsoref Sep 10, 2017
9623acf
spelling: compatible
jsoref Sep 10, 2017
2dc531b
spelling: contiguous
jsoref Sep 10, 2017
fa249d5
spelling: cursor
jsoref Sep 10, 2017
6ce5f48
spelling: doesn't
jsoref Sep 10, 2017
ee87ac1
spelling: falsy
jsoref Sep 10, 2017
cb3fb74
spelling: horizontal
jsoref Sep 10, 2017
d425272
spelling: indentation
jsoref Sep 10, 2017
faa3950
spelling: interpretation
jsoref Sep 10, 2017
ad00369
spelling: intersecting
jsoref Sep 10, 2017
54156a8
spelling: javascript
jsoref Sep 10, 2017
ef94637
spelling: multiple
jsoref Sep 10, 2017
0e7739a
spelling: package
jsoref Sep 10, 2017
6fc5ff8
spelling: previous
jsoref Sep 10, 2017
27e021e
spelling: precedes
jsoref Sep 10, 2017
161a7f1
spelling: perseveres
jsoref Sep 10, 2017
00130a7
spelling: programmatically
jsoref Sep 10, 2017
1b93fcf
spelling: recover
jsoref Sep 10, 2017
9ca5662
spelling: recycle
jsoref Sep 10, 2017
26d44a2
spelling: registry
jsoref Sep 10, 2017
e6f3aee
spelling: responsibility
jsoref Sep 10, 2017
3bf9be2
spelling: separated
jsoref Sep 10, 2017
4fbae9f
spelling: stylesheet
jsoref Sep 10, 2017
2ae8ec1
spelling: successfully
jsoref Sep 10, 2017
dee7be7
spelling: syntactic
jsoref Sep 10, 2017
a5e3dfc
spelling: version
jsoref Sep 10, 2017
feb27a6
spelling: visible
jsoref Sep 10, 2017
e39970c
spelling: visibility
jsoref Sep 10, 2017
c49c62a
spelling: visually
jsoref Sep 10, 2017
2947d6b
spelling: workspace
jsoref Sep 10, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion script/lib/check-chromedriver-version.js
Expand Up @@ -9,7 +9,7 @@ module.exports = function () {
const chromedriverVer = buildMetadata.dependencies['electron-chromedriver']
const mksnapshotVer = buildMetadata.dependencies['electron-mksnapshot']

// Always use tilde on electron-chromedriver so that it can pick up the best patch vesion
// Always use tilde on electron-chromedriver so that it can pick up the best patch version
if (!chromedriverVer.startsWith('~')) {
throw new Error(`electron-chromedriver version in script/package.json should start with a tilde to match latest patch version.`)
}
Expand Down
Expand Up @@ -25,7 +25,7 @@ module.exports = function () {
const rootPackageBackup = backupNodeModules(rootPackagePath)
const intermediatePackageBackup = backupNodeModules(intermediatePackagePath)

// Run `apm install` in the *root* pacakge's path, so we get devDeps w/o apm's weird caching
// Run `apm install` in the *root* package's path, so we get devDeps w/o apm's weird caching
// Then copy this folder into the intermediate package's path so we can run the transpilation in-line.
runApmInstall(rootPackagePath)
if (fs.existsSync(intermediatePackageBackup.nodeModulesPath)) {
Expand Down
6 changes: 3 additions & 3 deletions spec/language-mode-spec.coffee
Expand Up @@ -347,13 +347,13 @@ describe "LanguageMode", ->
expect([fold.start.row, fold.end.row]).toEqual [1, 9]

describe "when bufferRow can't be folded", ->
it "searches upward for the first row that begins a syntatic region containing the given buffer row (and folds it)", ->
it "searches upward for the first row that begins a syntactic region containing the given buffer row (and folds it)", ->
languageMode.foldBufferRow(8)
[fold] = languageMode.unfoldAll()
expect([fold.start.row, fold.end.row]).toEqual [1, 9]

describe "when the bufferRow is already folded", ->
it "searches upward for the first row that begins a syntatic region containing the folded row (and folds it)", ->
it "searches upward for the first row that begins a syntactic region containing the folded row (and folds it)", ->
languageMode.foldBufferRow(2)
expect(editor.isFoldedAtBufferRow(0)).toBe(false)
expect(editor.isFoldedAtBufferRow(1)).toBe(true)
Expand All @@ -369,7 +369,7 @@ describe "LanguageMode", ->
expect([fold.start.row, fold.end.row]).toEqual [1, 3]

describe "when the bufferRow is a single-line comment", ->
it "searches upward for the first row that begins a syntatic region containing the folded row (and folds it)", ->
it "searches upward for the first row that begins a syntactic region containing the folded row (and folds it)", ->
buffer.insert([1, 0], " //this is a single line comment\n")
languageMode.foldBufferRow(1)
[fold] = languageMode.unfoldAll()
Expand Down
2 changes: 1 addition & 1 deletion spec/pane-container-element-spec.coffee
Expand Up @@ -172,7 +172,7 @@ describe "PaneContainerElement", ->
lowerPane = leftPane.splitDown()
expectPaneScale [lowerPane, 1], [leftPane, 1], [leftPane.getParent(), 0.5]

# dynamically close pane, the pane's flexscale will recorver to origin value
# dynamically close pane, the pane's flexscale will recover to origin value
waitsForPromise -> lowerPane.close()
runs -> expectPaneScale [leftPane, 0.5], [rightPane, 1.5]

Expand Down
4 changes: 2 additions & 2 deletions spec/panel-spec.js
Expand Up @@ -71,7 +71,7 @@ describe('Panel', () => {
expect(spy).toHaveBeenCalledWith(false)
})

it('initially renders panel created with visibile: false', () => {
it('initially renders panel created with visible: false', () => {
const panel = new Panel({visible: false, item: new TestPanelItem()}, atom.views)
const element = panel.getElement()
expect(element.style.display).toBe('none')
Expand All @@ -91,7 +91,7 @@ describe('Panel', () => {
})

describe('when a class name is specified', () => {
it('initially renders panel created with visibile: false', () => {
it('initially renders panel created with visible: false', () => {
const panel = new Panel({className: 'some classes', item: new TestPanelItem()}, atom.views)
const element = panel.getElement()

Expand Down
2 changes: 1 addition & 1 deletion spec/reopen-project-menu-manager-spec.js
Expand Up @@ -222,7 +222,7 @@ describe("ReopenProjectMenuManager", () => {
expect(label).toBe('https://launch.pad/apollo/11')
})

it("returns a comma-seperated list of base names if there are multiple", () => {
it("returns a comma-separated list of base names if there are multiple", () => {
const project = { paths: [ '/var/one', '/usr/bin/two', '/etc/mission/control/three' ] }
const label = ReopenProjectMenuManager.createLabel(project)
expect(label).toBe('one, two, three')
Expand Down
2 changes: 1 addition & 1 deletion spec/text-editor-component-spec.js
Expand Up @@ -1601,7 +1601,7 @@ describe('TextEditorComponent', () => {
const decoration = editor.decorateMarker(marker, {type: 'highlight', class: 'a'})
decoration.flash('b', 10)

// Flash on initial appearence of highlight
// Flash on initial appearance of highlight
await component.getNextUpdatePromise()
const highlights = element.querySelectorAll('.highlight.a')
expect(highlights.length).toBe(1)
Expand Down
34 changes: 17 additions & 17 deletions spec/text-editor-spec.coffee
Expand Up @@ -620,7 +620,7 @@ describe "TextEditor", ->
expect(editor.getCursorBufferPosition()).toEqual [0, 0]

describe ".moveToBottom()", ->
it "moves the cusor to the bottom of the buffer", ->
it "moves the cursor to the bottom of the buffer", ->
editor.setCursorScreenPosition [0, 0]
editor.addCursorAtScreenPosition [1, 0]
editor.moveToBottom()
Expand Down Expand Up @@ -1364,7 +1364,7 @@ describe "TextEditor", ->
expect(selections[0].getScreenRange()).toEqual [[3, 0], [10, 0]]

describe ".selectToBeginningOfPreviousParagraph()", ->
it "selects from the cursor to the first line of the pevious paragraph", ->
it "selects from the cursor to the first line of the previous paragraph", ->
editor.setSelectedBufferRange([[3, 0], [4, 5]])
editor.addCursorAtScreenPosition([5, 6])
editor.selectToScreenPosition([6, 2])
Expand Down Expand Up @@ -1397,7 +1397,7 @@ describe "TextEditor", ->
expect(selection1.isReversed()).toBeTruthy()

describe ".selectToTop()", ->
it "selects text from cusor position to the top of the buffer", ->
it "selects text from cursor position to the top of the buffer", ->
editor.setCursorScreenPosition [11, 2]
editor.addCursorAtScreenPosition [10, 0]
editor.selectToTop()
Expand All @@ -1407,7 +1407,7 @@ describe "TextEditor", ->
expect(editor.getLastSelection().isReversed()).toBeTruthy()

describe ".selectToBottom()", ->
it "selects text from cusor position to the bottom of the buffer", ->
it "selects text from cursor position to the bottom of the buffer", ->
editor.setCursorScreenPosition [10, 0]
editor.addCursorAtScreenPosition [9, 3]
editor.selectToBottom()
Expand All @@ -1422,7 +1422,7 @@ describe "TextEditor", ->
expect(editor.getLastSelection().getBufferRange()).toEqual buffer.getRange()

describe ".selectToBeginningOfLine()", ->
it "selects text from cusor position to beginning of line", ->
it "selects text from cursor position to beginning of line", ->
editor.setCursorScreenPosition [12, 2]
editor.addCursorAtScreenPosition [11, 3]

Expand All @@ -1441,7 +1441,7 @@ describe "TextEditor", ->
expect(selection2.isReversed()).toBeTruthy()

describe ".selectToEndOfLine()", ->
it "selects text from cusor position to end of line", ->
it "selects text from cursor position to end of line", ->
editor.setCursorScreenPosition [12, 0]
editor.addCursorAtScreenPosition [11, 3]

Expand Down Expand Up @@ -1483,7 +1483,7 @@ describe "TextEditor", ->
expect(editor.getSelectedBufferRange()).toEqual [[1, 0], [4, 0]]

describe ".selectToBeginningOfWord()", ->
it "selects text from cusor position to beginning of word", ->
it "selects text from cursor position to beginning of word", ->
editor.setCursorScreenPosition [0, 13]
editor.addCursorAtScreenPosition [3, 49]

Expand All @@ -1502,7 +1502,7 @@ describe "TextEditor", ->
expect(selection2.isReversed()).toBeTruthy()

describe ".selectToEndOfWord()", ->
it "selects text from cusor position to end of word", ->
it "selects text from cursor position to end of word", ->
editor.setCursorScreenPosition [0, 4]
editor.addCursorAtScreenPosition [3, 48]

Expand All @@ -1521,7 +1521,7 @@ describe "TextEditor", ->
expect(selection2.isReversed()).toBeFalsy()

describe ".selectToBeginningOfNextWord()", ->
it "selects text from cusor position to beginning of next word", ->
it "selects text from cursor position to beginning of next word", ->
editor.setCursorScreenPosition [0, 4]
editor.addCursorAtScreenPosition [3, 48]

Expand Down Expand Up @@ -1800,7 +1800,7 @@ describe "TextEditor", ->
editor.setSelectedBufferRanges([[[2, 2], [3, 3]], [[3, 3], [5, 5]]])
expect(editor.getSelectedBufferRanges()).toEqual [[[2, 2], [3, 3]], [[3, 3], [5, 5]]]

it "recyles existing selection instances", ->
it "recycles existing selection instances", ->
selection = editor.getLastSelection()
editor.setSelectedBufferRanges([[[2, 2], [3, 3]], [[4, 4], [5, 5]]])

Expand Down Expand Up @@ -1849,7 +1849,7 @@ describe "TextEditor", ->
editor.setSelectedBufferRanges([[[2, 2], [3, 3]], [[3, 0], [5, 5]]])
expect(editor.getSelectedBufferRanges()).toEqual [[[2, 2], [5, 5]]]

it "recyles existing selection instances", ->
it "recycles existing selection instances", ->
selection = editor.getLastSelection()
editor.setSelectedScreenRanges([[[2, 2], [3, 4]], [[4, 4], [5, 5]]])

Expand Down Expand Up @@ -2258,7 +2258,7 @@ describe "TextEditor", ->


describe "when the preceding row consists of folded code", ->
it "moves the line above the folded row and preseveres the correct folds", ->
it "moves the line above the folded row and perseveres the correct folds", ->
expect(editor.lineTextForBufferRow(8)).toBe " return sort(left).concat(pivot).concat(sort(right));"
expect(editor.lineTextForBufferRow(9)).toBe " };"

Expand Down Expand Up @@ -3517,7 +3517,7 @@ describe "TextEditor", ->
expect(buffer.lineForRow(1)).toBe ' var sort = function(items) { if (items.length <= 1) return items;'

describe "when text is selected", ->
it "still deletes all text to begginning of the line", ->
it "still deletes all text to beginning of the line", ->
editor.setSelectedBufferRanges([[[1, 24], [1, 27]], [[2, 0], [2, 4]]])
editor.deleteToBeginningOfLine()
expect(buffer.lineForRow(1)).toBe 'ems) {'
Expand Down Expand Up @@ -3704,7 +3704,7 @@ describe "TextEditor", ->
describe "when autoIndent is enabled", ->
describe "when the cursor's column is less than the suggested level of indentation", ->
describe "when 'softTabs' is true (the default)", ->
it "moves the cursor to the end of the leading whitespace and inserts enough whitespace to bring the line to the suggested level of indentaion", ->
it "moves the cursor to the end of the leading whitespace and inserts enough whitespace to bring the line to the suggested level of indentation", ->
buffer.insert([5, 0], " \n")
editor.setCursorBufferPosition [5, 0]
editor.indent(autoIndent: true)
Expand All @@ -3727,7 +3727,7 @@ describe "TextEditor", ->
expect(buffer.lineForRow(13).length).toBe 8

describe "when 'softTabs' is false", ->
it "moves the cursor to the end of the leading whitespace and inserts enough tabs to bring the line to the suggested level of indentaion", ->
it "moves the cursor to the end of the leading whitespace and inserts enough tabs to bring the line to the suggested level of indentation", ->
convertToHardTabs(buffer)
editor.setSoftTabs(false)
buffer.insert([5, 0], "\t\n")
Expand Down Expand Up @@ -4820,7 +4820,7 @@ describe "TextEditor", ->
expect(buffer.lineForRow(6)).toBe(line7)
expect(buffer.getLineCount()).toBe(count - 1)

describe "when the line being deleted preceeds a fold, and the command is undone", ->
describe "when the line being deleted precedes a fold, and the command is undone", ->
it "restores the line and preserves the fold", ->
editor.setCursorBufferPosition([4])
editor.foldCurrentRow()
Expand Down Expand Up @@ -4992,7 +4992,7 @@ describe "TextEditor", ->
editor.insertText('\n')
expect(editor.indentationForBufferRow(2)).toBe editor.indentationForBufferRow(1) + 1

describe "when the line preceding the newline does't add a level of indentation", ->
describe "when the line preceding the newline doesn't add a level of indentation", ->
it "indents the new line to the same level as the preceding line", ->
editor.setCursorBufferPosition([5, 14])
editor.insertText('\n')
Expand Down
2 changes: 1 addition & 1 deletion spec/tokenized-buffer-spec.coffee
Expand Up @@ -376,7 +376,7 @@ describe "TokenizedBuffer", ->
expect(tokenizedBuffer.bufferRangeForScopeAtPosition('.storage.type.var.js', [0, 3])).toEqual [[0, 0], [0, 3]]

describe "when the selector matches a run of multiple tokens at the position", ->
it "returns the range covered by all contigous tokens (within a single line)", ->
it "returns the range covered by all contiguous tokens (within a single line)", ->
expect(tokenizedBuffer.bufferRangeForScopeAtPosition('.function', [1, 18])).toEqual [[1, 6], [1, 28]]

describe ".indentLevelForRow(row)", ->
Expand Down
2 changes: 1 addition & 1 deletion spec/tooltip-manager-spec.coffee
Expand Up @@ -204,7 +204,7 @@ describe "TooltipManager", ->
disposable2.dispose()
expect(manager.findTooltips(element).length).toBe(0)

it "lets us hide tooltips programatically", ->
it "lets us hide tooltips programmatically", ->
disposable = manager.add element, title: "Title"
hover element, ->
expect(document.body.querySelector(".tooltip")).not.toBeNull()
Expand Down
2 changes: 1 addition & 1 deletion spec/workspace-spec.js
Expand Up @@ -2773,7 +2773,7 @@ i = /test/; #FIXME\
})
})

describe('when the core.allowPendingPaneItems option is falsey', () => {
describe('when the core.allowPendingPaneItems option is falsy', () => {
it('does not open item with `pending: true` option as pending', () => {
let pane = null
atom.config.set('core.allowPendingPaneItems', false)
Expand Down
10 changes: 5 additions & 5 deletions src/compile-cache.js
Expand Up @@ -84,20 +84,20 @@ function compileFileAtPath (compiler, filePath, extension) {
var sourceCode = fs.readFileSync(filePath, 'utf8')
if (compiler.shouldCompile(sourceCode, filePath)) {
var cachePath = compiler.getCachePath(sourceCode, filePath)
var compiledCode = readCachedJavascript(cachePath)
var compiledCode = readCachedJavaScript(cachePath)
if (compiledCode != null) {
cacheStats[extension].hits++
} else {
cacheStats[extension].misses++
compiledCode = compiler.compile(sourceCode, filePath)
writeCachedJavascript(cachePath, compiledCode)
writeCachedJavaScript(cachePath, compiledCode)
}
return compiledCode
}
return sourceCode
}

function readCachedJavascript (relativeCachePath) {
function readCachedJavaScript (relativeCachePath) {
var cachePath = path.join(cacheDirectory, relativeCachePath)
if (fs.isFileSync(cachePath)) {
try {
Expand All @@ -107,7 +107,7 @@ function readCachedJavascript (relativeCachePath) {
return null
}

function writeCachedJavascript (relativeCachePath, code) {
function writeCachedJavaScript (relativeCachePath, code) {
var cachePath = path.join(cacheDirectory, relativeCachePath)
fs.writeFileSync(cachePath, code, 'utf8')
}
Expand Down Expand Up @@ -153,7 +153,7 @@ exports.install = function (resourcesPath, nodeRequire) {
if (!compiler) compiler = COMPILERS['.js']

try {
var fileData = readCachedJavascript(compiler.getCachePath(sourceCode, filePath))
var fileData = readCachedJavaScript(compiler.getCachePath(sourceCode, filePath))
} catch (error) {
console.warn('Error reading compiled file', error.stack)
return null
Expand Down
2 changes: 1 addition & 1 deletion src/config.coffee
Expand Up @@ -221,7 +221,7 @@ ScopeDescriptor = require './scope-descriptor'
# #### object / Grouping other types
#
# A config setting with the type `object` allows grouping a set of config
# settings. The group will be visualy separated and has its own group headline.
# settings. The group will be visually separated and has its own group headline.
# The sub options must be listed under a `properties` key.
#
# ```coffee
Expand Down
4 changes: 2 additions & 2 deletions src/default-directory-provider.coffee
Expand Up @@ -13,7 +13,7 @@ class DefaultDirectoryProvider
#
# Returns:
# * {Directory} if the given URI is compatible with this provider.
# * `null` if the given URI is not compatibile with this provider.
# * `null` if the given URI is not compatible with this provider.
directoryForURISync: (uri) ->
normalizedPath = @normalizePath(uri)
{host} = url.parse(uri)
Expand All @@ -39,7 +39,7 @@ class DefaultDirectoryProvider
#
# Returns a {Promise} that resolves to:
# * {Directory} if the given URI is compatible with this provider.
# * `null` if the given URI is not compatibile with this provider.
# * `null` if the given URI is not compatible with this provider.
directoryForURI: (uri) ->
Promise.resolve(@directoryForURISync(uri))

Expand Down
4 changes: 2 additions & 2 deletions src/dock.js
Expand Up @@ -119,7 +119,7 @@ module.exports = class Dock {
this.setState({visible: false})
}

// Extended: Toggle the dock's visiblity without changing the {Workspace}'s
// Extended: Toggle the dock's visibility without changing the {Workspace}'s
// active pane container.
toggle () {
const state = {visible: !this.state.visible}
Expand All @@ -143,7 +143,7 @@ module.exports = class Dock {
// frame to ensure the property is animated (or not) appropriately, however we luck out in this
// case because the drag start always happens before the item is dragged into the toggle button.
if (nextState.visible !== prevState.visible) {
// Never animate toggling visiblity...
// Never animate toggling visibility...
nextState.shouldAnimate = false
} else if (!nextState.visible && nextState.draggingItem && !prevState.draggingItem) {
// ...but do animate if you start dragging while the panel is hidden.
Expand Down
6 changes: 3 additions & 3 deletions src/native-watcher-registry.js
Expand Up @@ -239,7 +239,7 @@ class RegistryWatcherNode {
this.childPaths.add(path.join(...childPathSegments))
}

// Private: Stop assuming responsbility for a previously assigned child path. If this node is
// Private: Stop assuming responsibility for a previously assigned child path. If this node is
// removed, the named child path will no longer be allocated a {RegistryWatcherNode}.
//
// * `childPathSegments` the {Array} of path segments between this node's directory and the no longer
Expand Down Expand Up @@ -323,13 +323,13 @@ class RegistryWatcherNode {
}
}

// Private: A {RegisteryNode} traversal result that's returned when neither a directory, its children, nor its parents
// Private: A {RegistryNode} traversal result that's returned when neither a directory, its children, nor its parents
// are present in the tree.
class MissingResult {

// Private: Instantiate a new {MissingResult}.
//
// * `lastParent` the final succesfully traversed {RegistryNode}.
// * `lastParent` the final successfully traversed {RegistryNode}.
constructor (lastParent) {
this.lastParent = lastParent
}
Expand Down
2 changes: 1 addition & 1 deletion src/path-watcher.js
Expand Up @@ -437,7 +437,7 @@ class PathWatcher {
// await watcher.getStartPromise()
// fs.writeFile(FILE, 'contents\n', err => {
// // The watcher is listening and the event should be
// // received asyncronously
// // received asynchronously
// }
// })
// })
Expand Down