Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Release v0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafaeweda committed Apr 17, 2018
1 parent 967100c commit 511c966
Show file tree
Hide file tree
Showing 432 changed files with 41,479 additions and 39,326 deletions.
Empty file removed DEVELOPMENT
Empty file.
23 changes: 1 addition & 22 deletions flow-libs/nuclide.flow.js
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*
* @flow
* @format
*/

/* eslint-disable no-undef */

declare interface nuclide$CwdApi {
setCwd(path: string): void;
observeCwd(callback: (path: ?string) => void): IDisposable;
getCwd(): ?string;
}

declare interface nuclide$RpcService {
getServiceByNuclideUri(serviceName: string, uri: ?string): any;
}
"use strict";
110 changes: 60 additions & 50 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,70 +1,80 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* @format
*/
'use strict';

/* eslint-disable rulesdir/no-commonjs */
var _fs = _interopRequireDefault(require('fs'));

var _path = _interopRequireDefault(require('path'));

var _UniversalDisposable;

function _load_UniversalDisposable() {
return _UniversalDisposable = _interopRequireDefault(require('nuclide-commons/UniversalDisposable'));
}

var _FeatureLoader;

function _load_FeatureLoader() {
return _FeatureLoader = _interopRequireDefault(require('nuclide-commons-atom/FeatureLoader'));
}

var _displayNuclideWarning;

function _load_displayNuclideWarning() {
return _displayNuclideWarning = _interopRequireDefault(require('./display-nuclide-warning'));
}

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

import fs from 'fs';
// eslint-disable-next-line rulesdir/prefer-nuclide-uri
import path from 'path';
import UniversalDisposable from 'nuclide-commons/UniversalDisposable';
import FeatureLoader from 'nuclide-commons-atom/FeatureLoader';
import displayNuclideWarning from './display-nuclide-warning';
const featureDir = _path.default.join(__dirname, 'modules/atom-ide-ui/pkg'); /**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
* @format
*/

const featureDir = path.join(__dirname, 'modules/atom-ide-ui/pkg');
const features = fs
.readdirSync(featureDir)
.map(item => {
const dirname = path.join(featureDir, item);
try {
const pkgJson = fs.readFileSync(
path.join(dirname, 'package.json'),
'utf8',
);
return {
path: dirname,
pkg: JSON.parse(pkgJson),
};
} catch (err) {
if (err.code !== 'ENOENT' && err.code !== 'ENOTDIR') {
throw err;
}
/* eslint-disable rulesdir/no-commonjs */

const features = _fs.default.readdirSync(featureDir).map(item => {
const dirname = _path.default.join(featureDir, item);
try {
const pkgJson = _fs.default.readFileSync(_path.default.join(dirname, 'package.json'), 'utf8');
return {
path: dirname,
pkg: JSON.parse(pkgJson)
};
} catch (err) {
if (err.code !== 'ENOENT' && err.code !== 'ENOTDIR') {
throw err;
}
})
.filter(Boolean);
}
}).filter(Boolean);

/**
* Use a unified package loader to load all the feature packages.
* See the following post for more context:
* https://nuclide.io/blog/2016/01/13/Nuclide-v0.111.0-The-Unified-Package/
*/
let disposables: ?UniversalDisposable;
const featureLoader = new FeatureLoader({
let disposables;
const featureLoader = new (_FeatureLoader || _load_FeatureLoader()).default({
path: __dirname,
config: {},
features,
features
});
featureLoader.load();

module.exports = {
config: featureLoader.getConfig(),
activate() {
disposables = new UniversalDisposable(
require('nuclide-commons-ui'),
atom.packages.onDidActivatePackage(pkg => {
if (pkg.name === 'nuclide') {
displayNuclideWarning();
}
}),
);
disposables = new (_UniversalDisposable || _load_UniversalDisposable()).default(require('nuclide-commons-ui'), atom.packages.onDidActivatePackage(pkg => {
if (pkg.name === 'nuclide') {
(0, (_displayNuclideWarning || _load_displayNuclideWarning()).default)();
}
}));
featureLoader.activate();
},
deactivate() {
Expand All @@ -76,5 +86,5 @@ module.exports = {
},
serialize() {
featureLoader.serialize();
},
};
}
};
137 changes: 15 additions & 122 deletions modules/atom-ide-ui/index.js
Original file line number Diff line number Diff line change
@@ -1,127 +1,20 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* @format
*/
'use strict';

export type {
BusySignalOptions,
BusySignalService,
} from './pkg/atom-ide-busy-signal/lib/types';
Object.defineProperty(exports, "__esModule", {
value: true
});

export type {
CodeAction,
CodeActionProvider,
} from './pkg/atom-ide-code-actions/lib/types';
var _RemoteControlService;

export type {
CodeFormatProvider,
RangeCodeFormatProvider,
FileCodeFormatProvider,
OnTypeCodeFormatProvider,
OnSaveCodeFormatProvider,
} from './pkg/atom-ide-code-format/lib/types';
function _load_RemoteControlService() {
return _RemoteControlService = require('./pkg/atom-ide-debugger/lib/RemoteControlService');
}

export type {
CodeHighlightProvider,
} from './pkg/atom-ide-code-highlight/lib/types';
Object.defineProperty(exports, 'DebuggerService', {
enumerable: true,
get: function () {
return _interopRequireDefault(_RemoteControlService || _load_RemoteControlService()).default;
}
});

export type {
Datatip,
DatatipProvider,
DatatipService,
MarkedString,
ModifierDatatipProvider,
ModifierKey,
} from './pkg/atom-ide-datatip/lib/types';

export type {
Definition,
DefinitionProvider,
DefinitionPreviewProvider,
DefinitionQueryResult,
} from './pkg/atom-ide-definitions/lib/types';

export type {
CallbackDiagnosticProvider,
DiagnosticFix,
DiagnosticInvalidationCallback,
DiagnosticInvalidationMessage,
DiagnosticMessage,
DiagnosticMessages,
DiagnosticMessageKind,
DiagnosticMessageType,
DiagnosticProvider,
DiagnosticProviderUpdate,
DiagnosticTrace,
DiagnosticUpdateCallback,
IndieLinterDelegate,
LinterMessage,
LinterMessageV1,
LinterMessageV2,
LinterProvider,
LinterTrace,
ObservableDiagnosticProvider,
RegisterIndieLinter,
} from './pkg/atom-ide-diagnostics/lib/types';

export type {
FindReferencesProvider,
FindReferencesReturn,
Reference,
} from './pkg/atom-ide-find-references/lib/types';

export type {
Outline,
OutlineProvider,
OutlineTree,
ResultsStreamProvider,
} from './pkg/atom-ide-outline-view/lib/types';

export type {
Signature,
SignatureHelp,
SignatureHelpProvider,
SignatureHelpRegistry,
SignatureParameter,
} from './pkg/atom-ide-signature-help/lib/types';

export type {
HyperclickProvider,
HyperclickSuggestion,
} from './pkg/hyperclick/lib/types';

export type {
ConsoleService,
ConsoleApi,
Level as ConsoleLevel,
Message as ConsoleMessage,
SourceInfo as ConsoleSourceInfo,
OutputProviderStatus,
} from './pkg/atom-ide-console/lib/types';

// Deprecated console types. Exported only for legacy users.
export type {
OutputService,
RegisterExecutorFunction,
} from './pkg/atom-ide-console/lib/types';

export {
default as DebuggerService,
} from './pkg/atom-ide-debugger/lib/RemoteControlService';

export type {
TerminalInfo,
TerminalInstance,
TerminalApi,
} from './pkg/atom-ide-terminal/lib/types';

export type {
Command as TerminalCommand,
} from './pkg/atom-ide-terminal/lib/pty-service/rpc-types';
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
Loading

0 comments on commit 511c966

Please sign in to comment.