File tree Expand file tree Collapse file tree 5 files changed +26
-0
lines changed
kotlin/io/runescript/plugin/ide/spellchecker Expand file tree Collapse file tree 5 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1
1
# intellij-runescript Changelog
2
2
3
3
## [ Unreleased]
4
+ ### Added
5
+ - Support for basic spell checking and custom dictionary.
4
6
5
7
## [ 1.1.0] - 2023-08-11
6
8
Original file line number Diff line number Diff line change
1
+ package io.runescript.plugin.ide.spellchecker
2
+
3
+ import com.intellij.spellchecker.BundledDictionaryProvider
4
+
5
+ class RsBundledDictionaryProvider : BundledDictionaryProvider {
6
+ override fun getBundledDictionaries () = arrayOf(" runescript.dic" )
7
+ }
Original file line number Diff line number Diff line change
1
+ package io.runescript.plugin.ide.spellchecker
2
+
3
+ import com.intellij.psi.PsiElement
4
+ import com.intellij.spellchecker.tokenizer.SpellcheckingStrategy
5
+ import io.runescript.plugin.lang.RuneScript
6
+
7
+ class RsSpellcheckingStrategy : SpellcheckingStrategy () {
8
+
9
+ override fun isMyContext (element : PsiElement ) = RuneScript .`is `(element.language)
10
+ }
Original file line number Diff line number Diff line change 64
64
<codeInsight .parameterInfo language =" RuneScript" implementationClass =" io.runescript.plugin.ide.codeInsight.RsGosubParameterInfoProvider" />
65
65
<documentationProvider implementation =" io.runescript.plugin.ide.doc.RsDocumentationProvider" />
66
66
67
+ <!-- Spell Checking -->
68
+ <spellchecker .support language =" RuneScript" implementationClass =" io.runescript.plugin.ide.spellchecker.RsSpellcheckingStrategy" />
69
+ <spellchecker .bundledDictionaryProvider implementation =" io.runescript.plugin.ide.spellchecker.RsBundledDictionaryProvider" />
70
+
67
71
<intentionAction >
68
72
<language >RuneScript</language >
69
73
<className >io.runescript.plugin.ide.codeInsight.intention.RsNumberConversionIntention</className >
Original file line number Diff line number Diff line change
1
+ runescript
2
+ clientscript
3
+ proc
You can’t perform that action at this time.
0 commit comments