File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/kotlin/com/emberjs Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,6 @@ class GlintLspServerDescriptor(private val myProject: Project) : LspServerDescri
139
139
140
140
fun getGlintVersion (): String? {
141
141
val workingDir = lastDir!!
142
- val workDirectory = VfsUtilCore .virtualToIoFile(workingDir)
143
142
var path = workingDir.findFileByRelativePath(" node_modules/@glint/core/package.json" ) ? : return null
144
143
return PackageJsonData .getOrCreate(path).version?.rawVersion
145
144
}
@@ -152,7 +151,7 @@ class GlintLspServerDescriptor(private val myProject: Project) : LspServerDescri
152
151
val pkg = config.getPackage()
153
152
val pkgPath = pkg.`package`.constantPackage?.systemIndependentPath
154
153
if (pkgPath != null && File (pkgPath).exists()) {
155
- path = File (pkgPath).parentFile.parentFile.path
154
+ path = File (pkgPath).parentFile.parentFile.parentFile. path
156
155
}
157
156
path = path.replace(" \\ " , " /" )
158
157
this .isWsl = false
Original file line number Diff line number Diff line change @@ -199,6 +199,9 @@ fun toAttributeReference(target: XmlAttribute): PsiReference? {
199
199
if (name.length == 1 ) {
200
200
return null
201
201
}
202
+ if (! name.contains(" |" )) {
203
+ return null
204
+ }
202
205
var range = TextRange (0 , name.length)
203
206
if (name.startsWith(" |" )) {
204
207
range = TextRange (1 , range.endOffset)
You can’t perform that action at this time.
0 commit comments