Skip to content

Instantly share code, notes, and snippets.

@vjeux
Created Feb 4, 2017
Embed
What would you like to do?
diff --git a/pkg/commons-atom/AutocompleteCacher.js b/pkg/commons-atom/AutocompleteCacher.js
index 8c64580..c040e56 100644
--- a/pkg/commons-atom/AutocompleteCacher.js
+++ b/pkg/commons-atom/AutocompleteCacher.js
@@ -14,9 +14,8 @@ export type AutocompleteCacherConfig<T> = {|
// verifying that the cursor has only moved by one column since the last request.
shouldFilter?: (
lastRequest: atom$AutocompleteRequest,
- currentRequest: atom$AutocompleteRequest,
- ) => /* TODO pass originalResult here if any client requires it*/
- boolean,
+ currentRequest: atom$AutocompleteRequest /* TODO pass originalResult here if any client requires it*/,
+ ) => boolean,
|};
type AutocompleteSession<T> = {
diff --git a/pkg/commons-atom/createPackage.js b/pkg/commons-atom/createPackage.js
index 623e19b..64ca928 100644
--- a/pkg/commons-atom/createPackage.js
+++ b/pkg/commons-atom/createPackage.js
@@ -34,7 +34,7 @@ export default function createPackage(Activation: Class<any>): Object {
if (property === 'activate') {
throw new Error(
'Your activation class contains an "activate" method, but that work should be done in the' +
- ' constructor.',
+ ' constructor.',
);
}
if (property === 'deactivate') {
diff --git a/pkg/commons-atom/debounced.js b/pkg/commons-atom/debounced.js
index 099c03b..01bea2c 100644
--- a/pkg/commons-atom/debounced.js
+++ b/pkg/commons-atom/debounced.js
@@ -53,10 +53,7 @@ export function editorChangesDebounced(
debounceInterval: number = DEFAULT_EDITOR_DEBOUNCE_INTERVAL_MS,
): Observable<void> {
return observableFromSubscribeFunction(callback =>
- editor.onDidChange(
- callback,
- ))// Debounce manually rather than using editor.onDidStopChanging so that the debounce time is
- // configurable.
+ editor.onDidChange(callback))// configurable.
.debounceTime(debounceInterval);
}
diff --git a/pkg/commons-atom/projects.js b/pkg/commons-atom/projects.js
index fa3d13c..7669438 100644
--- a/pkg/commons-atom/projects.js
+++ b/pkg/commons-atom/projects.js
@@ -26,7 +26,7 @@ function getValidProjectPaths(): Array<string> {
// isn't yet ready for consumption.
if (
nuclideUri.isRemote(directory.getPath()) &&
- directory instanceof Directory
+ directory instanceof Directory
) {
return false;
}
diff --git a/pkg/commons-atom/spec/createPackage-spec.js b/pkg/commons-atom/spec/createPackage-spec.js
index a1232c7..212699c 100644
--- a/pkg/commons-atom/spec/createPackage-spec.js
+++ b/pkg/commons-atom/spec/createPackage-spec.js
@@ -17,7 +17,7 @@ describe('createPackage', () => {
}
expect(() => createPackage(Activation)).toThrow(
'Your activation class contains an "activate" method, but that work should be done in the' +
- ' constructor.',
+ ' constructor.',
);
});
diff --git a/pkg/commons-atom/vcs.js b/pkg/commons-atom/vcs.js
index 502d835..4dfdecd 100644
--- a/pkg/commons-atom/vcs.js
+++ b/pkg/commons-atom/vcs.js
@@ -231,10 +231,9 @@ async function hgActionToPath(
export function getHgRepositories(): Set<HgRepositoryClient> {
return new Set(
- (arrayCompact(
- atom.project.getRepositories(),
- )// Flow doesn't understand that this filters to hg repositories only, so cast through `any`
- .filter(repository => repository.getType() === 'hg'): Array<any>),
+ (arrayCompact(atom.project.getRepositories()).filter(
+ repository => repository.getType() === 'hg',
+ ): Array<any>),
);
}
diff --git a/pkg/commons-node/Dispatcher.js b/pkg/commons-node/Dispatcher.js
index a4f68a7..f19b13b 100644
--- a/pkg/commons-node/Dispatcher.js
+++ b/pkg/commons-node/Dispatcher.js
@@ -167,7 +167,7 @@ export default class Dispatcher<TPayload> {
invariant(
this._isHandled[id],
'Dispatcher.waitFor(...): Circular dependency detected while ' +
- 'waiting for `%s`.',
+ 'waiting for `%s`.',
id,
);
continue;
diff --git a/pkg/commons-node/collection.js b/pkg/commons-node/collection.js
index 4a1f538..d311961 100644
--- a/pkg/commons-node/collection.js
+++ b/pkg/commons-node/collection.js
@@ -300,7 +300,7 @@ export function objectEntries<T>(obj: {[key: string]: T}): Array<[string, T]> {
for (const key in obj) {
if (
obj.hasOwnProperty(key) &&
- Object.prototype.propertyIsEnumerable.call(obj, key)
+ Object.prototype.propertyIsEnumerable.call(obj, key)
) {
entries.push([key, obj[key]]);
}
diff --git a/pkg/commons-node/nuclideUri.js b/pkg/commons-node/nuclideUri.js
index e918168..07c1684 100644
--- a/pkg/commons-node/nuclideUri.js
+++ b/pkg/commons-node/nuclideUri.js
@@ -123,7 +123,7 @@ function parseRemoteUri(remoteUri: NuclideUri): ParsedRemoteUrl {
`Remote Nuclide URIs must contain hostnames, '${maybeToString(
parsedUri.hostname,
)}' found ` +
- `while parsing '${remoteUri}'`,
+ `while parsing '${remoteUri}'`,
);
// Explicitly copying object properties appeases Flow's "maybe" type handling. Using the `...`
@@ -192,7 +192,7 @@ function relative(uri: NuclideUri, other: NuclideUri): string {
const remote = isRemote(uri);
if (
remote !== isRemote(other) ||
- remote && getHostname(uri) !== getHostname(other)
+ remote && getHostname(uri) !== getHostname(other)
) {
throw new Error(
`Cannot relative urls on different hosts: ${uri} and ${other}`,
diff --git a/pkg/commons-node/process.js b/pkg/commons-node/process.js
index 1b659d6..345aacf 100644
--- a/pkg/commons-node/process.js
+++ b/pkg/commons-node/process.js
@@ -616,7 +616,7 @@ export async function checkOutput(
: `error: ${maybeToString(result.errorMessage)}`;
throw new Error(
`asyncExecute "${command}" failed with ${reason}, ` +
- `stderr: ${result.stderr}, stdout: ${result.stdout}.`,
+ `stderr: ${result.stderr}, stdout: ${result.stdout}.`,
);
}
return result;
diff --git a/pkg/commons-node/scheduleIdleCallback.js b/pkg/commons-node/scheduleIdleCallback.js
index abdcafc..8ef853a 100644
--- a/pkg/commons-node/scheduleIdleCallback.js
+++ b/pkg/commons-node/scheduleIdleCallback.js
@@ -22,9 +22,8 @@
import invariant from 'assert';
-export default (global.requestIdleCallback
- ? // Using Browser API
- // Is guaranteed to resolve after `timeout` milliseconds.
+export default (global.requestIdleCallback // Using Browser API
+ ? // Is guaranteed to resolve after `timeout` milliseconds.
(function scheduleIdleCallback(
callback_: () => void,
options?: {
@@ -40,7 +39,7 @@ export default (global.requestIdleCallback
function fn(deadline) {
if (
deadline.timeRemaining() >= afterRemainingTime ||
- Date.now() - startTime >= timeout
+ Date.now() - startTime >= timeout
) {
invariant(callback != null);
callback(deadline);
@@ -60,9 +59,8 @@ export default (global.requestIdleCallback
}
},
};
- })
- : // Using Node API
- (function scheduleIdleCallback(
+ }) // Using Node API
+ : (function scheduleIdleCallback(
callback: () => void,
options?: {
afterRemainingTime?: 30 | 40 | 49,
diff --git a/pkg/commons-node/spec/nice-spec.js b/pkg/commons-node/spec/nice-spec.js
index 649a640..6e4439b 100644
--- a/pkg/commons-node/spec/nice-spec.js
+++ b/pkg/commons-node/spec/nice-spec.js
@@ -41,7 +41,7 @@ describe('nice', () => {
whichSpy = spyOn(require('../which'), 'default').andCallFake(command => {
if (
shouldFindNiceCommand && command === 'nice' ||
- shouldFindIoniceCommand && command === 'ionice'
+ shouldFindIoniceCommand && command === 'ionice'
) {
return command;
} else {
diff --git a/pkg/commons-node/spec/wootr-spec.js b/pkg/commons-node/spec/wootr-spec.js
index 554726a..5d3db38 100644
--- a/pkg/commons-node/spec/wootr-spec.js
+++ b/pkg/commons-node/spec/wootr-spec.js
@@ -171,7 +171,7 @@ describe('wootr', () => {
it(
'should be the same wstrings when you ' +
- 'insert 4 length 1 chars and 1 length 4 char',
+ 'insert 4 length 1 chars and 1 length 4 char',
() => {
const wstring = new WString(1);
const wstring2 = new WString(2);
diff --git a/pkg/commons-node/wootr.js b/pkg/commons-node/wootr.js
index f4b2b74..5d61918 100644
--- a/pkg/commons-node/wootr.js
+++ b/pkg/commons-node/wootr.js
@@ -125,9 +125,9 @@ export class WString {
// [begin][id:1,1; len: 2, vis: 1;][id:1,4; len: 1, vis: 1;][id:1,3; len: 2, vis: 1;][end]
if (
leftHalf.startId.site === c.startId.site &&
- leftHalf.startId.h === c.startId.h - leftHalf.length &&
- offset === leftHalf.length &&
- c.visible === leftHalf.visible
+ leftHalf.startId.h === c.startId.h - leftHalf.length &&
+ offset === leftHalf.length &&
+ c.visible === leftHalf.visible
) {
leftHalf.length += c.length;
} else if (offset === leftHalf.length) {
@@ -181,7 +181,7 @@ export class WString {
) {
if (
this._string[originalIndex].length > offset &&
- this._string[originalIndex].visible
+ this._string[originalIndex].visible
) {
break;
}
@@ -240,9 +240,9 @@ export class WString {
const currentRun = this._string[i];
if (
currentRun.startId.site === c.id.site &&
- currentRun.startId.h <= c.id.h &&
- currentRun.startId.h + currentRun.length > c.id.h &&
- (!visibleOnly || this._string[i].visible)
+ currentRun.startId.h <= c.id.h &&
+ currentRun.startId.h + currentRun.length > c.id.h &&
+ (!visibleOnly || this._string[i].visible)
) {
return currentOffset + (c.id.h - currentRun.startId.h);
}
@@ -271,7 +271,7 @@ export class WString {
for (i = 0; i < this._string.length; i++) {
if (
this._string[i].length > offset &&
- (!visibleOnly || this._string[i].visible)
+ (!visibleOnly || this._string[i].visible)
) {
break;
}
diff --git a/pkg/nuclide-adb-logcat/lib/Activation.js b/pkg/nuclide-adb-logcat/lib/Activation.js
index 3a2f074..47526ad 100644
--- a/pkg/nuclide-adb-logcat/lib/Activation.js
+++ b/pkg/nuclide-adb-logcat/lib/Activation.js
@@ -25,8 +25,7 @@ export default class Activation {
constructor(state: ?Object) {
const message$ = Observable.defer(() => createMessageStream(
- createProcessStream()// Retry 3 times (unless we get a ENOENT)
- .retryWhen(errors => errors.scan(
+ createProcessStream().retryWhen(errors => errors.scan(
(errCount, err) => {
if (isNoEntError(err) || errCount >= 2) {
throw err;
diff --git a/pkg/nuclide-adb-logcat/lib/createMessageStream.js b/pkg/nuclide-adb-logcat/lib/createMessageStream.js
index 2dfc6c8..45a86fb 100644
--- a/pkg/nuclide-adb-logcat/lib/createMessageStream.js
+++ b/pkg/nuclide-adb-logcat/lib/createMessageStream.js
@@ -95,7 +95,7 @@ function filter(messages: Observable<Message>): Observable<Message> {
} catch (err) {
atom.notifications.addError(
'The nuclide-adb-logcat.whitelistedTags setting contains an invalid regular expression' +
- ' string. Fix it in your Atom settings.',
+ ' string. Fix it in your Atom settings.',
);
return /.*/;
}
diff --git a/pkg/nuclide-arcanist/lib/ArcBuildSystem.js b/pkg/nuclide-arcanist/lib/ArcBuildSystem.js
index 5af58c7..4e5b53b 100644
--- a/pkg/nuclide-arcanist/lib/ArcBuildSystem.js
+++ b/pkg/nuclide-arcanist/lib/ArcBuildSystem.js
@@ -52,7 +52,7 @@ export default class ArcBuildSystem {
.filter(
model =>
model.isArcSupported() !== null &&
- model.getActiveProjectPath() === path,
+ model.getActiveProjectPath() === path,
);
const enabledObservable = storeReady
diff --git a/pkg/nuclide-arcanist/lib/ArcanistDiagnosticsProvider.js b/pkg/nuclide-arcanist/lib/ArcanistDiagnosticsProvider.js
index 459df7a..192f902 100644
--- a/pkg/nuclide-arcanist/lib/ArcanistDiagnosticsProvider.js
+++ b/pkg/nuclide-arcanist/lib/ArcanistDiagnosticsProvider.js
@@ -124,10 +124,10 @@ export class ArcanistDiagnosticsProvider {
const maybeProperties = {};
if (
diagnostic.original != null &&
- diagnostic.replacement != null &&
- // Sometimes linters set original and replacement to the same value. Obviously that won't
- // fix anything.
- diagnostic.original !== diagnostic.replacement
+ diagnostic.replacement != null &&
+ // Sometimes linters set original and replacement to the same value. Obviously that won't
+ // fix anything.
+ diagnostic.original !== diagnostic.replacement
) {
// Copy the object so the type refinements hold...
maybeProperties.fix = this._getFix({...diagnostic});
diff --git a/pkg/nuclide-arcanist/lib/openArcDeepLink.js b/pkg/nuclide-arcanist/lib/openArcDeepLink.js
index 9ee5379..c38bce7 100644
--- a/pkg/nuclide-arcanist/lib/openArcDeepLink.js
+++ b/pkg/nuclide-arcanist/lib/openArcDeepLink.js
@@ -56,8 +56,8 @@ export async function openArcDeepLink(
if (matches.length === 0) {
throw new Error(
`The file you are trying to open is in the \`${project}\` project ` +
- 'but you do not have the project open.<br />' +
- 'Please add the project manually and try again.',
+ 'but you do not have the project open.<br />' +
+ 'Please add the project manually and try again.',
);
}
diff --git a/pkg/nuclide-arcanist/lib/tryReopenProject.js b/pkg/nuclide-arcanist/lib/tryReopenProject.js
index dade89a..434263d 100644
--- a/pkg/nuclide-arcanist/lib/tryReopenProject.js
+++ b/pkg/nuclide-arcanist/lib/tryReopenProject.js
@@ -27,11 +27,11 @@ export default (async function tryReopenProject(
{
description: (
`You tried to open a file in the \`${projectId}\` project, but it doesn't ` +
- 'seem to be in your open projects.<br />' +
- `You last had it open at \`${nuclideUri.nuclideUriToDisplayString(
- lastPath,
- )}\`.<br />` +
- 'Would you like to try re-opening it?'
+ 'seem to be in your open projects.<br />' +
+ `You last had it open at \`${nuclideUri.nuclideUriToDisplayString(
+ lastPath,
+ )}\`.<br />` +
+ 'Would you like to try re-opening it?'
),
dismissable: true,
buttons: [
diff --git a/pkg/nuclide-blame-provider-hg/lib/HgBlameProvider.js b/pkg/nuclide-blame-provider-hg/lib/HgBlameProvider.js
index b0544ee..44a8e4e 100644
--- a/pkg/nuclide-blame-provider-hg/lib/HgBlameProvider.js
+++ b/pkg/nuclide-blame-provider-hg/lib/HgBlameProvider.js
@@ -20,11 +20,11 @@ function canProvideBlameForEditor(editor: atom$TextEditor): boolean {
if (editor.isModified()) {
atom.notifications.addInfo(
'There is Hg blame information for this file, but only for saved changes. ' +
- 'Save, then try again.',
+ 'Save, then try again.',
);
logger.info(
'nuclide-blame: Could not open Hg blame due to unsaved changes in file: ' +
- String(editor.getPath()),
+ String(editor.getPath()),
);
return false;
}
diff --git a/pkg/nuclide-blame/lib/BlameGutter.js b/pkg/nuclide-blame/lib/BlameGutter.js
index 05738e4..bc7e8e5 100644
--- a/pkg/nuclide-blame/lib/BlameGutter.js
+++ b/pkg/nuclide-blame/lib/BlameGutter.js
@@ -116,7 +116,7 @@ export default class BlameGutter {
} catch (error) {
atom.notifications.addError(
'Failed to fetch blame to display. ' +
- 'The file is empty or untracked or the repository cannot be reached.',
+ 'The file is empty or untracked or the repository cannot be reached.',
{detail: error},
);
atom.commands.dispatch(
@@ -326,10 +326,10 @@ class GutterElement extends React.Component {
const tooltip = {
title: (
escapeHTML(revision.title) +
- '<br />' +
- escapeHTML(unixname) +
- ' &middot; ' +
- escapeHTML(revision.date.toDateString())
+ '<br />' +
+ escapeHTML(unixname) +
+ ' &middot; ' +
+ escapeHTML(revision.date.toDateString())
),
delay: 0,
placement: 'right',
diff --git a/pkg/nuclide-blame/lib/main.js b/pkg/nuclide-blame/lib/main.js
index a5bc073..7e19995 100644
--- a/pkg/nuclide-blame/lib/main.js
+++ b/pkg/nuclide-blame/lib/main.js
@@ -135,7 +135,7 @@ class Activation {
getLogger().info(
'nuclide-blame: Could not open blame: no blame provider currently available for this ' +
- `file: ${String(editor.getPath())}`,
+ `file: ${String(editor.getPath())}`,
);
}
}
diff --git a/pkg/nuclide-bookshelf/lib/accumulateState.js b/pkg/nuclide-bookshelf/lib/accumulateState.js
index 3214436..30238dd 100644
--- a/pkg/nuclide-bookshelf/lib/accumulateState.js
+++ b/pkg/nuclide-bookshelf/lib/accumulateState.js
@@ -172,7 +172,7 @@ function accumulateUpdatePaneItemState(
[repositoryPath, repositoryState],
) => {
const fileList = (repositoryPathToEditors.get(repositoryPath) ||
- []).map(textEditor => textEditor.getPath() || '');
+ []).map(textEditor => textEditor.getPath() || '');
return [
repositoryPath,
accumulateRepositoryStateUpdatePaneItemState(
diff --git a/pkg/nuclide-bookshelf/lib/utils.js b/pkg/nuclide-bookshelf/lib/utils.js
index bd94549..f0e8240 100644
--- a/pkg/nuclide-bookshelf/lib/utils.js
+++ b/pkg/nuclide-bookshelf/lib/utils.js
@@ -61,7 +61,7 @@ export function deserializeBookShelfState(
): BookShelfState {
if (
serializedBookShelfState == null ||
- serializedBookShelfState.repositoryPathToState == null
+ serializedBookShelfState.repositoryPathToState == null
) {
return getEmptBookShelfState();
}
@@ -132,7 +132,7 @@ export function shortHeadChangedNotification(
{
detail: (
'Would you like to open the files you had active then?\n \n' +
- "ProTip: Change the default behavior from 'Nuclide Settings>IDE Settings>Book Shelf'"
+ "ProTip: Change the default behavior from 'Nuclide Settings>IDE Settings>Book Shelf'"
),
dismissable: true,
buttons: [
diff --git a/pkg/nuclide-buck-rpc/lib/BuckService.js b/pkg/nuclide-buck-rpc/lib/BuckService.js
index fe45928..46b97c0 100644
--- a/pkg/nuclide-buck-rpc/lib/BuckService.js
+++ b/pkg/nuclide-buck-rpc/lib/BuckService.js
@@ -579,7 +579,7 @@ export async function buildRuleTypeFor(
// Don't prepend this for aliases though (aliases will not have colons or .)
if (
(canonicalName.indexOf(':') !== -1 || canonicalName.indexOf('.') !== -1) &&
- !canonicalName.startsWith('//')
+ !canonicalName.startsWith('//')
) {
canonicalName = '//' + canonicalName;
}
diff --git a/pkg/nuclide-buck/lib/BuckBuildSystem.js b/pkg/nuclide-buck/lib/BuckBuildSystem.js
index 11fb5f3..d68a961 100644
--- a/pkg/nuclide-buck/lib/BuckBuildSystem.js
+++ b/pkg/nuclide-buck/lib/BuckBuildSystem.js
@@ -230,7 +230,7 @@ export class BuckBuildSystem {
...task,
disabled: (
state.isLoadingPlatforms ||
- !shouldEnableTask(task.type, buildRuleType, target)
+ !shouldEnableTask(task.type, buildRuleType, target)
),
}));
});
@@ -271,8 +271,7 @@ export class BuckBuildSystem {
const rootEpic = (actions, store) => combineEpics(...epics)(
actions,
store,
- )// Log errors and continue.
- .catch((err, stream) => {
+ ).catch((err, stream) => {
getLogger().error(err);
return stream;
});
@@ -289,9 +288,9 @@ export class BuckBuildSystem {
runTask(taskType: string): Task {
invariant(
taskType === 'build' ||
- taskType === 'test' ||
- taskType === 'run' ||
- taskType === 'debug',
+ taskType === 'test' ||
+ taskType === 'run' ||
+ taskType === 'debug',
'Invalid task type',
);
@@ -351,9 +350,9 @@ export class BuckBuildSystem {
let outputPath;
if (
output == null ||
- output[0] == null ||
- output[0]['buck.outputPath'] == null ||
- (outputPath = output[0]['buck.outputPath'].trim()) === ''
+ output[0] == null ||
+ output[0]['buck.outputPath'] == null ||
+ (outputPath = output[0]['buck.outputPath'].trim()) === ''
) {
throw new Error(
"Couldn't determine binary path from Buck output!",
diff --git a/pkg/nuclide-buck/lib/BuckEventStream.js b/pkg/nuclide-buck/lib/BuckEventStream.js
index 672351c..38972e5 100644
--- a/pkg/nuclide-buck/lib/BuckEventStream.js
+++ b/pkg/nuclide-buck/lib/BuckEventStream.js
@@ -108,9 +108,9 @@ export function getEventsFromSocket(
const progressEvents = eventStream.switchMap(event => {
if (
event.type === 'progress' &&
- event.progress != null &&
- event.progress > 0 &&
- event.progress < 1
+ event.progress != null &&
+ event.progress > 0 &&
+ event.progress < 1
) {
return log(`Building... [${Math.round(event.progress * 100)}%]`);
}
diff --git a/pkg/nuclide-buck/lib/HyperclickProvider.js b/pkg/nuclide-buck/lib/HyperclickProvider.js
index 6c64985..cf33a93 100644
--- a/pkg/nuclide-buck/lib/HyperclickProvider.js
+++ b/pkg/nuclide-buck/lib/HyperclickProvider.js
@@ -105,11 +105,11 @@ export async function findTargetLocation(target: Target): Promise<any> {
const lines = data.split('\n');
const regex = new RegExp(
'^\\s*' + // beginning of the line
- 'name\\s*=\\s*' + // name =
- '[\'"]' + // opening quotation mark
- escapeStringRegExp(target.name) + // target name
- '[\'"]' + // closing quotation mark
- ',?$', // optional trailling comma
+ 'name\\s*=\\s*' + // name =
+ '[\'"]' + // opening quotation mark
+ escapeStringRegExp(target.name) + // target name
+ '[\'"]' + // closing quotation mark
+ ',?$', // optional trailling comma
);
let lineIndex = 0;
diff --git a/pkg/nuclide-buck/lib/observeBuildCommands.js b/pkg/nuclide-buck/lib/observeBuildCommands.js
index de9643a..c2490f3 100644
--- a/pkg/nuclide-buck/lib/observeBuildCommands.js
+++ b/pkg/nuclide-buck/lib/observeBuildCommands.js
@@ -47,9 +47,9 @@ export default function observeBuildCommands(store: Store): IDisposable {
// Only report simple single-target build commands for now.
if (
Date.now() - timestamp > CHECK_INTERVAL ||
- command !== 'build' ||
- args.length !== 1 ||
- args[0].startsWith('-')
+ command !== 'build' ||
+ args.length !== 1 ||
+ args[0].startsWith('-')
) {
return Observable.empty();
}
@@ -72,7 +72,7 @@ export default function observeBuildCommands(store: Store): IDisposable {
`You recently ran \`buck build ${args.join(
' ',
)}\` from the command line.<br />` +
- 'Would you like to try building from the Task Runner?',
+ 'Would you like to try building from the Task Runner?',
{
dismissable: true,
icon: 'nuclicon-buck',
diff --git a/pkg/nuclide-buck/lib/redux/Actions.js b/pkg/nuclide-buck/lib/redux/Actions.js
index d1a5ec6..7e8ea42 100644
--- a/pkg/nuclide-buck/lib/redux/Actions.js
+++ b/pkg/nuclide-buck/lib/redux/Actions.js
@@ -26,9 +26,8 @@ export type Action =
| {|
type: 'SET_TASK_SETTINGS',
settings: TaskSettings,
- |}
- | /* The actions below are meant to be used in Epics only.*/
- {|
+ |} /* The actions below are meant to be used in Epics only.*/
+ | {|
type: 'SET_BUCK_ROOT',
buckRoot: ?string,
|}
diff --git a/pkg/nuclide-busy-signal/lib/BusySignalProviderBase.js b/pkg/nuclide-busy-signal/lib/BusySignalProviderBase.js
index 5c67d1c..24d3220 100644
--- a/pkg/nuclide-busy-signal/lib/BusySignalProviderBase.js
+++ b/pkg/nuclide-busy-signal/lib/BusySignalProviderBase.js
@@ -58,8 +58,8 @@ export class BusySignalProviderBase {
atom.workspace.observeActivePaneItem(item => {
if (
item != null &&
- typeof item.getPath === 'function' &&
- item.getPath() === options.onlyForFile
+ typeof item.getPath === 'function' &&
+ item.getPath() === options.onlyForFile
) {
if (displayedDisposable == null) {
displayedDisposable = this._displayMessage(message);
diff --git a/pkg/nuclide-clang-rpc/lib/ClangFlagsManager.js b/pkg/nuclide-clang-rpc/lib/ClangFlagsManager.js
index ce0b5de..ba424ea 100644
--- a/pkg/nuclide-clang-rpc/lib/ClangFlagsManager.js
+++ b/pkg/nuclide-clang-rpc/lib/ClangFlagsManager.js
@@ -161,7 +161,7 @@ export default class ClangFlagsManager {
.filter(
path =>
ClangFlagsManager._getFileBasename(path) === basename &&
- isSourceFile(path),
+ isSourceFile(path),
)
.map(path => {
return {score: commonPrefix(path, header), path};
@@ -430,7 +430,7 @@ export default class ClangFlagsManager {
args = args.filter(
arg =>
normalizedSourceFile !== arg &&
- normalizedSourceFile !== nuclideUri.resolve(basePath, arg),
+ normalizedSourceFile !== nuclideUri.resolve(basePath, arg),
);
// Resolve relative path arguments against the Buck project root.
@@ -474,7 +474,7 @@ export default class ClangFlagsManager {
for (const file of files) {
if (
isSourceFile(file) &&
- ClangFlagsManager._getFileBasename(file) === basename
+ ClangFlagsManager._getFileBasename(file) === basename
) {
return nuclideUri.join(dir, file);
}
diff --git a/pkg/nuclide-clang/lib/AutocompleteHelpers.js b/pkg/nuclide-clang/lib/AutocompleteHelpers.js
index 460a30f..fb3320d 100644
--- a/pkg/nuclide-clang/lib/AutocompleteHelpers.js
+++ b/pkg/nuclide-clang/lib/AutocompleteHelpers.js
@@ -151,7 +151,7 @@ function _convertArgsToMultiLineSnippet(
}
const line = `${' '.repeat(spacesCnt)}${arg.text}:\${${index +
- 1}:${arg.placeholder}}\n`;
+ 1}:${arg.placeholder}}\n`;
if (index > 0 && line[colonPosition - arg.offset] !== ':') {
throw Error('This is a bug! Colons are not aligned!');
}
diff --git a/pkg/nuclide-clang/lib/ClangLinter.js b/pkg/nuclide-clang/lib/ClangLinter.js
index 7905481..3755c53 100644
--- a/pkg/nuclide-clang/lib/ClangLinter.js
+++ b/pkg/nuclide-clang/lib/ClangLinter.js
@@ -87,7 +87,7 @@ export default class ClangLinter {
invariant(bufferPath != null);
if (
data.accurateFlags ||
- featureConfig.get('nuclide-clang.defaultDiagnostics')
+ featureConfig.get('nuclide-clang.defaultDiagnostics')
) {
data.diagnostics.forEach(diagnostic => {
// We show only warnings, errors and fatals (2, 3 and 4, respectively).
diff --git a/pkg/nuclide-clang/lib/DefinitionHelpers.js b/pkg/nuclide-clang/lib/DefinitionHelpers.js
index 218e483..d47b20e 100644
--- a/pkg/nuclide-clang/lib/DefinitionHelpers.js
+++ b/pkg/nuclide-clang/lib/DefinitionHelpers.js
@@ -69,7 +69,7 @@ export default class DefinitionHelpers {
position: result.point,
range: result.extent,
language: 'clang'
- // TODO: projectRoot,
+ // TODO: projectRoot,,
};
if (result.spelling != null) {
diff --git a/pkg/nuclide-clang/spec/AutocompleteHelpers-spec.js b/pkg/nuclide-clang/spec/AutocompleteHelpers-spec.js
index 4abd2e3..7604f27 100644
--- a/pkg/nuclide-clang/spec/AutocompleteHelpers-spec.js
+++ b/pkg/nuclide-clang/spec/AutocompleteHelpers-spec.js
@@ -67,8 +67,8 @@ describe('AutocompleteHelpers', () => {
expect(body).toBe(
'ArgumentOne:${1:arg1}\n' +
- ' arg2:${2:argTwo}\n' +
- ' Argument3:${3:argument3}\n',
+ ' arg2:${2:argTwo}\n' +
+ ' Argument3:${3:argument3}\n',
);
});
@@ -134,9 +134,9 @@ describe('AutocompleteHelpers', () => {
expect(body).toBe(
'Arg1:${1:argumentOne}\n' +
- ' arg2:${2:argTwo}\n' +
- ' Argument3:${3:argument3}\n' +
- ' test123:${4:this_is_a_test_placeholder}\n',
+ ' arg2:${2:argTwo}\n' +
+ ' Argument3:${3:argument3}\n' +
+ ' test123:${4:this_is_a_test_placeholder}\n',
);
});
diff --git a/pkg/nuclide-clang/spec/findWholeRangeOfSymbol-spec.js b/pkg/nuclide-clang/spec/findWholeRangeOfSymbol-spec.js
index adbca62..00a2885 100644
--- a/pkg/nuclide-clang/spec/findWholeRangeOfSymbol-spec.js
+++ b/pkg/nuclide-clang/spec/findWholeRangeOfSymbol-spec.js
@@ -72,7 +72,7 @@ describe('findWholeRangeOfSymbol', () => {
it(
'finds the range of a selector with multiple arguments, when any of the segments is the' +
- ' selected "text".',
+ ' selected "text".',
() => {
const spelling = 'createDirectoryAtPath:withIntermediateDirectories:attributes:error:';
// The ranges returned should be all the ranges of all the segments, including the colons.
diff --git a/pkg/nuclide-code-format/lib/CodeFormatManager.js b/pkg/nuclide-code-format/lib/CodeFormatManager.js
index 4d502de..306517e 100644
--- a/pkg/nuclide-code-format/lib/CodeFormatManager.js
+++ b/pkg/nuclide-code-format/lib/CodeFormatManager.js
@@ -127,7 +127,7 @@ export default class CodeFormatManager {
const provider = matchingProviders[0];
if (
provider.formatCode != null &&
- (!selectionRangeEmpty || provider.formatEntireFile == null)
+ (!selectionRangeEmpty || provider.formatEntireFile == null)
) {
const formatted = await provider.formatCode(editor, formatRange);
// Throws if contents have changed since the time of triggering format code.
diff --git a/pkg/nuclide-console/lib/LogTailer.js b/pkg/nuclide-console/lib/LogTailer.js
index 576ea84..8d042cc 100644
--- a/pkg/nuclide-console/lib/LogTailer.js
+++ b/pkg/nuclide-console/lib/LogTailer.js
@@ -71,9 +71,8 @@ export class LogTailer {
this._errorHandler = options.handleError;
const messages = options.messages.share();
this._ready = options.ready == null
- ? null
- : // Guard against a never-ending ready stream.
- // $FlowFixMe: Add `materialize()` to Rx defs
+ ? null // Guard against a never-ending ready stream.
+ : // $FlowFixMe: Add `materialize()` to Rx defs
options.ready.takeUntil(messages.materialize().takeLast(1));
this._runningCallbacks = [];
this._startCount = 0;
diff --git a/pkg/nuclide-console/lib/redux/Epics.js b/pkg/nuclide-console/lib/redux/Epics.js
index 449d7a0..6270c4d 100644
--- a/pkg/nuclide-console/lib/redux/Epics.js
+++ b/pkg/nuclide-console/lib/redux/Epics.js
@@ -65,8 +65,7 @@ export function executeEpic(
text: code,
scopeName: executor.scopeName,
}),
- )// Execute the code as a side-effect.
- .finally(() => {
+ ).finally(() => {
executor.send(code);
});
});
diff --git a/pkg/nuclide-console/lib/ui/Console.js b/pkg/nuclide-console/lib/ui/Console.js
index 227f648..97ec07e 100644
--- a/pkg/nuclide-console/lib/ui/Console.js
+++ b/pkg/nuclide-console/lib/ui/Console.js
@@ -137,7 +137,8 @@ export default class Console extends React.Component {
onSelectedSourcesChange={this.props.selectSources}
/>
{
- /*
+
+ /*
We need an extra wrapper element here in order to have the new messages notification stick
to the bottom of the scrollable area (and not scroll with it).
*/
diff --git a/pkg/nuclide-console/lib/ui/UnseenMessagesNotification.js b/pkg/nuclide-console/lib/ui/UnseenMessagesNotification.js
index f7312b9..6a824da 100644
--- a/pkg/nuclide-console/lib/ui/UnseenMessagesNotification.js
+++ b/pkg/nuclide-console/lib/ui/UnseenMessagesNotification.js
@@ -32,6 +32,7 @@ export default class NewMessagesNotification extends React.Component {
<div className={className} onClick={this.props.onClick}>
<span className="nuclide-console-new-messages-notification-icon icon icon-nuclicon-arrow-down" />
+
New Messages
</div>
);
diff --git a/pkg/nuclide-console/spec/LogTailer-spec.js b/pkg/nuclide-console/spec/LogTailer-spec.js
index aa7ab8f..b8f4872 100644
--- a/pkg/nuclide-console/spec/LogTailer-spec.js
+++ b/pkg/nuclide-console/spec/LogTailer-spec.js
@@ -124,7 +124,7 @@ describe('LogTailer', () => {
it(
'invokes the running callback with a cancellation error when the source completes before ever' +
- ' becoming ready',
+ ' becoming ready',
() => {
const messages = new Subject();
const logTailer = new LogTailer({
diff --git a/pkg/nuclide-datatip/lib/DatatipManager.js b/pkg/nuclide-datatip/lib/DatatipManager.js
index e902fe6..5d67d49 100644
--- a/pkg/nuclide-datatip/lib/DatatipManager.js
+++ b/pkg/nuclide-datatip/lib/DatatipManager.js
@@ -435,8 +435,8 @@ class DatatipManagerForEditor {
if (
this._blacklistedPosition &&
- data.range &&
- data.range.containsPoint(this._blacklistedPosition)
+ data.range &&
+ data.range.containsPoint(this._blacklistedPosition)
) {
this._setState(DatatipState.HIDDEN);
return;
@@ -445,8 +445,8 @@ class DatatipManagerForEditor {
const currentPosition = getPosition();
if (
!currentPosition ||
- !data.range ||
- !data.range.containsPoint(currentPosition)
+ !data.range ||
+ !data.range.containsPoint(currentPosition)
) {
this._setState(DatatipState.HIDDEN);
return;
@@ -473,7 +473,7 @@ class DatatipManagerForEditor {
_hideOrCancel(): void {
if (
this._datatipState === DatatipState.HIDDEN ||
- this._datatipState === DatatipState.FETCHING
+ this._datatipState === DatatipState.FETCHING
) {
this._blacklistedPosition = getBufferPosition(
this._editor,
@@ -512,8 +512,8 @@ class DatatipManagerForEditor {
);
if (
currentPosition &&
- this._range &&
- this._range.containsPoint(currentPosition)
+ this._range &&
+ this._range.containsPoint(currentPosition)
) {
return;
}
@@ -562,11 +562,11 @@ class DatatipManagerForEditor {
if (
this._datatipState === DatatipState.HIDDEN &&
- // Unfortunately, when you do keydown of the shortcut, it's going to
- // hide it, we need to make sure that when we do keyup, it doesn't show
- // it up right away. We assume that a keypress is done within 100ms
- // and don't show it again if it was hidden so soon.
- performance.now() - this._lastHiddenTime > 100
+ // Unfortunately, when you do keydown of the shortcut, it's going to
+ // hide it, we need to make sure that when we do keyup, it doesn't show
+ // it up right away. We assume that a keypress is done within 100ms
+ // and don't show it again if it was hidden so soon.
+ performance.now() - this._lastHiddenTime > 100
) {
this._startFetching(() => this._editor.getCursorScreenPosition());
return;
@@ -619,7 +619,7 @@ export class DatatipManager {
if (!manager) {
throw new Error(
'Trying to create a pinned data tip on an editor that has ' +
- 'no datatip manager',
+ 'no datatip manager',
);
}
return manager.createPinnedDataTip(component, range, pinnable, editor);
diff --git a/pkg/nuclide-debugger-iwdp-rpc/lib/BreakpointManager.js b/pkg/nuclide-debugger-iwdp-rpc/lib/BreakpointManager.js
index 9676740..6e2096f 100644
--- a/pkg/nuclide-debugger-iwdp-rpc/lib/BreakpointManager.js
+++ b/pkg/nuclide-debugger-iwdp-rpc/lib/BreakpointManager.js
@@ -185,8 +185,8 @@ export class BreakpointManager {
// We will receive multiple responses, so just send the first non-error one.
if (
response.result != null &&
- response.error == null &&
- response.result.breakpointId != null
+ response.error == null &&
+ response.result.breakpointId != null
) {
breakpoint.jscId = response.result.breakpointId;
response.result.breakpointId = nuclideId;
diff --git a/pkg/nuclide-debugger-native-rpc/lib/NativeDebuggerServiceImplementation.js b/pkg/nuclide-debugger-native-rpc/lib/NativeDebuggerServiceImplementation.js
index 46c8c0d..01f6100 100644
--- a/pkg/nuclide-debugger-native-rpc/lib/NativeDebuggerServiceImplementation.js
+++ b/pkg/nuclide-debugger-native-rpc/lib/NativeDebuggerServiceImplementation.js
@@ -209,7 +209,7 @@ export class NativeDebuggerService extends DebuggerRpcWebSocketService {
JSON.stringify({
message_id: messageJson.id,
}) +
- '\n',
+ '\n',
);
}
this
diff --git a/pkg/nuclide-debugger-native/lib/AttachUIComponent.js b/pkg/nuclide-debugger-native/lib/AttachUIComponent.js
index c18f933..5c4e0e2 100644
--- a/pkg/nuclide-debugger-native/lib/AttachUIComponent.js
+++ b/pkg/nuclide-debugger-native/lib/AttachUIComponent.js
@@ -193,8 +193,8 @@ export class AttachUIComponent
.filter(
item =>
filterRegex.test(item.name) ||
- filterRegex.test(item.pid.toString()) ||
- filterRegex.test(item.commandName),
+ filterRegex.test(item.pid.toString()) ||
+ filterRegex.test(item.commandName),
)
.sort(compareFn)
.map((item, index) => {
@@ -207,7 +207,7 @@ export class AttachUIComponent
};
if (
selectedAttachTarget != null &&
- row.data.pid === selectedAttachTarget.pid
+ row.data.pid === selectedAttachTarget.pid
) {
selectedIndex = index;
}
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/DebuggerAgent.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/DebuggerAgent.js
index be3f1d3..e0da0eb 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/DebuggerAgent.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/DebuggerAgent.js
@@ -274,7 +274,7 @@ DebuggerAgent.prototype = {
if (!this._saveLiveEdit) {
this._warn(
'Saving of live-edit changes back to source files is disabled by configuration.\n' +
- 'Change the option "saveLiveEdit" in config.json to enable this feature.',
+ 'Change the option "saveLiveEdit" in config.json to enable this feature.',
);
return;
}
@@ -474,10 +474,10 @@ DebuggerAgent.prototype = {
if (!DebuggerAgent.nodeVersionHasSetVariableValue(version)) {
done(
'V8 engine in node version ' +
- version +
- ' does not support setting variable value from debugger.\n' +
- ' Please upgrade to version v0.10.12 (stable) or v0.11.2 (unstable)' +
- ' or newer.',
+ version +
+ ' does not support setting variable value from debugger.\n' +
+ ' Please upgrade to version v0.10.12 (stable) or v0.11.2 (unstable)' +
+ ' or newer.',
);
} else {
this._doSetVariableValue(params, done);
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/Injections/NetworkAgent.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/Injections/NetworkAgent.js
index 22b8715..7bba027 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/Injections/NetworkAgent.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/Injections/NetworkAgent.js
@@ -422,8 +422,8 @@ module.exports = function injection(require, debug, options) {
if (!options || !(options instanceof Object)) {
console.error(
'Unexpected state in node-inspector network profiling.\n' +
- 'Something wrong with request `options` object in frame #1\n' +
- 'Current stackstace:',
+ 'Something wrong with request `options` object in frame #1\n' +
+ 'Current stackstace:',
new Error().stack,
);
} else {
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorClient.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorClient.js
index 18af829..c3ec657 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorClient.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorClient.js
@@ -177,11 +177,11 @@ InjectorClient.prototype.injection = function(injection, options, callback) {
{
expression: (
'(' +
- injection.toString() +
- ')' +
- '(process._require, process._debugObject, ' +
- JSON.stringify(options) +
- ')'
+ injection.toString() +
+ ')' +
+ '(process._require, process._debugObject, ' +
+ JSON.stringify(options) +
+ ')'
),
global: true,
},
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorServer.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorServer.js
index e3228d2..fb5c4c1 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorServer.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorServer.js
@@ -54,9 +54,9 @@ function injectorServer(options) {
// Special check for NaN as NaN == NaN is false.
if (
mirror.isNumber() &&
- isNaN(mirror.value()) &&
- cached.isNumber() &&
- isNaN(cached.value())
+ isNaN(mirror.value()) &&
+ cached.isNumber() &&
+ isNaN(cached.value())
) {
return true;
}
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/NetworkAgent.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/NetworkAgent.js
index 1db3d52..8875e8a 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/NetworkAgent.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/NetworkAgent.js
@@ -185,7 +185,7 @@ function loadFileResource(params, done) {
if (!match) {
return done(
'URL scheme not supported by Network.loadResourceForFrontend: ' +
- params.url,
+ params.url,
);
}
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ProfilerAgent.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ProfilerAgent.js
index eda1378..ba96926 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ProfilerAgent.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ProfilerAgent.js
@@ -103,11 +103,11 @@ ProfilerAgent.prototype._checkCompatibility = function() {
this._frontendClient.sendLogToConsole(
'warning',
'Your Node version (' +
- version +
- ') has a partial support of profiler.\n' +
- "The stack frames tree doesn't show all stack frames due to low sampling rate.\n" +
- 'The profiling data is incomplete and may show misleading results.\n' +
- 'Update Node to v0.11.13 or newer to get full support.',
+ version +
+ ') has a partial support of profiler.\n' +
+ "The stack frames tree doesn't show all stack frames due to low sampling rate.\n" +
+ 'The profiling data is incomplete and may show misleading results.\n' +
+ 'Update Node to v0.11.13 or newer to get full support.',
);
}
};
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptFileStorage.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptFileStorage.js
index 02ccd47..0682bd1 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptFileStorage.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptFileStorage.js
@@ -7,10 +7,10 @@ var MODULE_HEADER = '(function (exports, require, module, __filename, __dirname)
var MODULE_TRAILER = '\n});';
var MODULE_WRAP_REGEX = new RegExp(
'^' +
- escapeRegex(MODULE_HEADER) +
- '([\\s\\S]*)' +
- escapeRegex(MODULE_TRAILER) +
- '$',
+ escapeRegex(MODULE_HEADER) +
+ '([\\s\\S]*)' +
+ escapeRegex(MODULE_TRAILER) +
+ '$',
);
var CONVENTIONAL_DIRS_PATTERN = [
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptManager.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptManager.js
index 972f98f..ff4bd27 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptManager.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptManager.js
@@ -37,7 +37,7 @@ ScriptManager.prototype = Object.create(events.EventEmitter.prototype, {
if (!event.script) {
console.log(
'Unexpected error: debugger emitted afterCompile event' +
- 'with no script data.',
+ 'with no script data.',
);
return;
}
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/plugins.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/plugins.js
index 5750ff2..0379642 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/plugins.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/plugins.js
@@ -272,30 +272,30 @@ ProtocolJson.prototype._onItemConflict = function(
if (state.throwConflicts) {
throw new PluginError(
'Unresolved conflict in ' +
- state.section +
- ' section of `' +
- state.plugin +
- '` plugin: ' +
- 'item with ' +
- state.uname +
- ' `' +
- toMergeItem[state.uname] +
- '` already exists.',
+ state.section +
+ ' section of `' +
+ state.plugin +
+ '` plugin: ' +
+ 'item with ' +
+ state.uname +
+ ' `' +
+ toMergeItem[state.uname] +
+ '` already exists.',
);
} else {
console.warn(
'Item with ' +
- state.uname +
- ' `' +
- toMergeItem[state.uname] +
- '`' +
- ' in ' +
- state.section +
- ' section' +
- ' of ' +
- state.domain +
- ' domain' +
- ' was owerriden.',
+ state.uname +
+ ' `' +
+ toMergeItem[state.uname] +
+ '`' +
+ ' in ' +
+ state.section +
+ ' section' +
+ ' of ' +
+ state.domain +
+ ' domain' +
+ ' was owerriden.',
);
}
};
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/debug/node.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/debug/node.js
index 58445a9..14a9981 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/debug/node.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/debug/node.js
@@ -56,13 +56,11 @@ function useColors() {
* Map %o to `util.inspect()`, since Node doesn't do that out of the box.
*/
-var inspect = 4 === util.inspect.length
- ? // node <= 0.8.x
- (function(v, colors) {
+var inspect = 4 === util.inspect.length // node <= 0.8.x
+ ? (function(v, colors) {
return util.inspect(v, void 0, void 0, colors);
- })
- : // node > 0.8.x
- (function(v, colors) {
+ }) // node > 0.8.x
+ : (function(v, colors) {
return util.inspect(v, {colors: colors});
});
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/DebuggerScript.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/DebuggerScript.js
index 0f3c72c..a74c013 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/DebuggerScript.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/DebuggerScript.js
@@ -557,7 +557,7 @@
// Also drop empty Block scopes, should we get any.
if (
!properties.length &&
- (scopeType === ScopeType.Script || scopeType === ScopeType.Block)
+ (scopeType === ScopeType.Script || scopeType === ScopeType.Block)
)
break;
result = {__proto__: null};
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/InjectedScriptSource.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/InjectedScriptSource.js
index 92d9109..a605053 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/InjectedScriptSource.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/InjectedScriptSource.js
@@ -589,15 +589,15 @@
if (descriptor) {
if (
accessorPropertiesOnly &&
- !('get' in descriptor || 'set' in descriptor)
+ !('get' in descriptor || 'set' in descriptor)
)
continue;
if (
'get' in descriptor &&
- 'set' in descriptor &&
- name != '__proto__' &&
- InjectedScriptHost.isDOMWrapper(object) &&
- !doesAttributeHaveObservableSideEffectOnGet(object, name)
+ 'set' in descriptor &&
+ name != '__proto__' &&
+ InjectedScriptHost.isDOMWrapper(object) &&
+ !doesAttributeHaveObservableSideEffectOnGet(object, name)
) {
descriptor.value = InjectedScriptHost.suppressWarningsAndCallFunction(
function(attribute) {
@@ -817,8 +817,8 @@
var func = InjectedScriptHost.eval(
"with (typeof __remoteObjectAPI !== 'undefined' ? __remoteObjectAPI : { __proto__: null }) {(" +
- expression +
- ')}',
+ expression +
+ ')}',
);
if (typeof func !== 'function')
return 'Given expression does not evaluate to a function';
@@ -1387,8 +1387,8 @@
if (
injectedScript.isPrimitiveValue(object) ||
- object === null ||
- forceValueType
+ object === null ||
+ forceValueType
) {
// We don't send undefined values over JSON.
if (this.type !== 'undefined') this.value = object;
@@ -1585,8 +1585,8 @@
if (
this.subtype === 'map' ||
- this.subtype === 'set' ||
- this.subtype === 'iterator'
+ this.subtype === 'set' ||
+ this.subtype === 'iterator'
)
this._appendEntriesPreview(object, preview, skipEntriesPreview);
} catch (e) {
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/v8-debug.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/v8-debug.js
index f8faade..64091af 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/v8-debug.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/v8-debug.js
@@ -4,18 +4,18 @@ var path = require('path');
var pack = require('./package.json');
var binding = require(
'./' +
+ [
+ 'build',
+ 'debug',
+ 'v' + pack.version,
[
- 'build',
- 'debug',
- 'v' + pack.version,
- [
- 'node',
- 'v' + process.versions.modules,
- process.platform,
- process.arch,
- ].join('-'),
- 'debug.node',
- ].join('/'),
+ 'node',
+ 'v' + process.versions.modules,
+ process.platform,
+ process.arch,
+ ].join('-'),
+ 'debug.node',
+ ].join('/'),
);
var EventEmitter = require('events').EventEmitter;
var inherits = require('util').inherits;
@@ -255,8 +255,8 @@ V8Debug.prototype.enableWebkitProtocol = function() {
if (!NODE_NEXT) {
throw new Error(
'WebKit protocol is not supported on target node version (' +
- process.version +
- ')',
+ process.version +
+ ')',
);
}
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-profiler/v8-profiler.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-profiler/v8-profiler.js
index cf8dda8..0f6699f 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-profiler/v8-profiler.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-profiler/v8-profiler.js
@@ -1,18 +1,18 @@
var pack = require('./package.json');
var binding = require(
'./' +
+ [
+ 'build',
+ 'profiler',
+ 'v' + pack.version,
[
- 'build',
- 'profiler',
- 'v' + pack.version,
- [
- 'node',
- 'v' + process.versions.modules,
- process.platform,
- process.arch,
- ].join('-'),
- 'profiler.node',
- ].join('/'),
+ 'node',
+ 'v' + process.versions.modules,
+ process.platform,
+ process.arch,
+ ].join('-'),
+ 'profiler.node',
+ ].join('/'),
);
var Stream = require('stream').Stream, inherits = require('util').inherits;
@@ -197,7 +197,7 @@ var profiler = {
startProfiling: function(name, recsamples) {
if (
activeProfiles.length == 0 &&
- typeof process._startProfilerIdleNotifier == 'function'
+ typeof process._startProfilerIdleNotifier == 'function'
)
process._startProfilerIdleNotifier();
@@ -229,7 +229,7 @@ var profiler = {
if (
activeProfiles.length == 0 &&
- typeof process._stopProfilerIdleNotifier == 'function'
+ typeof process._stopProfilerIdleNotifier == 'function'
)
process._stopProfilerIdleNotifier();
diff --git a/pkg/nuclide-debugger-node-rpc/lib/NodeDebuggerHost.js b/pkg/nuclide-debugger-node-rpc/lib/NodeDebuggerHost.js
index f33ac97..2c07a72 100644
--- a/pkg/nuclide-debugger-node-rpc/lib/NodeDebuggerHost.js
+++ b/pkg/nuclide-debugger-node-rpc/lib/NodeDebuggerHost.js
@@ -47,7 +47,7 @@ export class NodeDebuggerHost {
debugPort,
preload: false, // This makes the node inspector not load all the source files on startup.
inject: false // This causes the node inspector to fail to send an initial pause message
- // on attach. We don't use this feature, so we turn it off.,
+ // on attach. We don't use this feature, so we turn it off.,,
};
const session = new Session(config, debugPort, websocket);
Observable.fromEvent(session, 'close').subscribe(this._close$);
diff --git a/pkg/nuclide-debugger-node/lib/AttachUIComponent.js b/pkg/nuclide-debugger-node/lib/AttachUIComponent.js
index a2a137d..6ba3a23 100644
--- a/pkg/nuclide-debugger-node/lib/AttachUIComponent.js
+++ b/pkg/nuclide-debugger-node/lib/AttachUIComponent.js
@@ -197,8 +197,8 @@ export class AttachUIComponent
.filter(
item =>
filterRegex.test(item.name) ||
- filterRegex.test(item.pid.toString()) ||
- filterRegex.test(item.commandName),
+ filterRegex.test(item.pid.toString()) ||
+ filterRegex.test(item.commandName),
)
.sort(compareFn)
.map((item, index) => {
@@ -211,7 +211,7 @@ export class AttachUIComponent
};
if (
selectedAttachTarget != null &&
- row.data.pid === selectedAttachTarget.pid
+ row.data.pid === selectedAttachTarget.pid
) {
selectedIndex = index;
}
diff --git a/pkg/nuclide-debugger-php-rpc/lib/Connection.js b/pkg/nuclide-debugger-php-rpc/lib/Connection.js
index 1128cfe..a90705d 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/Connection.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/Connection.js
@@ -114,7 +114,7 @@ export class Connection {
}
if (
newStatus === ConnectionStatus.BreakMessageReceived &&
- prevStatus !== ConnectionStatus.BreakMessageSent
+ prevStatus !== ConnectionStatus.BreakMessageSent
) {
return;
}
diff --git a/pkg/nuclide-debugger-php-rpc/lib/ConnectionMultiplexer.js b/pkg/nuclide-debugger-php-rpc/lib/ConnectionMultiplexer.js
index ff18be2..d13baba 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/ConnectionMultiplexer.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/ConnectionMultiplexer.js
@@ -381,7 +381,7 @@ export class ConnectionMultiplexer {
if (
this._status === ConnectionMultiplexerStatus.SingleConnectionPaused ||
- this._status === ConnectionMultiplexerStatus.AllConnectionsPaused
+ this._status === ConnectionMultiplexerStatus.AllConnectionsPaused
) {
logger.log('Mux already in break status');
return;
@@ -431,7 +431,7 @@ export class ConnectionMultiplexer {
_pauseConnectionsIfNeeded(): void {
if (
getConfig().stopOneStopAll &&
- this._status !== ConnectionMultiplexerStatus.UserAsyncBreakSent
+ this._status !== ConnectionMultiplexerStatus.UserAsyncBreakSent
) {
this._asyncBreak();
}
@@ -474,7 +474,7 @@ export class ConnectionMultiplexer {
_handlePotentialRequestSwitch(connection: Connection): void {
if (
this._previousConnection != null &&
- connection !== this._previousConnection
+ connection !== this._previousConnection
) {
// The enabled connection is different than it was last time the debugger paused
// so we know that the active request has switched so we should alert the user.
@@ -541,9 +541,7 @@ export class ConnectionMultiplexer {
const message = {
text: (
'Failed to evaluate ' +
- `"${expression}": (${result.error.$.code}) ${result.error.message[
- 0
- ]}`
+ `"${expression}": (${result.error.$.code}) ${result.error.message[0]}`
),
level: 'error',
};
@@ -611,8 +609,8 @@ export class ConnectionMultiplexer {
for (const connection of this._connections.values()) {
if (
connection !== this._enabledConnection &&
- (connection.getStopReason() === ASYNC_BREAK ||
- connection.getStatus() === ConnectionStatus.Starting)
+ (connection.getStopReason() === ASYNC_BREAK ||
+ connection.getStatus() === ConnectionStatus.Starting)
) {
connection.sendContinuationCommand(COMMAND_RUN);
}
@@ -691,9 +689,9 @@ export class ConnectionMultiplexer {
async _checkForEnd(): Promise<void> {
if (
this._onlyDummyRemains() &&
- (this._attachConnector == null ||
- this._launchConnector == null ||
- getConfig().endDebugWhenNoRequests)
+ (this._attachConnector == null ||
+ this._launchConnector == null ||
+ getConfig().endDebugWhenNoRequests)
) {
if (this._launchedScriptProcessPromise != null) {
await this._launchedScriptProcessPromise;
diff --git a/pkg/nuclide-debugger-php-rpc/lib/ConnectionUtils.js b/pkg/nuclide-debugger-php-rpc/lib/ConnectionUtils.js
index 751042b..bbac76a 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/ConnectionUtils.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/ConnectionUtils.js
@@ -70,9 +70,9 @@ export function isCorrectConnection(
const init = message.init;
if (
!init.engine ||
- !init.engine ||
- !init.engine[0] ||
- init.engine[0]._.toLowerCase() !== 'xdebug'
+ !init.engine ||
+ !init.engine[0] ||
+ init.engine[0]._.toLowerCase() !== 'xdebug'
) {
logger.logError('Incorrect engine');
return false;
@@ -81,8 +81,8 @@ export function isCorrectConnection(
const attributes = init.$;
if (
attributes.xmlns !== 'urn:debugger_protocol_v1' ||
- attributes['xmlns:xdebug'] !== 'http://xdebug.org/dbgp/xdebug' ||
- attributes.language !== 'PHP'
+ attributes['xmlns:xdebug'] !== 'http://xdebug.org/dbgp/xdebug' ||
+ attributes.language !== 'PHP'
) {
logger.logError('Incorrect attributes');
return false;
diff --git a/pkg/nuclide-debugger-php-rpc/lib/DbgpConnector.js b/pkg/nuclide-debugger-php-rpc/lib/DbgpConnector.js
index fd55b2a..82e3737 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/DbgpConnector.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/DbgpConnector.js
@@ -78,8 +78,14 @@ export class DbgpConnector {
const server = net.createServer();
server.on('close', socket => logger.log('Closing port ' + this._port));
- server.listen(this._port, undefined, undefined, () => // Hostname. // Backlog -- the maximum length of the queue of pending connections.
- logger.log('Listening on port ' + this._port));
+ server.listen(
+ this._port,
+ undefined,
+ undefined,
+ () =>
+ // Hostname. // Backlog -- the maximum length of the queue of pending connections.
+ logger.log('Listening on port ' + this._port),
+ );
server.on('error', error => this._onServerError(error));
server.on('connection', socket => this._onSocketConnection(socket));
@@ -125,11 +131,11 @@ export class DbgpConnector {
this._failConnection(
socket,
'Non XML connection string: ' +
- data.toString() +
- '. Discarding connection.',
+ data.toString() +
+ '. Discarding connection.',
'PHP sent a malformed request, please file a bug to the Nuclide developers.<br />' +
- 'Restarting the Nuclide Server may fix the issue.<br />' +
- 'Error: Non XML connection string.',
+ 'Restarting the Nuclide Server may fix the issue.<br />' +
+ 'Error: Non XML connection string.',
);
return;
}
@@ -139,7 +145,7 @@ export class DbgpConnector {
socket,
'Expected a single connection message. Got ' + messages.length,
'PHP sent a malformed request, please file a bug to the Nuclide developers.<br />' +
- 'Error: Expected a single connection message.',
+ 'Error: Expected a single connection message.',
);
return;
}
@@ -164,10 +170,10 @@ export class DbgpConnector {
if (!this.isListening()) {
logger.log(
'Ignoring ' +
- message +
- ' on port ' +
- this._port +
- ' after stopped connection.',
+ message +
+ ' on port ' +
+ this._port +
+ ' after stopped connection.',
);
return false;
}
diff --git a/pkg/nuclide-debugger-php-rpc/lib/DbgpMessageHandler.js b/pkg/nuclide-debugger-php-rpc/lib/DbgpMessageHandler.js
index 2bfd9a4..5e9113e 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/DbgpMessageHandler.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/DbgpMessageHandler.js
@@ -65,8 +65,8 @@ export class DbgpMessageHandler {
if (prevIncompletedMessage && components.length !== 0) {
logger.logErrorAndThrow(
'Error: got extra messages without completing previous message. ' +
- `Previous message was: ${JSON.stringify(prevIncompletedMessage)}. ` +
- `Remaining components: ${JSON.stringify(components)}`,
+ `Previous message was: ${JSON.stringify(prevIncompletedMessage)}. ` +
+ `Remaining components: ${JSON.stringify(components)}`,
);
}
@@ -78,7 +78,7 @@ export class DbgpMessageHandler {
if (lastComponent.length !== 0) {
logger.logErrorAndThrow(
'The complete response should terminate with' +
- ` zero character while got: ${lastComponent} `,
+ ` zero character while got: ${lastComponent} `,
);
}
}
@@ -93,7 +93,7 @@ export class DbgpMessageHandler {
if (!this._isIncompletedMessage(lastMessage)) {
logger.logErrorAndThrow(
'The last message should be a fragment of a full message: ' +
- JSON.stringify(lastMessage),
+ JSON.stringify(lastMessage),
);
}
prevIncompletedMessage = lastMessage;
@@ -109,8 +109,8 @@ export class DbgpMessageHandler {
if (!this._isCompletedMessage(message)) {
logger.logErrorAndThrow(
`Got message length(${message.content.length}) ` +
- `not equal to expected(${message.length}). ` +
- `Message was: ${JSON.stringify(message)}`,
+ `not equal to expected(${message.length}). ` +
+ `Message was: ${JSON.stringify(message)}`,
);
}
results.push(this._parseXml(message));
diff --git a/pkg/nuclide-debugger-php-rpc/lib/DbgpSocket.js b/pkg/nuclide-debugger-php-rpc/lib/DbgpSocket.js
index 3b23daf..bac95f7 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/DbgpSocket.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/DbgpSocket.js
@@ -312,9 +312,9 @@ export class DbgpSocket {
if (call.command !== command) {
logger.logError(
'Bad command in response. Found ' +
- command +
- '. expected ' +
- call.command,
+ command +
+ '. expected ' +
+ call.command,
);
return;
}
@@ -552,9 +552,9 @@ export class DbgpSocket {
);
if (
response.error != null ||
- response.breakpoint == null ||
- response.breakpoint[0] == null ||
- response.breakpoint[0].$ == null
+ response.breakpoint == null ||
+ response.breakpoint[0] == null ||
+ response.breakpoint[0].$ == null
) {
throw new Error('Error getting breakpoint: ' + JSON.stringify(response));
}
diff --git a/pkg/nuclide-debugger-php-rpc/lib/DebuggerHandler.js b/pkg/nuclide-debugger-php-rpc/lib/DebuggerHandler.js
index 3bc2c85..e634fc8 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/DebuggerHandler.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/DebuggerHandler.js
@@ -167,7 +167,7 @@ export class DebuggerHandler extends Handler {
this.replyWithError(
id,
'Invalid arguments to Debugger.setBreakpointByUrl: ' +
- JSON.stringify(params),
+ JSON.stringify(params),
);
return;
}
diff --git a/pkg/nuclide-debugger-php-rpc/lib/PhpDebuggerService.js b/pkg/nuclide-debugger-php-rpc/lib/PhpDebuggerService.js
index 0c69af9..880f13c 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/PhpDebuggerService.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/PhpDebuggerService.js
@@ -136,7 +136,7 @@ export class PhpDebuggerService {
type: 'warning',
message: (
'You may have an hphpd instance currently attached to your server!' +
- '<br />Please kill it, or the Nuclide debugger may not work properly.'
+ '<br />Please kill it, or the Nuclide debugger may not work properly.'
),
});
}
diff --git a/pkg/nuclide-debugger-php-rpc/spec/DbgpConnector-spec.js b/pkg/nuclide-debugger-php-rpc/spec/DbgpConnector-spec.js
index 4414b24..26e6bfd 100644
--- a/pkg/nuclide-debugger-php-rpc/spec/DbgpConnector-spec.js
+++ b/pkg/nuclide-debugger-php-rpc/spec/DbgpConnector-spec.js
@@ -192,7 +192,7 @@ describe('debugger-php-rpc DbgpConnector', () => {
expect(emitted).toBe(true);
expect(onError).toHaveBeenCalledWith(
`Can't start debugging because port ${port} is being used by another process. ` +
- "Try running 'killall node' on your devserver and then restarting Nuclide.",
+ "Try running 'killall node' on your devserver and then restarting Nuclide.",
);
expect(server.close).toHaveBeenCalledWith();
expect(onClose).toHaveBeenCalledWith(undefined);
diff --git a/pkg/nuclide-debugger-php-rpc/spec/DbgpMessageHandler-spec.js b/pkg/nuclide-debugger-php-rpc/spec/DbgpMessageHandler-spec.js
index 89c37ee..f163e52 100644
--- a/pkg/nuclide-debugger-php-rpc/spec/DbgpMessageHandler-spec.js
+++ b/pkg/nuclide-debugger-php-rpc/spec/DbgpMessageHandler-spec.js
@@ -40,8 +40,8 @@ describe('debugger-php-rpc DbgpMessageHandler', () => {
transaction_id: '1',
},
'<context name="Local" id="0"/>' +
- '<context name="Global" id="1"/>' +
- '<context name="Class" id="2"/>',
+ '<context name="Global" id="1"/>' +
+ '<context name="Class" id="2"/>',
);
const results = messageHandler.parseMessages(message);
expect(results.length).toBe(1);
@@ -54,8 +54,8 @@ describe('debugger-php-rpc DbgpMessageHandler', () => {
transaction_id: '1',
},
'<context name="Local" id="0"/>' +
- '<context name="Global" id="1"/>' +
- '<context name="Class" id="2"/>',
+ '<context name="Global" id="1"/>' +
+ '<context name="Class" id="2"/>',
);
const message2 = makeMessage(
{
@@ -63,8 +63,8 @@ describe('debugger-php-rpc DbgpMessageHandler', () => {
transaction_id: '2',
},
'<context name="Local2" id="0"/>' +
- '<context name="Global2" id="1"/>' +
- '<context name="Class2" id="2"/>',
+ '<context name="Global2" id="1"/>' +
+ '<context name="Class2" id="2"/>',
);
const results = messageHandler.parseMessages(message1 + message2);
expect(results.length).toBe(2);
@@ -89,8 +89,8 @@ describe('debugger-php-rpc DbgpMessageHandler', () => {
transaction_id: '1',
},
'<context name="Local" id="0"/>' +
- '<context name="Global" id="1"/>' +
- '<context name="Class" id="2"/>',
+ '<context name="Global" id="1"/>' +
+ '<context name="Class" id="2"/>',
);
const completedMessage2 = makeDbgpMessage(payload);
@@ -149,8 +149,8 @@ describe('debugger-php-rpc DbgpMessageHandler', () => {
transaction_id: '1',
},
'<context name="Local" id="0"/>' +
- '<context name="Global" id="1"/>' +
- '<context name="Class" id="2"/>',
+ '<context name="Global" id="1"/>' +
+ '<context name="Class" id="2"/>',
);
const results = messageHandler.parseMessages(messagePart1);
diff --git a/pkg/nuclide-debugger-php-rpc/spec/DbgpSocket-spec.js b/pkg/nuclide-debugger-php-rpc/spec/DbgpSocket-spec.js
index 3e2022c..3b3963d 100644
--- a/pkg/nuclide-debugger-php-rpc/spec/DbgpSocket-spec.js
+++ b/pkg/nuclide-debugger-php-rpc/spec/DbgpSocket-spec.js
@@ -223,7 +223,7 @@ describe('debugger-php-rpc DbgpSocket', () => {
transaction_id: '1',
},
'<stack where="foo" level="0" type="file" filename="file:///home/peterhal/test/dbgp/test-client.php" lineno="4"></stack>' +
- '<stack where="{main}" level="1" type="file" filename="file:///home/peterhal/test/dbgp/test-client.php" lineno="10"></stack>',
+ '<stack where="{main}" level="1" type="file" filename="file:///home/peterhal/test/dbgp/test-client.php" lineno="10"></stack>',
);
const result = await call;
@@ -338,8 +338,8 @@ describe('debugger-php-rpc DbgpSocket', () => {
transaction_id: '1',
},
'<context name="Local" id="0"/>' +
- '<context name="Global" id="1"/>' +
- '<context name="Class" id="2"/>',
+ '<context name="Global" id="1"/>' +
+ '<context name="Class" id="2"/>',
);
const result = await call;
expect(result).toEqual([
@@ -410,8 +410,8 @@ describe('debugger-php-rpc DbgpSocket', () => {
transaction_id: '1',
},
'<context name="Local" id="0"/>' +
- '<context name="Global" id="1"/>' +
- '<context name="Class" id="2"/>',
+ '<context name="Global" id="1"/>' +
+ '<context name="Class" id="2"/>',
);
const message2 = makeMessage(
{
@@ -419,8 +419,8 @@ describe('debugger-php-rpc DbgpSocket', () => {
transaction_id: '2',
},
'<context name="Local2" id="0"/>' +
- '<context name="Global2" id="1"/>' +
- '<context name="Class2" id="2"/>',
+ '<context name="Global2" id="1"/>' +
+ '<context name="Class2" id="2"/>',
);
onData(message1 + message2);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/Runtime.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/Runtime.js
index 73d024a..f8d320a 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/Runtime.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/Runtime.js
@@ -65,9 +65,9 @@ function loadResourcePromise(url) {
)
reject(new Error(
'While loading from url ' +
- url +
- ' server responded with a status of ' +
- xhr.status,
+ url +
+ ' server responded with a status of ' +
+ xhr.status,
));
else
fulfill(e.target.response);
@@ -97,8 +97,8 @@ function normalizePath(path) {
if (path[0] === '/' && normalizedPath) normalizedPath = '/' + normalizedPath;
if (
path[path.length - 1] === '/' ||
- segments[segments.length - 1] === '.' ||
- segments[segments.length - 1] === '..'
+ segments[segments.length - 1] === '.' ||
+ segments[segments.length - 1] === '..'
)
normalizedPath = normalizedPath + '/';
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/BreakpointManager.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/BreakpointManager.js
index 513e57e..58761c4 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/BreakpointManager.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/BreakpointManager.js
@@ -190,7 +190,7 @@ WebInspector.BreakpointManager.prototype = {
this._restoreBreakpoints(uiSourceCode);
if (
uiSourceCode.contentType() === WebInspector.resourceTypes.Script ||
- uiSourceCode.contentType() === WebInspector.resourceTypes.Document
+ uiSourceCode.contentType() === WebInspector.resourceTypes.Document
)
uiSourceCode.addEventListener(
WebInspector.UISourceCode.Events.SourceMappingChanged,
@@ -664,7 +664,7 @@ WebInspector.BreakpointManager.Breakpoint.prototype = {
_removeUILocation: function(uiLocation, muteCreationFakeBreakpoint) {
if (
!uiLocation ||
- --this._numberOfDebuggerLocationForUILocation[uiLocation.id()] !== 0
+ --this._numberOfDebuggerLocationForUILocation[uiLocation.id()] !== 0
)
return;
@@ -749,8 +749,8 @@ WebInspector.BreakpointManager.Breakpoint.prototype = {
_fakeBreakpointAtPrimaryLocation: function() {
if (
this._isRemoved ||
- !Object.isEmpty(this._numberOfDebuggerLocationForUILocation) ||
- this._fakePrimaryLocation
+ !Object.isEmpty(this._numberOfDebuggerLocationForUILocation) ||
+ this._fakePrimaryLocation
)
return;
@@ -897,8 +897,8 @@ WebInspector.BreakpointManager.TargetBreakpoint.prototype = {
var newState;
if (
this._breakpoint._isRemoved ||
- !this._breakpoint.enabled() ||
- this._scriptDiverged()
+ !this._breakpoint.enabled() ||
+ this._scriptDiverged()
)
newState = null;
else if (debuggerLocation) {
@@ -943,10 +943,10 @@ WebInspector.BreakpointManager.TargetBreakpoint.prototype = {
}
if (
this._debuggerId &&
- WebInspector.BreakpointManager.Breakpoint.State.equals(
- newState,
- this._currentState,
- )
+ WebInspector.BreakpointManager.Breakpoint.State.equals(
+ newState,
+ this._currentState,
+ )
) {
callback();
return;
@@ -1183,10 +1183,10 @@ WebInspector.BreakpointManager.Storage = function(breakpointManager, setting) {
breakpoint.columnNumber = breakpoint.columnNumber || 0;
this._breakpoints[
breakpoint.sourceFileId +
- ':' +
- breakpoint.lineNumber +
- ':' +
- breakpoint.columnNumber
+ ':' +
+ breakpoint.lineNumber +
+ ':' +
+ breakpoint.columnNumber
] = breakpoint;
}
};
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/CompilerScriptMapping.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/CompilerScriptMapping.js
index 205fe4b..d6db103 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/CompilerScriptMapping.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/CompilerScriptMapping.js
@@ -235,7 +235,7 @@ WebInspector.CompilerScriptMapping.prototype = {
this._sourceMapForURL.set(sourceURL, sourceMap);
if (
!this._networkMapping.hasMappingForURL(sourceURL) &&
- !this._networkMapping.uiSourceCodeForURL(sourceURL, script.target())
+ !this._networkMapping.uiSourceCodeForURL(sourceURL, script.target())
) {
var contentProvider = sourceMap.sourceContentProvider(
sourceURL,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/Linkifier.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/Linkifier.js
index 72178a0..dee5aaf 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/Linkifier.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/Linkifier.js
@@ -109,7 +109,7 @@ WebInspector.Linkifier.linkifyUsingRevealer = function(
event.preventDefault();
if (
fallbackHref &&
- WebInspector.Linkifier.handleLink(fallbackHref, fallbackLineNumber)
+ WebInspector.Linkifier.handleLink(fallbackHref, fallbackLineNumber)
)
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/NetworkProject.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/NetworkProject.js
index 33bd964..262c913 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/NetworkProject.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/NetworkProject.js
@@ -384,8 +384,8 @@ WebInspector.NetworkProject.prototype = {
var type = contentProvider.contentType();
if (
type !== WebInspector.resourceTypes.Stylesheet &&
- type !== WebInspector.resourceTypes.Document &&
- type !== WebInspector.resourceTypes.Script
+ type !== WebInspector.resourceTypes.Document &&
+ type !== WebInspector.resourceTypes.Script
)
return;
if (this._processedURLs[url]) return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/PresentationConsoleMessageHelper.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/PresentationConsoleMessageHelper.js
index abcd877..0845d14 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/PresentationConsoleMessageHelper.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/PresentationConsoleMessageHelper.js
@@ -249,7 +249,7 @@ WebInspector.PresentationConsoleMessageHelper.prototype = {
var rawLocation = this._rawLocation(message);
if (
script.target() === message.target() &&
- script.scriptId === rawLocation.scriptId
+ script.scriptId === rawLocation.scriptId
)
this._addConsoleMessageToScript(message, rawLocation);
else
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceScriptMapping.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceScriptMapping.js
index 745d3ab..e18b5ae 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceScriptMapping.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceScriptMapping.js
@@ -84,8 +84,8 @@ WebInspector.ResourceScriptMapping.prototype = {
var scriptFile = this.scriptFile(uiSourceCode);
if (
scriptFile &&
- (scriptFile.hasDivergedFromVM() && !scriptFile.isMergingToVM() ||
- scriptFile.isDivergingFromVM())
+ (scriptFile.hasDivergedFromVM() && !scriptFile.isMergingToVM() ||
+ scriptFile.isDivergingFromVM())
)
return null;
var lineNumber = debuggerModelLocation.lineNumber -
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceUtils.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceUtils.js
index 41a6c6e..e57bfa8 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceUtils.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceUtils.js
@@ -74,8 +74,8 @@ WebInspector.displayNameForURL = function(url) {
.indexOf(lastPathComponent);
if (
index !== -1 &&
- index + lastPathComponent.length ===
- WebInspector.targetManager.inspectedPageURL().length
+ index + lastPathComponent.length ===
+ WebInspector.targetManager.inspectedPageURL().length
) {
var baseURL = WebInspector.targetManager
.inspectedPageURL()
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/SASSSourceMapping.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/SASSSourceMapping.js
index a732b3d..8c6e772 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/SASSSourceMapping.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/SASSSourceMapping.js
@@ -194,10 +194,10 @@ WebInspector.SASSSourceMapping.prototype = {
if (statusCode >= 400) {
console.error(
'Could not load content for ' +
- sassURL +
- ' : ' +
- 'HTTP status code: ' +
- statusCode,
+ sassURL +
+ ' : ' +
+ 'HTTP status code: ' +
+ statusCode,
);
return;
}
@@ -342,10 +342,10 @@ WebInspector.SASSSourceMapping.prototype = {
if (statusCode >= 400) {
console.error(
'Could not load content for ' +
- cssURL +
- ' : ' +
- 'HTTP status code: ' +
- statusCode,
+ cssURL +
+ ' : ' +
+ 'HTTP status code: ' +
+ statusCode,
);
callback(cssURL, sassURL, true);
return;
@@ -452,8 +452,8 @@ WebInspector.SASSSourceMapping.prototype = {
addHeader: function(header) {
if (
!header.sourceMapURL ||
- !header.sourceURL ||
- !WebInspector.settings.cssSourceMapsEnabled.get()
+ !header.sourceURL ||
+ !WebInspector.settings.cssSourceMapsEnabled.get()
)
return;
var completeSourceMapURL = WebInspector.ParsedURL.completeURL(
@@ -477,8 +477,8 @@ WebInspector.SASSSourceMapping.prototype = {
var sourceURL = header.sourceURL;
if (
!sourceURL ||
- !header.sourceMapURL ||
- !this._completeSourceMapURLForCSSURL[sourceURL]
+ !header.sourceMapURL ||
+ !this._completeSourceMapURLForCSSURL[sourceURL]
)
return;
delete this._sourceMapByStyleSheetURL[sourceURL];
@@ -612,7 +612,7 @@ WebInspector.SASSSourceMapping.prototype = {
this._addCSSURLforSASSURL(rawURL, url);
if (
!this._networkMapping.hasMappingForURL(url) &&
- !this._networkMapping.uiSourceCodeForURL(url, header.target())
+ !this._networkMapping.uiSourceCodeForURL(url, header.target())
) {
var contentProvider = sourceMap.sourceContentProvider(
url,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/clike.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/clike.js
index 9c4b028..e4d17d5 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/clike.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/clike.js
@@ -154,7 +154,7 @@
if (
(curPunc == ';' || curPunc == ':' || curPunc == ',') &&
- ctx.type == 'statement'
+ ctx.type == 'statement'
)
popContext(state);
else if (curPunc == '{')
@@ -172,7 +172,7 @@
} else if (curPunc == ctx.type) popContext(state);
else if (
(ctx.type == '}' || ctx.type == 'top') && curPunc != ';' ||
- ctx.type == 'statement' && curPunc == 'newstatement'
+ ctx.type == 'statement' && curPunc == 'newstatement'
)
pushContext(state, stream.column(), 'statement');
state.startOfLine = false;
@@ -311,11 +311,11 @@
name: 'clike',
keywords: words(
cKeywords +
- ' asm dynamic_cast namespace reinterpret_cast try bool explicit new ' +
- 'static_cast typeid catch operator template typename class friend private ' +
- 'this using const_cast inline public throw virtual delete mutable protected ' +
- 'wchar_t alignas alignof constexpr decltype nullptr noexcept thread_local final ' +
- 'static_assert override',
+ ' asm dynamic_cast namespace reinterpret_cast try bool explicit new ' +
+ 'static_cast typeid catch operator template typename class friend private ' +
+ 'this using const_cast inline public throw virtual delete mutable protected ' +
+ 'wchar_t alignas alignof constexpr decltype nullptr noexcept thread_local final ' +
+ 'static_assert override',
),
blockKeywords: words(
'catch class do else finally for if struct switch try while',
@@ -334,10 +334,10 @@
name: 'clike',
keywords: words(
'abstract assert boolean break byte case catch char class const continue default ' +
- 'do double else enum extends final finally float for goto if implements import ' +
- 'instanceof int interface long native new package private protected public ' +
- 'return short static strictfp super switch synchronized this throw throws transient ' +
- 'try void volatile while',
+ 'do double else enum extends final finally float for goto if implements import ' +
+ 'instanceof int interface long native new package private protected public ' +
+ 'return short static strictfp super switch synchronized this throw throws transient ' +
+ 'try void volatile while',
),
blockKeywords: words('catch class do else finally for if switch try while'),
atoms: words('true false null'),
@@ -353,21 +353,21 @@
name: 'clike',
keywords: words(
'abstract as base break case catch checked class const continue' +
- ' default delegate do else enum event explicit extern finally fixed for' +
- ' foreach goto if implicit in interface internal is lock namespace new' +
- ' operator out override params private protected public readonly ref return sealed' +
- ' sizeof stackalloc static struct switch this throw try typeof unchecked' +
- ' unsafe using virtual void volatile while add alias ascending descending dynamic from get' +
- ' global group into join let orderby partial remove select set value var yield',
+ ' default delegate do else enum event explicit extern finally fixed for' +
+ ' foreach goto if implicit in interface internal is lock namespace new' +
+ ' operator out override params private protected public readonly ref return sealed' +
+ ' sizeof stackalloc static struct switch this throw try typeof unchecked' +
+ ' unsafe using virtual void volatile while add alias ascending descending dynamic from get' +
+ ' global group into join let orderby partial remove select set value var yield',
),
blockKeywords: words(
'catch class do else finally for foreach if struct switch try while',
),
builtin: words(
'Boolean Byte Char DateTime DateTimeOffset Decimal Double' +
- ' Guid Int16 Int32 Int64 Object SByte Single String TimeSpan UInt16 UInt32' +
- ' UInt64 bool byte char decimal double short int long object' +
- ' sbyte float string ushort uint ulong',
+ ' Guid Int16 Int32 Int64 Object SByte Single String TimeSpan UInt16 UInt32' +
+ ' UInt64 bool byte char decimal double short int long object' +
+ ' sbyte float string ushort uint ulong',
),
atoms: words('true false null'),
hooks: {
@@ -386,22 +386,22 @@
keywords: words(
/* scala */
'abstract case catch class def do else extends false final finally for forSome if ' +
- 'implicit import lazy match new null object override package private protected return ' +
- 'sealed super this throw trait try trye type val var while with yield _ : = => <- <: ' +
- '<% >: # @ ' +
- /* package scala */
- 'assert assume require print println printf readLine readBoolean readByte readShort ' +
- 'readChar readInt readLong readFloat readDouble ' +
- 'AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either ' +
- 'Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable ' +
- 'Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering ' +
- 'Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder ' +
- 'StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: ' +
- /* package java.lang */
- 'Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable ' +
- 'Compiler Double Exception Float Integer Long Math Number Object Package Pair Process ' +
- 'Runtime Runnable SecurityManager Short StackTraceElement StrictMath String ' +
- 'StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void',
+ 'implicit import lazy match new null object override package private protected return ' +
+ 'sealed super this throw trait try trye type val var while with yield _ : = => <- <: ' +
+ '<% >: # @ ' +
+ /* package scala */
+ 'assert assume require print println printf readLine readBoolean readByte readShort ' +
+ 'readChar readInt readLong readFloat readDouble ' +
+ 'AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either ' +
+ 'Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable ' +
+ 'Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering ' +
+ 'Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder ' +
+ 'StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: ' +
+ /* package java.lang */
+ 'Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable ' +
+ 'Compiler Double Exception Float Integer Long Math Number Object Package Pair Process ' +
+ 'Runtime Runnable SecurityManager Short StackTraceElement StrictMath String ' +
+ 'StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void',
),
blockKeywords: words(
'catch class do else finally for forSome if match switch try while',
@@ -418,61 +418,61 @@
name: 'clike',
keywords: words(
'float int bool void ' +
- 'vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 ' +
- 'mat2 mat3 mat4 ' +
- 'sampler1D sampler2D sampler3D samplerCube ' +
- 'sampler1DShadow sampler2DShadow' +
- 'const attribute uniform varying ' +
- 'break continue discard return ' +
- 'for while do if else struct ' +
- 'in out inout',
+ 'vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 ' +
+ 'mat2 mat3 mat4 ' +
+ 'sampler1D sampler2D sampler3D samplerCube ' +
+ 'sampler1DShadow sampler2DShadow' +
+ 'const attribute uniform varying ' +
+ 'break continue discard return ' +
+ 'for while do if else struct ' +
+ 'in out inout',
),
blockKeywords: words('for while do if else struct'),
builtin: words(
'radians degrees sin cos tan asin acos atan ' +
- 'pow exp log exp2 sqrt inversesqrt ' +
- 'abs sign floor ceil fract mod min max clamp mix step smootstep ' +
- 'length distance dot cross normalize ftransform faceforward ' +
- 'reflect refract matrixCompMult ' +
- 'lessThan lessThanEqual greaterThan greaterThanEqual ' +
- 'equal notEqual any all not ' +
- 'texture1D texture1DProj texture1DLod texture1DProjLod ' +
- 'texture2D texture2DProj texture2DLod texture2DProjLod ' +
- 'texture3D texture3DProj texture3DLod texture3DProjLod ' +
- 'textureCube textureCubeLod ' +
- 'shadow1D shadow2D shadow1DProj shadow2DProj ' +
- 'shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod ' +
- 'dFdx dFdy fwidth ' +
- 'noise1 noise2 noise3 noise4',
+ 'pow exp log exp2 sqrt inversesqrt ' +
+ 'abs sign floor ceil fract mod min max clamp mix step smootstep ' +
+ 'length distance dot cross normalize ftransform faceforward ' +
+ 'reflect refract matrixCompMult ' +
+ 'lessThan lessThanEqual greaterThan greaterThanEqual ' +
+ 'equal notEqual any all not ' +
+ 'texture1D texture1DProj texture1DLod texture1DProjLod ' +
+ 'texture2D texture2DProj texture2DLod texture2DProjLod ' +
+ 'texture3D texture3DProj texture3DLod texture3DProjLod ' +
+ 'textureCube textureCubeLod ' +
+ 'shadow1D shadow2D shadow1DProj shadow2DProj ' +
+ 'shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod ' +
+ 'dFdx dFdy fwidth ' +
+ 'noise1 noise2 noise3 noise4',
),
atoms: words(
'true false ' +
- 'gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex ' +
- 'gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 ' +
- 'gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 ' +
- 'gl_FogCoord ' +
- 'gl_Position gl_PointSize gl_ClipVertex ' +
- 'gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor ' +
- 'gl_TexCoord gl_FogFragCoord ' +
- 'gl_FragCoord gl_FrontFacing ' +
- 'gl_FragColor gl_FragData gl_FragDepth ' +
- 'gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix ' +
- 'gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse ' +
- 'gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse ' +
- 'gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose ' +
- 'gl_ProjectionMatrixInverseTranspose ' +
- 'gl_ModelViewProjectionMatrixInverseTranspose ' +
- 'gl_TextureMatrixInverseTranspose ' +
- 'gl_NormalScale gl_DepthRange gl_ClipPlane ' +
- 'gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel ' +
- 'gl_FrontLightModelProduct gl_BackLightModelProduct ' +
- 'gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ ' +
- 'gl_FogParameters ' +
- 'gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords ' +
- 'gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats ' +
- 'gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits ' +
- 'gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits ' +
- 'gl_MaxDrawBuffers',
+ 'gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex ' +
+ 'gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 ' +
+ 'gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 ' +
+ 'gl_FogCoord ' +
+ 'gl_Position gl_PointSize gl_ClipVertex ' +
+ 'gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor ' +
+ 'gl_TexCoord gl_FogFragCoord ' +
+ 'gl_FragCoord gl_FrontFacing ' +
+ 'gl_FragColor gl_FragData gl_FragDepth ' +
+ 'gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix ' +
+ 'gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse ' +
+ 'gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse ' +
+ 'gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose ' +
+ 'gl_ProjectionMatrixInverseTranspose ' +
+ 'gl_ModelViewProjectionMatrixInverseTranspose ' +
+ 'gl_TextureMatrixInverseTranspose ' +
+ 'gl_NormalScale gl_DepthRange gl_ClipPlane ' +
+ 'gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel ' +
+ 'gl_FrontLightModelProduct gl_BackLightModelProduct ' +
+ 'gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ ' +
+ 'gl_FogParameters ' +
+ 'gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords ' +
+ 'gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats ' +
+ 'gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits ' +
+ 'gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits ' +
+ 'gl_MaxDrawBuffers',
),
hooks: {'#': cppHook},
modeProps: {fold: ['brace', 'include']},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/closebrackets.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/closebrackets.js
index 53153df..4909d95 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/closebrackets.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/closebrackets.js
@@ -83,22 +83,22 @@
curType = 'skip';
} else if (
left == right &&
- cur.ch > 1 &&
- cm.getRange(Pos(cur.line, cur.ch - 2), cur) == left + left &&
- (cur.ch <= 2 ||
- cm.getRange(
- Pos(cur.line, cur.ch - 3),
- Pos(cur.line, cur.ch - 2),
- ) !=
- left)
+ cur.ch > 1 &&
+ cm.getRange(Pos(cur.line, cur.ch - 2), cur) == left + left &&
+ (cur.ch <= 2 ||
+ cm.getRange(
+ Pos(cur.line, cur.ch - 3),
+ Pos(cur.line, cur.ch - 2),
+ ) !=
+ left)
)
curType = 'addFour';
else if (left == right && CodeMirror.isWordChar(next))
return CodeMirror.Pass;
else if (
cm.getLine(cur.line).length == cur.ch ||
- closingBrackets.indexOf(next) >= 0 ||
- SPACE_CHAR_REGEX.test(next)
+ closingBrackets.indexOf(next) >= 0 ||
+ SPACE_CHAR_REGEX.test(next)
)
curType = 'both';
else
@@ -134,11 +134,11 @@
var range = ranges[i];
if (
!range.empty() ||
- cm.getRange(
- range.head,
- Pos(range.head.line, range.head.ch + 1),
- ) !=
- right
+ cm.getRange(
+ range.head,
+ Pos(range.head.line, range.head.ch + 1),
+ ) !=
+ right
)
return CodeMirror.Pass;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/codemirror.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/codemirror.js
index 07c0a02..7501d66 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/codemirror.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/codemirror.js
@@ -134,8 +134,8 @@
// measuring on line wrapping boundaries.
if (
webkit &&
- options.lineWrapping &&
- getComputedStyle(display.lineDiv).textRendering == 'optimizelegibility'
+ options.lineWrapping &&
+ getComputedStyle(display.lineDiv).textRendering == 'optimizelegibility'
)
display.lineDiv.style.textRendering = 'auto';
}
@@ -644,7 +644,7 @@
for (
var i = 0;
i < 4 && startWidth != cm.display.barWidth ||
- startHeight != cm.display.barHeight;
+ startHeight != cm.display.barHeight;
i++
) {
if (startWidth != cm.display.barWidth && cm.options.lineWrapping)
@@ -672,8 +672,8 @@
d.scrollbarFiller.style.display = '';
if (
sizes.bottom &&
- cm.options.coverGutterNextToScrollbar &&
- cm.options.fixedGutter
+ cm.options.coverGutterNextToScrollbar &&
+ cm.options.fixedGutter
) {
d.gutterFiller.style.display = 'block';
d.gutterFiller.style.height = sizes.bottom + 'px';
@@ -725,7 +725,7 @@
var display = cm.display, view = display.view;
if (
!display.alignWidgets &&
- (!display.gutters.firstChild || !cm.options.fixedGutter)
+ (!display.gutters.firstChild || !cm.options.fixedGutter)
)
return;
var comp = compensateForHScroll(display) -
@@ -830,12 +830,12 @@
// Bail out if the visible area is already rendered and nothing changed.
if (
!update.force &&
- update.visible.from >= display.viewFrom &&
- update.visible.to <= display.viewTo &&
- (display.updateLineNumbers == null ||
- display.updateLineNumbers >= display.viewTo) &&
- display.renderedView == display.view &&
- countDirtyView(cm) == 0
+ update.visible.from >= display.viewFrom &&
+ update.visible.to <= display.viewTo &&
+ (display.updateLineNumbers == null ||
+ display.updateLineNumbers >= display.viewTo) &&
+ display.renderedView == display.view &&
+ countDirtyView(cm) == 0
)
return false;
@@ -873,11 +873,11 @@
var toUpdate = countDirtyView(cm);
if (
!different &&
- toUpdate == 0 &&
- !update.force &&
- display.renderedView == display.view &&
- (display.updateLineNumbers == null ||
- display.updateLineNumbers >= display.viewTo)
+ toUpdate == 0 &&
+ !update.force &&
+ display.renderedView == display.view &&
+ (display.updateLineNumbers == null ||
+ display.updateLineNumbers >= display.viewTo)
)
return false;
@@ -915,8 +915,8 @@
for (var first = true; ; first = false) {
if (
first &&
- cm.options.lineWrapping &&
- update.oldDisplayWidth != displayWidth(cm)
+ cm.options.lineWrapping &&
+ update.oldDisplayWidth != displayWidth(cm)
) {
force = true;
} else {
@@ -934,7 +934,7 @@
update.visible = visibleLines(cm.display, cm.doc, viewport);
if (
update.visible.from >= cm.display.viewFrom &&
- update.visible.to <= cm.display.viewTo
+ update.visible.to <= cm.display.viewTo
)
break;
}
@@ -949,7 +949,7 @@
signalLater(cm, 'update', cm);
if (
cm.display.viewFrom != cm.display.reportedViewFrom ||
- cm.display.viewTo != cm.display.reportedViewTo
+ cm.display.viewTo != cm.display.reportedViewTo
) {
signalLater(
cm,
@@ -1198,10 +1198,10 @@
null,
'CodeMirror-gutter-wrapper',
'left: ' +
- (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) +
- 'px; width: ' +
- dims.gutterTotalWidth +
- 'px',
+ (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) +
+ 'px; width: ' +
+ dims.gutterTotalWidth +
+ 'px',
),
lineView.text,
);
@@ -1209,7 +1209,7 @@
gutterWrap.className += ' ' + lineView.line.gutterClass;
if (
cm.options.lineNumbers &&
- (!markers || !markers['CodeMirror-linenumbers'])
+ (!markers || !markers['CodeMirror-linenumbers'])
)
lineView.lineNumber = gutterWrap.appendChild(
elt(
@@ -1217,10 +1217,10 @@
lineNumberFor(cm.options, lineN),
'CodeMirror-linenumber CodeMirror-gutter-elt',
'left: ' +
- dims.gutterLeft['CodeMirror-linenumbers'] +
- 'px; width: ' +
- cm.display.lineNumInnerWidth +
- 'px',
+ dims.gutterLeft['CodeMirror-linenumbers'] +
+ 'px; width: ' +
+ cm.display.lineNumInnerWidth +
+ 'px',
),
);
if (markers)
@@ -1234,10 +1234,10 @@
[found],
'CodeMirror-gutter-elt',
'left: ' +
- dims.gutterLeft[id] +
- 'px; width: ' +
- dims.gutterWidth[id] +
- 'px',
+ dims.gutterLeft[id] +
+ 'px; width: ' +
+ dims.gutterWidth[id] +
+ 'px',
),
);
}
@@ -1357,7 +1357,7 @@
if (other == this) return true;
if (
other.primIndex != this.primIndex ||
- other.ranges.length != this.ranges.length
+ other.ranges.length != this.ranges.length
)
return false;
for (var i = 0; i < this.ranges.length; i++) {
@@ -1577,7 +1577,7 @@
function setSelectionNoUndo(doc, sel, options) {
if (
hasHandler(doc, 'beforeSelectionChange') ||
- doc.cm && hasHandler(doc.cm, 'beforeSelectionChange')
+ doc.cm && hasHandler(doc.cm, 'beforeSelectionChange')
)
sel = filterSelectionChange(doc, sel);
@@ -1641,8 +1641,8 @@
if (
(sp.from == null ||
(m.inclusiveLeft ? sp.from <= curPos.ch : sp.from < curPos.ch)) &&
- (sp.to == null ||
- (m.inclusiveRight ? sp.to >= curPos.ch : sp.to > curPos.ch))
+ (sp.to == null ||
+ (m.inclusiveRight ? sp.to >= curPos.ch : sp.to > curPos.ch))
) {
if (mayClear) {
signal(m, 'beforeCursorEnter');
@@ -1798,14 +1798,14 @@
null,
'CodeMirror-selected',
'position: absolute; left: ' +
- left +
- 'px; top: ' +
- top +
- 'px; width: ' +
- (width == null ? rightSide - left : width) +
- 'px; height: ' +
- (bottom - top) +
- 'px',
+ left +
+ 'px; top: ' +
+ top +
+ 'px; width: ' +
+ (width == null ? rightSide - left : width) +
+ 'px; height: ' +
+ (bottom - top) +
+ 'px',
),
);
}
@@ -1848,14 +1848,14 @@
if (toArg == null && to == lineLen) right = rightSide;
if (
!start ||
- leftPos.top < start.top ||
- leftPos.top == start.top && leftPos.left < start.left
+ leftPos.top < start.top ||
+ leftPos.top == start.top && leftPos.left < start.left
)
start = leftPos;
if (
!end ||
- rightPos.bottom > end.bottom ||
- rightPos.bottom == end.bottom && rightPos.right > end.right
+ rightPos.bottom > end.bottom ||
+ rightPos.bottom == end.bottom && rightPos.right > end.right
)
end = rightPos;
if (left < leftSide + 1) left = leftSide;
@@ -2066,7 +2066,7 @@
var curWidth = wrapping && displayWidth(cm);
if (
!lineView.measure.heights ||
- wrapping && lineView.measure.width != curWidth
+ wrapping && lineView.measure.width != curWidth
) {
var heights = lineView.measure.heights = [];
if (wrapping) {
@@ -2211,8 +2211,8 @@
if (bias == 'right' && start == mEnd - mStart)
while (
i < map.length - 3 &&
- map[i + 3] == map[i + 4] &&
- !map[i + 5].insertLeft
+ map[i + 3] == map[i + 4] &&
+ !map[i + 5].insertLeft
) {
node = map[(i += 3) + 2];
collapse = 'right';
@@ -2232,7 +2232,7 @@
--start;
while (
mStart + end < mEnd &&
- isExtendingChar(prepared.line.text.charAt(mStart + end))
+ isExtendingChar(prepared.line.text.charAt(mStart + end))
)
++end;
if (ie && ie_version < 9 && start == 0 && end == mEnd - mStart) {
@@ -2303,9 +2303,9 @@
function maybeUpdateRectForZooming(measure, rect) {
if (
!window.screen ||
- screen.logicalXDPI == null ||
- screen.logicalXDPI == screen.deviceXDPI ||
- !hasBadZoomedRects(measure)
+ screen.logicalXDPI == null ||
+ screen.logicalXDPI == screen.deviceXDPI ||
+ !hasBadZoomedRects(measure)
)
return rect;
var scaleX = screen.logicalXDPI / screen.deviceXDPI;
@@ -2440,8 +2440,8 @@
right = true;
} else if (
ch == bidiRight(part) &&
- partPos < order.length - 1 &&
- part.level < order[partPos + 1].level
+ partPos < order.length - 1 &&
+ part.level < order[partPos + 1].level
) {
part = order[++partPos];
ch = bidiLeft(part) - part.level % 2;
@@ -2504,8 +2504,8 @@
var mergedPos = merged && merged.find(0, true);
if (
merged &&
- (found.ch > mergedPos.from.ch ||
- found.ch == mergedPos.from.ch && found.xRel > 0)
+ (found.ch > mergedPos.from.ch ||
+ found.ch == mergedPos.from.ch && found.xRel > 0)
)
lineN = lineNo(lineObj = mergedPos.to.line);
else
@@ -2761,9 +2761,9 @@
op.barMeasure.scrollWidth = Math.max(
display.scroller.clientWidth,
display.sizer.offsetLeft +
- op.adjustWidthTo +
- scrollGap(cm) +
- cm.display.barWidth,
+ op.adjustWidthTo +
+ scrollGap(cm) +
+ cm.display.barWidth,
);
op.maxScrollLeft = Math.max(
0,
@@ -2807,14 +2807,14 @@
// Abort mouse wheel delta measurement, when scrolling explicitly
if (
display.wheelStartX != null &&
- (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos)
+ (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos)
)
display.wheelStartX = display.wheelStartY = null;
// Propagate the scroll position to the actual DOM scroller
if (
op.scrollTop != null &&
- (display.scroller.scrollTop != op.scrollTop || op.forceScroll)
+ (display.scroller.scrollTop != op.scrollTop || op.forceScroll)
) {
doc.scrollTop = Math.max(
0,
@@ -2828,7 +2828,7 @@
}
if (
op.scrollLeft != null &&
- (display.scroller.scrollLeft != op.scrollLeft || op.forceScroll)
+ (display.scroller.scrollLeft != op.scrollLeft || op.forceScroll)
) {
doc.scrollLeft = Math.max(
0,
@@ -2959,8 +2959,8 @@
var display = cm.display;
if (
lendiff &&
- to < display.viewTo &&
- (display.updateLineNumbers == null || display.updateLineNumbers > from)
+ to < display.viewTo &&
+ (display.updateLineNumbers == null || display.updateLineNumbers > from)
)
display.updateLineNumbers = from;
@@ -2974,7 +2974,7 @@
// Change before
if (
sawCollapsedSpans &&
- visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom
+ visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom
) {
resetView(cm);
} else {
@@ -3172,10 +3172,10 @@
// in which case reading its value would be expensive.
if (
!cm.state.focused ||
- hasSelection(input) && !prevInput ||
- isReadOnly(cm) ||
- cm.options.disableInput ||
- cm.state.keySeq
+ hasSelection(input) && !prevInput ||
+ isReadOnly(cm) ||
+ cm.options.disableInput ||
+ cm.state.keySeq
)
return false;
// See paste handler for more on the fakedLastChar kludge
@@ -3191,7 +3191,7 @@
// some key combos in Mac (#2689).
if (
ie && ie_version >= 9 && cm.display.inputHasSelection === text ||
- mac && /[\uf700-\uf7ff]/.test(text)
+ mac && /[\uf700-\uf7ff]/.test(text)
) {
resetInput(cm);
return false;
@@ -3203,8 +3203,8 @@
if (
text.charCodeAt(0) == 0x200b &&
- doc.sel == cm.display.selForContextMenu &&
- !prevInput
+ doc.sel == cm.display.selForContextMenu &&
+ !prevInput
)
prevInput = '\u200b';
// Find the part of the input that is actually new
@@ -3258,11 +3258,11 @@
// When an 'electric' character is inserted, immediately trigger a reindent
if (
inserted &&
- !cm.state.pasteIncoming &&
- cm.options.electricChars &&
- cm.options.smartIndent &&
- range.head.ch < 100 &&
- (!i || doc.sel.ranges[i - 1].head.line != range.head.line)
+ !cm.state.pasteIncoming &&
+ cm.options.electricChars &&
+ cm.options.smartIndent &&
+ range.head.ch < 100 &&
+ (!i || doc.sel.ranges[i - 1].head.line != range.head.line)
) {
var mode = cm.getModeAt(range.head);
var end = changeEnd(changeEvent);
@@ -3321,7 +3321,7 @@
function focusInput(cm) {
if (
cm.options.readOnly != 'nocursor' &&
- (!mobile || activeElt() != cm.display.input)
+ (!mobile || activeElt() != cm.display.input)
)
cm.display.input.focus();
}
@@ -3433,8 +3433,8 @@
// selection doesn't span to the end of textarea.
if (
webkit &&
- !cm.state.fakedLastChar &&
- !(new Date() - cm.state.lastMiddleDown < 200)
+ !cm.state.fakedLastChar &&
+ !(new Date() - cm.state.lastMiddleDown < 200)
) {
var start = d.input.selectionStart, end = d.input.selectionEnd;
d.input.value += '$';
@@ -3494,7 +3494,7 @@
var d = cm.display;
if (
d.lastWrapHeight == d.wrapper.clientHeight &&
- d.lastWrapWidth == d.wrapper.clientWidth
+ d.lastWrapWidth == d.wrapper.clientWidth
)
return;
// Might be a text scaling operation, clear size caches.
@@ -3510,8 +3510,8 @@
for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {
if (
!n ||
- n.nodeType == 1 && n.getAttribute('cm-ignore-events') == 'true' ||
- n.parentNode == display.sizer && n != display.mover
+ n.nodeType == 1 && n.getAttribute('cm-ignore-events') == 'true' ||
+ n.parentNode == display.sizer && n != display.mover
)
return true;
}
@@ -3538,8 +3538,8 @@
var coords = coordsChar(cm, x, y), line;
if (
forRect &&
- coords.xRel == 1 &&
- (line = getLine(cm.doc, coords.line).text).length == coords.ch
+ coords.xRel == 1 &&
+ (line = getLine(cm.doc, coords.line).text).length == coords.ch
) {
var colDiff = countColumn(line, line.length, cm.options.tabSize) -
line.length;
@@ -3548,7 +3548,7 @@
Math.max(
0,
Math.round((x - paddingH(cm.display).left) / charWidth(cm.display)) -
- colDiff,
+ colDiff,
),
);
}
@@ -3607,8 +3607,8 @@
var now = +new Date(), type;
if (
lastDoubleClick &&
- lastDoubleClick.time > now - 400 &&
- cmp(lastDoubleClick.pos, start) == 0
+ lastDoubleClick.time > now - 400 &&
+ cmp(lastDoubleClick.pos, start) == 0
) {
type = 'triple';
} else if (
@@ -3624,11 +3624,11 @@
var sel = cm.doc.sel, modifier = mac ? e.metaKey : e.ctrlKey, contained;
if (
cm.options.dragDrop &&
- dragAndDrop &&
- !isReadOnly(cm) &&
- type == 'single' &&
- (contained = sel.contains(start)) > -1 &&
- !sel.ranges[contained].empty()
+ dragAndDrop &&
+ !isReadOnly(cm) &&
+ type == 'single' &&
+ (contained = sel.contains(start)) > -1 &&
+ !sel.ranges[contained].empty()
)
leftButtonStartDrag(cm, e, start, modifier);
else
@@ -4059,7 +4059,7 @@
// Quit if there's nothing to scroll here
if (
!(dx && scroll.scrollWidth > scroll.clientWidth ||
- dy && scroll.scrollHeight > scroll.clientHeight)
+ dy && scroll.scrollHeight > scroll.clientHeight)
)
return;
@@ -4271,7 +4271,7 @@
// Turn mouse into crosshair when Alt is held on Mac.
if (
code == 18 &&
- !/\bCodeMirror-crosshair\b/.test(cm.display.lineDiv.className)
+ !/\bCodeMirror-crosshair\b/.test(cm.display.lineDiv.className)
)
showCrossHair(cm);
}
@@ -4395,7 +4395,7 @@
if (display.input.selectionStart != null) {
var selected = cm.somethingSelected();
var extval = display.input.value = '\u200b' +
- (selected ? display.input.value : '');
+ (selected ? display.input.value : '');
display.prevInput = selected ? '' : '\u200b';
display.input.selectionStart = 1;
display.input.selectionEnd = extval.length;
@@ -4419,7 +4419,7 @@
poll = function() {
if (
display.selForContextMenu == cm.doc.sel &&
- display.input.selectionStart == 0
+ display.input.selectionStart == 0
)
operation(cm, commands.selectAll)(cm);
else if (i++ < 10)
@@ -4551,7 +4551,7 @@
if (
hasHandler(doc, 'beforeChange') ||
- doc.cm && hasHandler(doc.cm, 'beforeChange')
+ doc.cm && hasHandler(doc.cm, 'beforeChange')
) {
change = filterChange(doc, change, true);
if (!change) return;
@@ -4577,8 +4577,8 @@
function makeChangeInner(doc, change) {
if (
change.text.length == 1 &&
- change.text[0] == '' &&
- cmp(change.from, change.to) == 0
+ change.text[0] == '' &&
+ cmp(change.from, change.to) == 0
)
return;
var selAfter = computeSelAfterChange(doc, change);
@@ -4790,8 +4790,8 @@
if (change.full) regChange(cm);
else if (
from.line == to.line &&
- change.text.length == 1 &&
- !isWholeLineUpdate(cm.doc, change)
+ change.text.length == 1 &&
+ !isWholeLineUpdate(cm.doc, change)
)
regLineChange(cm, from.line, 'text');
else
@@ -4847,12 +4847,12 @@
'\u200b',
null,
'position: absolute; top: ' +
- (coords.top - display.viewOffset - paddingTop(cm.display)) +
- 'px; height: ' +
- (coords.bottom - coords.top + scrollGap(cm) + display.barHeight) +
- 'px; left: ' +
- coords.left +
- 'px; width: 2px;',
+ (coords.top - display.viewOffset - paddingTop(cm.display)) +
+ 'px; height: ' +
+ (coords.bottom - coords.top + scrollGap(cm) + display.barHeight) +
+ 'px; left: ' +
+ coords.left +
+ 'px; width: 2px;',
);
cm.display.lineSpace.appendChild(scrollNode);
scrollNode.scrollIntoView(doScroll);
@@ -5286,8 +5286,8 @@
var newRanges = this.doc.sel.ranges;
if (
from.ch == 0 &&
- ranges.length == newRanges.length &&
- newRanges[i].from().ch > 0
+ ranges.length == newRanges.length &&
+ newRanges[i].from().ch > 0
)
replaceOneSelection(
this.doc,
@@ -5480,7 +5480,7 @@
// Default to positioning above (if specified and possible); otherwise default to positioning below
if (
(vert == 'above' || pos.bottom + node.offsetHeight > vspace) &&
- pos.top > node.offsetHeight
+ pos.top > node.offsetHeight
)
top = pos.top - node.offsetHeight;
else if (pos.bottom + node.offsetHeight <= vspace) top = pos.bottom;
@@ -5713,7 +5713,7 @@
updateGutterSpace(this);
if (
oldHeight == null ||
- Math.abs(oldHeight - textHeight(this.display)) > 0.5
+ Math.abs(oldHeight - textHeight(this.display)) > 0.5
)
estimateLineHeights(this);
signal(this, 'refresh', this);
@@ -5983,8 +5983,8 @@
spec = mimeModes[spec];
} else if (
spec &&
- typeof spec.name == 'string' &&
- mimeModes.hasOwnProperty(spec.name)
+ typeof spec.name == 'string' &&
+ mimeModes.hasOwnProperty(spec.name)
) {
var found = mimeModes[spec.name];
if (typeof found == 'string') found = {name: found};
@@ -6791,9 +6791,9 @@
line.markedSpans = removeMarkedSpan(line.markedSpans, span);
if (
span.from == null &&
- this.collapsed &&
- !lineIsHidden(this.doc, line) &&
- cm
+ this.collapsed &&
+ !lineIsHidden(this.doc, line) &&
+ cm
)
updateLineHeight(line, textHeight(cm.display));
}
@@ -6915,8 +6915,8 @@
if (marker.collapsed) {
if (
conflictingCollapsedRange(doc, from.line, from, to, marker) ||
- from.line != to.line &&
- conflictingCollapsedRange(doc, to.line, from, to, marker)
+ from.line != to.line &&
+ conflictingCollapsedRange(doc, to.line, from, to, marker)
)
throw new Error(
'Inserting collapsed marker partially overlapping an existing one',
@@ -6936,9 +6936,9 @@
doc.iter(curLine, to.line + 1, function(line) {
if (
cm &&
- marker.collapsed &&
- !cm.options.lineWrapping &&
- visualLine(line) == cm.display.maxLine
+ marker.collapsed &&
+ !cm.options.lineWrapping &&
+ visualLine(line) == cm.display.maxLine
)
updateMaxLine = true;
if (marker.collapsed && curLine != from.line) updateLineHeight(line, 0);
@@ -6975,10 +6975,10 @@
if (marker.collapsed) regChange(cm, from.line, to.line + 1);
else if (
marker.className ||
- marker.title ||
- marker.startStyle ||
- marker.endStyle ||
- marker.css
+ marker.title ||
+ marker.startStyle ||
+ marker.endStyle ||
+ marker.css
)
for (var i = from.line; i <= to.line; i++)
regLineChange(cm, i, 'text');
@@ -7126,9 +7126,9 @@
(marker.inclusiveLeft ? span.from <= startCh : span.from < startCh);
if (
startsBefore ||
- span.from == startCh &&
- marker.type == 'bookmark' &&
- (!isInsert || !span.marker.insertLeft)
+ span.from == startCh &&
+ marker.type == 'bookmark' &&
+ (!isInsert || !span.marker.insertLeft)
) {
var endsAfter = span.to == null ||
(marker.inclusiveRight ? span.to >= startCh : span.to > startCh);
@@ -7149,9 +7149,9 @@
(marker.inclusiveRight ? span.to >= endCh : span.to > endCh);
if (
endsAfter ||
- span.from == endCh &&
- marker.type == 'bookmark' &&
- (!isInsert || span.marker.insertLeft)
+ span.from == endCh &&
+ marker.type == 'bookmark' &&
+ (!isInsert || span.marker.insertLeft)
) {
var startsBefore = span.from == null ||
(marker.inclusiveLeft ? span.from <= endCh : span.from < endCh);
@@ -7248,8 +7248,8 @@
var span = spans[i];
if (
span.from != null &&
- span.from == span.to &&
- span.marker.clearWhenEmpty !== false
+ span.from == span.to &&
+ span.marker.clearWhenEmpty !== false
)
spans.splice((i--), 1);
}
@@ -7361,8 +7361,8 @@
sp = sps[i];
if (
sp.marker.collapsed &&
- (start ? sp.from : sp.to) == null &&
- (!found || compareCollapsedMarkers(found, sp.marker) < 0)
+ (start ? sp.from : sp.to) == null &&
+ (!found || compareCollapsedMarkers(found, sp.marker) < 0)
)
found = sp.marker;
}
@@ -7395,9 +7395,9 @@
fromCmp <= 0 &&
(cmp(found.to, from) > 0 ||
sp.marker.inclusiveRight && marker.inclusiveLeft) ||
- fromCmp >= 0 &&
- (cmp(found.from, to) < 0 ||
- sp.marker.inclusiveLeft && marker.inclusiveRight)
+ fromCmp >= 0 &&
+ (cmp(found.from, to) < 0 ||
+ sp.marker.inclusiveLeft && marker.inclusiveRight)
)
return true;
}
@@ -7456,8 +7456,8 @@
if (sp.marker.widgetNode) continue;
if (
sp.from == 0 &&
- sp.marker.inclusiveLeft &&
- lineIsHiddenInner(doc, line, sp)
+ sp.marker.inclusiveLeft &&
+ lineIsHiddenInner(doc, line, sp)
)
return true;
}
@@ -7476,11 +7476,11 @@
sp = line.markedSpans[i];
if (
sp.marker.collapsed &&
- !sp.marker.widgetNode &&
- sp.from == span.to &&
- (sp.to == null || sp.to != span.from) &&
- (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
- lineIsHiddenInner(doc, line, sp)
+ !sp.marker.widgetNode &&
+ sp.from == span.to &&
+ (sp.to == null || sp.to != span.from) &&
+ (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
+ lineIsHiddenInner(doc, line, sp)
)
return true;
}
@@ -8065,7 +8065,7 @@
if (m.title && !title) title = m.title;
if (
m.collapsed &&
- (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0)
+ (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0)
)
collapsed = sp;
} else if (sp.from > pos && nextChange > sp.from) {
@@ -8171,8 +8171,8 @@
update(
firstLine,
firstLine.text.slice(0, from.ch) +
- lastText +
- firstLine.text.slice(to.ch),
+ lastText +
+ firstLine.text.slice(to.ch),
lastSpans,
);
} else {
@@ -8309,7 +8309,7 @@
// single leaf node.
if (
this.size - n < 25 &&
- (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))
+ (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))
) {
var lines = [];
this.collapse(lines);
@@ -8723,7 +8723,7 @@
var span = spans[i];
if (
(span.from == null || span.from <= pos.ch) &&
- (span.to == null || span.to >= pos.ch)
+ (span.to == null || span.to >= pos.ch)
)
markers.push(span.marker.parent || span.marker);
}
@@ -8742,7 +8742,7 @@
!(lineNo == from.line && from.ch > span.to ||
span.from == null && lineNo != from.line ||
lineNo == to.line && span.from > to.ch) &&
- (!filter || filter(span.marker))
+ (!filter || filter(span.marker))
)
found.push(span.marker.parent || span.marker);
}
@@ -9098,7 +9098,7 @@
doc.cm &&
hist.lastModTime > time - doc.cm.options.historyEventDelay ||
change.origin.charAt(0) == '*')) &&
- (cur = lastChangeEvent(hist, hist.lastOp == opId))
+ (cur = lastChangeEvent(hist, hist.lastOp == opId))
) {
// Merge this change into the last event
var last = lst(cur.changes);
@@ -9156,10 +9156,10 @@
// merged when similar and close together in time.
if (
opId == hist.lastSelOp ||
- origin &&
- hist.lastSelOrigin == origin &&
- (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin ||
- selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))
+ origin &&
+ hist.lastSelOrigin == origin &&
+ (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin ||
+ selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))
)
hist.done[hist.done.length - 1] = sel;
else
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/coffeescript.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/coffeescript.js
index 35beaaa..733b40b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/coffeescript.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/coffeescript.js
@@ -331,7 +331,7 @@
(current === '->' || current === '=>') &&
!state.lambda &&
!stream.peek() ||
- style === 'indent'