mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Require ipc-renderer where it belongs
This commit is contained in:
@@ -2,7 +2,7 @@ fs = require 'fs'
|
||||
_ = require 'underscore-plus'
|
||||
fs = require 'fs-plus'
|
||||
path = require 'path'
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
|
||||
module.exports = ({logFile, headless, testPaths, buildAtomEnvironment}) ->
|
||||
window[key] = value for key, value of require '../vendor/jasmine'
|
||||
|
||||
@@ -4585,7 +4585,7 @@ describe('TextEditorComponent', function () {
|
||||
|
||||
it('pastes the previously selected text at the clicked location', async function () {
|
||||
let clipboardWrittenTo = false
|
||||
spyOn(require('ipc-main'), 'send').andCallFake(function (eventName, selectedText) {
|
||||
spyOn(require('ipc-renderer'), 'send').andCallFake(function (eventName, selectedText) {
|
||||
if (eventName === 'write-text-to-selection-clipboard') {
|
||||
require('../src/safe-clipboard').writeText(selectedText, 'selection')
|
||||
clipboardWrittenTo = true
|
||||
|
||||
@@ -4,7 +4,7 @@ fs = require 'fs-plus'
|
||||
temp = require 'temp'
|
||||
TextEditor = require '../src/text-editor'
|
||||
WindowEventHandler = require '../src/window-event-handler'
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
|
||||
describe "WindowEventHandler", ->
|
||||
[projectPath, windowEventHandler] = []
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
path = require 'path'
|
||||
temp = require('temp').track()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
_ = require 'underscore-plus'
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
remote = require 'remote'
|
||||
shell = require 'shell'
|
||||
webFrame = require 'web-frame'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
crypto = require 'crypto'
|
||||
path = require 'path'
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
|
||||
_ = require 'underscore-plus'
|
||||
{deprecate} = require 'grim'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
fs = require 'fs-plus'
|
||||
path = require 'path'
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
|
||||
module.exports =
|
||||
class AtomPortable
|
||||
|
||||
@@ -14,7 +14,7 @@ module.exports = ({blobStore}) ->
|
||||
|
||||
try
|
||||
path = require 'path'
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
{getWindowLoadSettings} = require './window-load-settings-helpers'
|
||||
AtomEnvironment = require '../src/atom-environment'
|
||||
ApplicationDelegate = require '../src/application-delegate'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
path = require 'path'
|
||||
|
||||
_ = require 'underscore-plus'
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
CSON = require 'season'
|
||||
fs = require 'fs-plus'
|
||||
{Disposable} = require 'event-kit'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
|
||||
module.exports = ({commandRegistry, commandInstaller, config}) ->
|
||||
commandRegistry.add 'atom-workspace',
|
||||
|
||||
@@ -2,7 +2,7 @@ _ = require 'underscore-plus'
|
||||
scrollbarStyle = require 'scrollbar-style'
|
||||
{Range, Point} = require 'text-buffer'
|
||||
{CompositeDisposable} = require 'event-kit'
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
|
||||
TextEditorPresenter = require './text-editor-presenter'
|
||||
GutterContainerComponent = require './gutter-container-component'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
path = require 'path'
|
||||
{Disposable, CompositeDisposable} = require 'event-kit'
|
||||
Grim = require 'grim'
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
|
||||
var initialize = require(loadSettings.windowInitializationScript)
|
||||
initialize({blobStore: blobStore})
|
||||
require('ipc-main').send('window-command', 'window:loaded')
|
||||
require('ipc-renderer').send('window-command', 'window:loaded')
|
||||
}
|
||||
|
||||
function setupCsonCache (cacheDir) {
|
||||
|
||||
Reference in New Issue
Block a user