1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-17 16:31:45 +02:00

Compare commits

...

10 Commits
0.40 ... 0.42

Author SHA1 Message Date
Andrey Vlasovskikh
ee3bec9eed Version 0.42 2015-11-01 02:23:09 +03:00
Andrey Vlasovskikh
24788ac86f Updated changelog 2015-10-30 16:11:16 +03:00
Andrey Vlasovskikh
9af3c732b5 Updated CI icons 2015-10-30 16:04:35 +03:00
Andrey Vlasovskikh
e5873fe5f9 Use HTTP by default 2015-10-30 15:41:55 +03:00
Andrey Vlasovskikh
39f088cdcd VIM-970 Use raw typed handlers in order not to require write action in read-only files
This change requires the API of IntelliJ platform branch 143+.
2015-10-30 15:37:17 +03:00
Andrey Vlasovskikh
e805852721 Platform prefix initialization is no longer needed 2015-10-30 15:20:36 +03:00
Andrey Vlasovskikh
e136ecc1f8 Added generated idea/ to excluded folders 2015-10-30 15:19:42 +03:00
Andrey Vlasovskikh
efa4001440 Require minimal platform version 143 2015-10-30 15:19:19 +03:00
Andrey Vlasovskikh
68c20ed48d Version 0.41 2015-06-10 15:42:02 +03:00
Andrey Vlasovskikh
c5760ceaab VIM-957 Fixed compatibility with IDEs other than IntelliJ 2015-06-10 15:41:33 +03:00
9 changed files with 42 additions and 26 deletions

View File

@@ -3,6 +3,23 @@ The Changelog
History of changes in IdeaVim for the IntelliJ platform. History of changes in IdeaVim for the IntelliJ platform.
0.42, 2015-11-01
----------------
This release is compatible with IntelliJ 15+ and other IDEs based on the
IntelliJ platform branch 143+.
* VIM-970 Fixed move commands in read-only files
0.41, 2015-06-10
----------------
A bugfix release.
* VIM-957 Fixed plugin version 0.40 is not compatible with IDEs other than
IntelliJ
0.40, 2015-06-09 0.40, 2015-06-09
---------------- ----------------

View File

@@ -2,15 +2,15 @@ IdeaVim
======= =======
<div> <div>
<a href="http://teamcity.jetbrains.com/viewType.html?buildTypeId=bt299&guest=1"> <a href="http://teamcity.jetbrains.com/viewType.html?buildTypeId=IdeaVim_Build&guest=1">
<img src="http://teamcity.jetbrains.com/app/rest/builds/buildType:(id:bt299)/statusIcon"/> <img src="http://teamcity.jetbrains.com/app/rest/builds/buildType:(id:IdeaVim_Build)/statusIcon"/>
</a> </a>
<span>Build<span> <span>Build<span>
</div> </div>
<div> <div>
<a href="http://teamcity.jetbrains.com/viewType.html?buildTypeId=bt453&guest=1"> <a href="http://teamcity.jetbrains.com/viewType.html?buildTypeId=IdeaVim_TestsForIntelliJ15&guest=1">
<img src="http://teamcity.jetbrains.com/app/rest/builds/buildType:(id:bt453)/statusIcon"/> <img src="http://teamcity.jetbrains.com/app/rest/builds/buildType:(id:IdeaVim_TestsForIntelliJ15)/statusIcon"/>
</a> </a>
<span>Tests</span> <span>Tests</span>
</div> </div>

View File

@@ -1,4 +1,4 @@
version-id:0.40 version-id:0.42
platform-version:135.0 platform-version:143.0
idea.download.url=http://download.jetbrains.com/idea/ideaIU-14.0.2.zip idea.download.url=http://download.jetbrains.com/idea/ideaIC-143.380.20.tar.gz
build.number=dev build.number=dev

View File

@@ -105,9 +105,9 @@
<delete dir="${idea}/unzip"/> <delete dir="${idea}/unzip"/>
<mkdir dir="${idea}/unzip"/> <mkdir dir="${idea}/unzip"/>
<basename property="idea.filename" file="${idea.download.url}"/> <basename property="idea.filename" file="${idea.download.url}"/>
<unzip dest="${idea}/unzip"> <untar src="${idea}/${idea.filename}" dest="${idea}/unzip" compression="gzip">
<fileset dir="${idea}" includes="${idea.filename}"/> <cutdirsmapper dirs="1"/>
</unzip> </untar>
</target> </target>
<target name="dist" depends="dist-src, dist-bin" description="Creates the src and bin distribution files"/> <target name="dist" depends="dist-src, dist-bin" description="Creates the src and bin distribution files"/>

View File

@@ -7,9 +7,9 @@
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/resources" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/resources" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/idea" />
</content> </content>
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>
</module> </module>

View File

@@ -2,6 +2,14 @@
<name>IdeaVim</name> <name>IdeaVim</name>
<id>IdeaVIM</id> <id>IdeaVIM</id>
<change-notes><![CDATA[ <change-notes><![CDATA[
<p>0.42:</p>
<ul>
<li>Fixed move commands in read-only files</li>
</ul>
<p>0.41:</p>
<ul>
<li>Various bug fixes</li>
</ul>
<p>0.40:</p> <p>0.40:</p>
<ul> <ul>
<li>Support for <code>mapleader</code></li> <li>Support for <code>mapleader</code></li>

View File

@@ -42,13 +42,13 @@ public class EventFacade {
public void setupTypedActionHandler(@NotNull TypedActionHandler handler) { public void setupTypedActionHandler(@NotNull TypedActionHandler handler) {
final TypedAction typedAction = getTypedAction(); final TypedAction typedAction = getTypedAction();
myOriginalTypedActionHandler = typedAction.getHandler(); myOriginalTypedActionHandler = typedAction.getRawHandler();
typedAction.setupHandler(handler); typedAction.setupRawHandler(handler);
} }
public void restoreTypedActionHandler() { public void restoreTypedActionHandler() {
if (myOriginalTypedActionHandler != null) { if (myOriginalTypedActionHandler != null) {
getTypedAction().setupHandler(myOriginalTypedActionHandler); getTypedAction().setupRawHandler(myOriginalTypedActionHandler);
} }
} }

View File

@@ -25,7 +25,7 @@ import com.intellij.openapi.util.Pair;
import com.intellij.psi.PsiComment; import com.intellij.psi.PsiComment;
import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile; import com.intellij.psi.PsiFile;
import com.intellij.psi.util.*; import com.intellij.psi.util.PsiTreeUtil;
import com.maddyhome.idea.vim.common.TextRange; import com.maddyhome.idea.vim.common.TextRange;
import com.maddyhome.idea.vim.option.ListOption; import com.maddyhome.idea.vim.option.ListOption;
import com.maddyhome.idea.vim.option.OptionChangeEvent; import com.maddyhome.idea.vim.option.OptionChangeEvent;
@@ -166,7 +166,7 @@ public class SearchHelper {
} }
private static int findMatchingBlockCommentPair(@NotNull PsiElement element, int pos) { private static int findMatchingBlockCommentPair(@NotNull PsiElement element, int pos) {
final Language language = PsiUtil.findLanguageFromElement(element); final Language language = element.getLanguage();
final Commenter commenter = LanguageCommenters.INSTANCE.forLanguage(language); final Commenter commenter = LanguageCommenters.INSTANCE.forLanguage(language);
final PsiComment comment = PsiTreeUtil.getParentOfType(element, PsiComment.class, false); final PsiComment comment = PsiTreeUtil.getParentOfType(element, PsiComment.class, false);
if (comment != null) { if (comment != null) {

View File

@@ -8,7 +8,6 @@ import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.fileTypes.PlainTextFileType; import com.intellij.openapi.fileTypes.PlainTextFileType;
import com.intellij.openapi.project.Project; import com.intellij.openapi.project.Project;
import com.intellij.testFramework.LightProjectDescriptor; import com.intellij.testFramework.LightProjectDescriptor;
import com.intellij.testFramework.PlatformTestCase;
import com.intellij.testFramework.UsefulTestCase; import com.intellij.testFramework.UsefulTestCase;
import com.intellij.testFramework.fixtures.CodeInsightTestFixture; import com.intellij.testFramework.fixtures.CodeInsightTestFixture;
import com.intellij.testFramework.fixtures.IdeaProjectTestFixture; import com.intellij.testFramework.fixtures.IdeaProjectTestFixture;
@@ -36,16 +35,8 @@ import java.util.List;
* @author vlan * @author vlan
*/ */
public abstract class VimTestCase extends UsefulTestCase { public abstract class VimTestCase extends UsefulTestCase {
private static final String ULTIMATE_MARKER_CLASS = "com.intellij.psi.css.CssFile";
protected CodeInsightTestFixture myFixture; protected CodeInsightTestFixture myFixture;
public VimTestCase() {
// Only in IntelliJ IDEA Ultimate Edition
PlatformTestCase.initPlatformLangPrefix();
// XXX: IntelliJ IDEA Community and Ultimate 12+
//PlatformTestCase.initPlatformPrefix(ULTIMATE_MARKER_CLASS, "PlatformLangXml");
}
@Override @Override
protected void setUp() throws Exception { protected void setUp() throws Exception {
super.setUp(); super.setUp();