mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[IFT] Change name of "Smart type completion" lesson to "Type-matching completion"
also fix the indent in the python sample GitOrigin-RevId: e8e88c6618eb4f700bdbdf7ccb286cfe18b9d8a2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9b004df451
commit
03cf96a57d
@@ -14,7 +14,6 @@ java.run.configuration.lets.run=Any code marked with {0} can be run. Let''s run
|
||||
java.postfix.completion.type=Type {0} after the parenthesis to see the list of postfix completion suggestions.
|
||||
java.postfix.completion.complete=Select {0} from the list or type the same value in the editor. Press {1} to complete the statement.
|
||||
|
||||
java.smart.type.completion.lesson.name=Smart type completion
|
||||
java.smart.type.completion.apply=Smart Type Completion filters the list of suggestions to include only the types applicable \
|
||||
within the current context. Press {0} to see the list of matching suggestions. Choose the first one by pressing {1}.
|
||||
java.smart.type.completion.return=Smart Type Completion can also suggest code for a return statement. \
|
||||
|
||||
+2
-1
@@ -6,9 +6,10 @@ import training.dsl.LessonContext
|
||||
import training.dsl.LessonUtil.restoreIfModifiedOrMoved
|
||||
import training.dsl.TaskTestContext
|
||||
import training.dsl.parseLessonSample
|
||||
import training.learn.LessonsBundle
|
||||
import training.learn.course.KLesson
|
||||
|
||||
class JavaSmartTypeCompletionLesson : KLesson("Smart type completion", JavaLessonsBundle.message("java.smart.type.completion.lesson.name")) {
|
||||
class JavaSmartTypeCompletionLesson : KLesson("Smart type completion", LessonsBundle.message("smart.completion.lesson.name")) {
|
||||
|
||||
override val testScriptProperties = TaskTestContext.TestScriptProperties(skipTesting = true)
|
||||
|
||||
|
||||
@@ -138,6 +138,8 @@ completion.with.tab.begin.completion=Press {0} to show the completion suggestion
|
||||
completion.with.tab.finish.with.tab=Select {0} and press {1}. \
|
||||
This action does not simply inserts the selected suggestion but replaces the word at the caret completely.
|
||||
|
||||
smart.completion.lesson.name=Type-matching completion
|
||||
|
||||
postfix.completion.lesson.name=Postfix completion
|
||||
postfix.completion.intro=Postfix Completion helps you reduce backward caret jumps as you write code. \
|
||||
It lets you transform an already typed expression into another one based on the postfix you add, the type of expression, and its context.
|
||||
|
||||
@@ -58,7 +58,6 @@ python.f.string.completion.result.message=You may see that a simple Python strin
|
||||
python.postfix.completion.type=Type {0} after the parenthesis to see the list of suggestions.
|
||||
python.postfix.completion.complete=Select {0} from the list and press {1} to complete the statement.
|
||||
|
||||
python.smart.completion.lesson.name=Smart completion
|
||||
python.smart.completion.try.basic.completion=Try using Basic Completion by pressing {0}.
|
||||
python.smart.completion.use.smart.completion=Unfortunately, <ide/> has no direct information on the {0} type. \
|
||||
But sometimes, it can suggest completion by the context! Use {1} to invoke Smart Completion.
|
||||
|
||||
+4
-3
@@ -7,14 +7,15 @@ import training.dsl.LessonUtil
|
||||
import training.dsl.LessonUtil.checkExpectedStateOfEditor
|
||||
import training.dsl.TaskContext
|
||||
import training.dsl.parseLessonSample
|
||||
import training.learn.LessonsBundle
|
||||
import training.learn.course.KLesson
|
||||
|
||||
class PythonSmartCompletionLesson
|
||||
: KLesson("Smart completion", PythonLessonsBundle.message("python.smart.completion.lesson.name")) {
|
||||
: KLesson("Smart completion", LessonsBundle.message("smart.completion.lesson.name")) {
|
||||
private val sample = parseLessonSample("""
|
||||
def f(x, file):
|
||||
x.append(file)
|
||||
x.rem<caret>
|
||||
x.append(file)
|
||||
x.rem<caret>
|
||||
""".trimIndent())
|
||||
|
||||
override val lessonContent: LessonContext.() -> Unit
|
||||
|
||||
Reference in New Issue
Block a user