...
This commit is contained in:
parent
3be5176d7b
commit
7fe8e2a096
2 changed files with 4 additions and 5 deletions
|
@ -121,10 +121,8 @@ define([
|
|||
self.setUseWorker(userConfig.useWorker);
|
||||
});
|
||||
//syntax, however, is sync
|
||||
var syntaxValue = "plain_text";
|
||||
if (this.syntaxMode) {
|
||||
return this.syntaxMode;
|
||||
} else if (this.file) {
|
||||
var syntaxValue = this.syntaxMode || "plain_text";
|
||||
if (!this.syntaxMode && this.file) {
|
||||
if (this.file.virtual) {
|
||||
//settings files are special
|
||||
syntaxValue = "javascript";
|
||||
|
@ -143,6 +141,7 @@ define([
|
|||
}
|
||||
}
|
||||
}
|
||||
this.setMode("ace/mode/" + syntaxValue);
|
||||
this.syntaxMode = syntaxValue;
|
||||
return syntaxValue;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "Caret",
|
||||
"description": "Professional text editing for Chrome and Chrome OS",
|
||||
"version": "1.3.15",
|
||||
"version": "1.3.17",
|
||||
"manifest_version": 2,
|
||||
"icons": {
|
||||
"128": "icon-128.png"
|
||||
|
|
Loading…
Reference in a new issue