|
|
@ -20737,25 +20737,27 @@ BI.Trigger = BI.inherit(BI.Single, { |
|
|
|
addMatches(result, search, tables, function(w) {return w}); |
|
|
|
addMatches(result, search, tables, function(w) {return w}); |
|
|
|
addMatches(result, search, defaultTable, function(w) {return w}); |
|
|
|
addMatches(result, search, defaultTable, function(w) {return w}); |
|
|
|
if (!disableKeywords) |
|
|
|
if (!disableKeywords) |
|
|
|
addMatches(result, search, keywords, function(w, i) { |
|
|
|
addMatches(result, search, keywords, function(w) {return w;}); |
|
|
|
var isKeyword = i < keywordsCount; |
|
|
|
// 这边是加tooltip的,现在貌似不要了
|
|
|
|
return { |
|
|
|
// addMatches(result, search, keywords, function(w, i) {
|
|
|
|
isKeyword: isKeyword, |
|
|
|
// var isKeyword = i < keywordsCount;
|
|
|
|
text: w, |
|
|
|
// return {
|
|
|
|
description: desc[w] || "SQL关键字", |
|
|
|
// isKeyword: isKeyword,
|
|
|
|
className: isKeyword ? "sql-keyword" : "sql-fr-function", |
|
|
|
// text: w,
|
|
|
|
render: function (Element, self, data) { |
|
|
|
// description: desc[w] || "SQL关键字",
|
|
|
|
var label = BI.createWidget({ |
|
|
|
// className: isKeyword ? "sql-keyword" : "sql-fr-function",
|
|
|
|
type: "bi.label", |
|
|
|
// render: function (Element, self, data) {
|
|
|
|
element: Element, |
|
|
|
// var label = BI.createWidget({
|
|
|
|
text: data.displayText || getText(data) |
|
|
|
// type: "bi.label",
|
|
|
|
}); |
|
|
|
// element: Element,
|
|
|
|
label.setTitle(data.description, { |
|
|
|
// text: data.displayText || getText(data)
|
|
|
|
container: "body" |
|
|
|
// });
|
|
|
|
}); |
|
|
|
// label.setTitle(data.description, {
|
|
|
|
} |
|
|
|
// container: "body"
|
|
|
|
}; |
|
|
|
// });
|
|
|
|
}); |
|
|
|
// }
|
|
|
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
// });
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return {list: result, from: Pos(cur.line, start), to: Pos(cur.line, end)}; |
|
|
|
return {list: result, from: Pos(cur.line, start), to: Pos(cur.line, end)}; |
|
|
|