don't warn when editing ktxt2 file itself
This commit is contained in:
@@ -239,11 +239,12 @@
|
|||||||
->e
|
->e
|
||||||
(let [f e.document.fileName
|
(let [f e.document.fileName
|
||||||
dir (FileSystem.readDirectory (f.directory))]
|
dir (FileSystem.readDirectory (f.directory))]
|
||||||
(doFor otherF dir
|
(unless (f.endsWith "ktxt2")
|
||||||
(whenLet [(Some _) (indexOf otherF (.withoutDirectory (f.withoutExtension)))
|
(doFor otherF dir
|
||||||
(Some _) (indexOf otherF (f.extension))
|
(whenLet [(Some _) (indexOf otherF (.withoutDirectory (f.withoutExtension)))
|
||||||
true (otherF.endsWith ".ktxt2")]
|
(Some _) (indexOf otherF (f.extension))
|
||||||
(errorMessage "Editing file $(f.withoutDirectory) which is managed by $(otherF.withoutDirectory)"))))))
|
true (otherF.endsWith ".ktxt2")]
|
||||||
|
(errorMessage "Editing file $(f.withoutDirectory) which is managed by $(otherF.withoutDirectory)")))))))
|
||||||
|
|
||||||
// TODO standardize this with KissInterp
|
// TODO standardize this with KissInterp
|
||||||
(function :Void prepareInterp []
|
(function :Void prepareInterp []
|
||||||
|
Reference in New Issue
Block a user