Skip to content

Commit

Permalink
devtools: land initial support for selected compiler display in the p…
Browse files Browse the repository at this point in the history
…rompt
  • Loading branch information
darwin committed Sep 28, 2016
1 parent 738a4e7 commit 1e39877
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions resources/unpacked/devtools/front_end/console/ConsoleView.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,24 +559,34 @@ WebInspector.ConsoleView.prototype = {
}
},

_refreshNs: function () {
_refreshPromptInfo: function () {
var promptDescriptor = this._prompts[this._activePromptIndex];
if (promptDescriptor.id != "dirac") {
return;
}

var label = this._currentNs?this._currentNs:"";
var label = this._currentNamespace ? this._currentNamespace : "";
if (this._currentCompiler) {
label += " » " + this._currentCompiler;
}
promptDescriptor.codeMirror.setOption("placeholder", label);
},

setDiracPromptNS: function(name)
{
dirac.feedback("setDiracPromptNS('"+name+"')");
this._currentNs = name;
this._currentNamespace = name;
if (this._diracPromptDescriptor) {
this._diracPromptDescriptor.prompt.setCurrentClojureScriptNamespace(name);
}
this._refreshNs();
this._refreshPromptInfo();
},

setDiracPromptCompiler: function(name)
{
dirac.feedback("setDiracPromptCompiler('"+name+"')");
this._currentCompiler = name;
this._refreshPromptInfo();
},

onJobStarted: function(requestId) {
Expand Down

0 comments on commit 1e39877

Please sign in to comment.