Skip to content

Commit

Permalink
Adds Chefile mapping so we can have syntax highlighting
Browse files Browse the repository at this point in the history
#2266

Change-Id: Id812a92bf51d58cabda4a9840acbb3e7f6cbafe2
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
  • Loading branch information
benoitf committed Sep 29, 2016
1 parent 47193dc commit a77be10
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import org.eclipse.che.ide.api.resources.VirtualFile;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

Expand Down Expand Up @@ -41,6 +42,9 @@ public List<String> identifyType(final VirtualFile file) {
if ("Dockerfile".equals(filename)) {
return Collections.singletonList("text/x-dockerfile");
}
if ("Chefile".equals(filename)) {
return Arrays.asList("application/javascript", "text/javascript");
}

// not a known file name
return null;
Expand Down

0 comments on commit a77be10

Please sign in to comment.