MCPcopy Create free account
hub / github.com/pulsar-edit/pulsar / buildTextEditor

Function buildTextEditor

packages/language-javascript/spec/javascript-spec.js:5–14  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

3const path = require('path');
4let TextEditor = null;
5const buildTextEditor = function(params) {
6 if (atom.workspace.buildTextEditor != null) {
7 return atom.workspace.buildTextEditor(params);
8 } else {
9 if (TextEditor == null) { ({
10 TextEditor
11 } = require('atom')); }
12 return new TextEditor(params);
13 }
14};
15
16describe("JavaScript grammar", function() {
17 let grammar = null;

Callers 1

javascript-spec.jsFile · 0.70

Calls 1

buildTextEditorMethod · 0.80

Tested by

no test coverage detected