Skip to content

Commit 2d5e6ef

Browse files
authored
fix py charm init (#263)
fixes #260
1 parent 27e5aff commit 2d5e6ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/kotlin/com/emberjs/gts/GtsSupport.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ class GjsLanguage(): GtsLanguage(JS, "Gjs") {
126126

127127
class GtsFile(viewProvider: FileViewProvider?, val isJS: Boolean =false)
128128
: JSFileImpl(viewProvider!!, isJS.ifTrue { GjsLanguage.INSTANCE } ?: GtsLanguage.INSTANCE) {
129+
129130
override fun getFileType(): FileType {
130131
return isJS.ifTrue { GjsFileType.INSTANCE } ?: GtsFileType.INSTANCE
131132
}
@@ -791,7 +792,9 @@ class GtsIndexedFileTypeProvider : IndexedFileTypeProvider {
791792
override fun getFileTypesToIndex(): Array<FileType> = arrayOf(GtsFileType.INSTANCE)
792793
}
793794

794-
val NoWrap = Wrap.createWrap(WrapType.NONE, false).apply { ignoreParentWraps() }
795+
val NoWrap by lazy {
796+
Wrap.createWrap(WrapType.NONE, false).apply { ignoreParentWraps() }
797+
}
795798

796799

797800
// wrapper to patch JsBlocks to include outer language block into JSAssignmentExpression and JSVarStatement

0 commit comments

Comments
 (0)