summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorBogdan Gheorghe2013-02-04 14:19:24 (EST)
committer Silenio Quarti2013-02-04 14:19:24 (EST)
commit893ed86810f678a4da37fa84c874cd8f4a06c396 (patch)
treead0a176891976fd019d2fc25b0b3d8def415af91
parent5dd40350c3b710e57472c3b5a31645a0191bf90f (diff)
downloadorg.eclipse.orion.client-893ed86810f678a4da37fa84c874cd8f4a06c396.zip
org.eclipse.orion.client-893ed86810f678a4da37fa84c874cd8f4a06c396.tar.gz
org.eclipse.orion.client-893ed86810f678a4da37fa84c874cd8f4a06c396.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]);
}
});