Skip to content

Commit

Permalink
Exposing gauge in global scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
BugDiver committed May 8, 2018
1 parent 8b0b175 commit 62fd0f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gauge.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var gaugeGlobal = require("./gauge-global");
var Connection = require("./connection");
var MessageProcessor = require("./message-processor").MessageProcessor;
var protobuf = require("protobufjs");
Expand All @@ -12,6 +13,7 @@ var LspServerHandler = require("./lsp-server");
var GAUGE_INTERNAL_PORT = process.env.GAUGE_INTERNAL_PORT;

function run() {
global.gauge = gaugeGlobal.gauge;
if (process.env.IS_DAEMON) {
consoleStamp(console, { label: false, pattern: "HH:MM:ss.l", datePrefix: "", dateSuffix: "" });
}
Expand Down

0 comments on commit 62fd0f3

Please sign in to comment.