Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit e0ae9fd

Browse files
committed
Reorganizing metadata to make the list uncluttered.
1 parent 25a6acd commit e0ae9fd

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/extensions/default/JavaScriptCodeHints/main.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,27 +271,29 @@ define(function (require, exports, module) {
271271

272272
$hintObj.data("token", token);
273273

274+
if (token.url) {
275+
$('<a href=' + token.url + '>ooo</a>').appendTo($hintObj).addClass("jshint-description-url");
276+
}
277+
274278
if (token.type) {
275-
$('<span>' + " " + token.type.split('->').join(':') + '</span>').appendTo($hintObj).addClass("brackets-js-hints-type-details");
279+
//$('<span>' + " " + token.type.split('->').join(':') + '</span>').appendTo($hintObj).addClass("brackets-js-hints-type-details");
280+
$('<span>' + " " + token.type.split('->').join(':') + '</span>').appendTo($hintObj).addClass("jshint-description");
276281
} else {
277282
if (token.keyword) {
278283
$('<span>' + " " + "keyword" + '</span>').appendTo($hintObj).addClass("brackets-js-hints-type-details").addClass("keyword");
279284
}
280285
}
281286

282-
if (token.url) {
283-
$('<a href=' + token.url + '>ooo</a>').appendTo($hintObj).addClass("jshint-description-url");
284-
}
285-
286287
if (token.doc) {
287-
$('<span>' + " " + token.doc + '</span>').appendTo($hintObj).addClass("jshint-description");
288+
//$('<span>' + " " + token.doc + '</span>').appendTo($hintObj).addClass("jshint-description");
289+
$hintObj.attr('title', token.doc);
288290
}
289291

290292
$('<div class="hint-width-limiter"></div>').appendTo($hintObj);
291293

292294
return $hintObj;
293295
});
294-
}
296+
}
295297

296298
// trim leading and trailing string literal delimiters from the query
297299
trimmedQuery = _.trim(query, HintUtils.SINGLE_QUOTE + HintUtils.DOUBLE_QUOTE);

src/extensions/default/JavaScriptCodeHints/styles/brackets-js-hints.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323

2424
.hint-width-limiter {
25-
width:470px;
25+
width:450px;
2626
}
2727

2828
.brackets-js-hints-type {
@@ -71,15 +71,14 @@
7171
.jshint-description {
7272
line-height: 1.3;
7373
display: none;
74-
width: calc(100% - 50px);
7574
padding-bottom: 3px;
7675
padding-left: 37px;
7776
padding-right: 37px;
7877
color: #d3d3d3;
7978
box-sizing: border-box;
8079
word-wrap: break-word;
8180
white-space: normal;
82-
width:450px;
81+
width:450px;
8382
}
8483

8584
.jshint-description-url {
@@ -99,6 +98,7 @@
9998

10099
.highlight .jshint-description {
101100
display: block;
101+
color:#6495ed;
102102
}
103103

104104
.dark .brackets-js-hints-type-details {

0 commit comments

Comments
 (0)