summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorBogdan Gheorghe2013-02-04 14:19:24 (EST)
committer Silenio Quarti2013-02-04 14:19:24 (EST)
commit31274b02f50cc84b90a92144a6477ee3b4bec5f1 (patch)
treead0a176891976fd019d2fc25b0b3d8def415af91
parentbe95ea8fd435f4f4e51de07db0e6de6872d3318d (diff)
downloadorg.eclipse.orion.client-31274b02f50cc84b90a92144a6477ee3b4bec5f1.zip
org.eclipse.orion.client-31274b02f50cc84b90a92144a6477ee3b4bec5f1.tar.gz
org.eclipse.orion.client-31274b02f50cc84b90a92144a6477ee3b4bec5f1.tar.bz2
content assist is not working in Editor#edit
-rw-r--r--bundles/org.eclipse.orion.client.editor/web/orion/editor/edit.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.orion.client.editor/web/orion/editor/edit.js b/bundles/org.eclipse.orion.client.editor/web/orion/editor/edit.js
index 5a21092..f8fccac 100644
--- a/bundles/org.eclipse.orion.client.editor/web/orion/editor/edit.js
+++ b/bundles/org.eclipse.orion.client.editor/web/orion/editor/edit.js
@@ -174,9 +174,9 @@ define('orion/editor/edit', [
editor.setInput(options.title, null, contents);
syntaxHighlighter.highlight(options.lang, editor);
contentAssist.addEventListener("Activating", function() {
- if (/\.css$/.test(options.lang)) {
+ if (/css$/.test(options.lang)) {
contentAssist.setProviders([cssContentAssistProvider]);
- } else if (/\.js$/.test(options.lang)) {
+ } else if (/js$/.test(options.lang)) {
contentAssist.setProviders([jsTemplateContentAssistProvider]);
}
});