PY-16415: Give user ability to use native runner for certain commands

* Settings moved to registry, extension method added
This commit is contained in:
Ilya.Kazakevich
2016-12-08 02:02:24 +03:00
parent c250fea850
commit 2e02c79ed8
3 changed files with 51 additions and 0 deletions
@@ -479,6 +479,11 @@ introduce.variable.prefer.statements=false
introduce.variable.prefer.statements.description=If true, select line at caret if there is no selection on introduce; \
when false expressions chooser would be shown
# Comma separated list of commands to skip from manage.py
python.django.commandsToSkip=
# Comma separated list of commands to use native runner instead of PyCharm specific
python.django.commandsToUseNativeRunner=
show.method.base.class.in.java.file.structure=true
vcs.log.empty.change.list.creation=false
@@ -0,0 +1,24 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.jetbrains.extenstions
import com.intellij.openapi.util.registry.RegistryValue
/**
* @return list of values in case they are comma separated
*/
fun RegistryValue.asList() = this.asString().split(",")
@@ -0,0 +1,22 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Extension methods for various classes.
* Methods are transparent for Kotlin, while in Java you must use following pattern: class MyClass has extensions in MyClassExtKt.
* @author Ilya.Kazakevich
*/
package com.jetbrains.extenstions;