mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vue] basic support for properties provided by provide / inject WEB-40356
GitOrigin-RevId: 0b1af62b3a54fa4407cd0ac704f0e6dd35b538af
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d4a515d879
commit
b5d4584e33
@@ -197,7 +197,7 @@ fun PsiFile.findOffsetBySignature(signature: String): Int {
|
||||
var str = signature
|
||||
val caretSignature = "<caret>"
|
||||
val caretOffset = str.indexOf(caretSignature)
|
||||
assert(caretOffset >= 0)
|
||||
assert(caretOffset >= 0) { "Caret offset is required" }
|
||||
str = str.substring(0, caretOffset) + str.substring(caretOffset + caretSignature.length)
|
||||
val pos = text.indexOf(str)
|
||||
assertTrue("Failed to locate '$str' in: \n $text", pos >= 0)
|
||||
|
||||
Reference in New Issue
Block a user