-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#953: Extend macro list #2232
#953: Extend macro list #2232
Conversation
IMHO |
We can resolve this information on the client and also this is the only one way to do this at the moment. |
Later, when we'll have mechanism to resolve it on server side, we'll move it. Maybe. |
I don't see why it is the only one way as you're bringing new code to handle it, this code could be added on server instead of client |
+1 |
@vparfonov yes but on this issue it's more how to bring custom resolver by prompting the user |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/213/ |
@vparfonov @vzhukovskii |
|
||
import static org.mockito.Mockito.when; | ||
|
||
public class AbstractExplorerMacroProviderTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
javadoc with author is needed here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@tolusha at this moment - no. But we can do the same as for key binding has done. Dedicate window with table of registered bindings. For example. |
|
||
import static org.mockito.Mockito.when; | ||
|
||
public abstract class AbstractEditorMacroProviderTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
javadoc with author is needed here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
+1 but can't understand what does it mean - macro provider |
Provider for macros |
@vzhukovskii Could you pls create the issue, otherwise we will forget it ^) |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/215/ |
* @since 4.7.0 | ||
*/ | ||
@Beta | ||
public abstract class AbstractExplorerMacroProvider implements CommandPropertyValueProvider { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure we are rely need this abstraction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
not sure about Abstract*Provider's but other ok, need ok from @benoitf |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/218/ |
@vparfonov @vzhukovskii - question for you. Is there any way we could add one more macro. It would be For example:
If this is something that requires server-side behavior, then I understand - let's add it into the issue tracking the movement of macros into the server. |
@TylerJewell it requires server side modification. I think, it would be better to do this with the issue tracking the movement of macros into the server. |
It includes: ${editor.current.file.name} -- Currently selected file in editor with context ${editor.current.file.path} -- Absolute path to the selected file in editor with context ${editor.current.file.relpath} -- Path relative to the /projects folder in editor with context ${editor.current.project.name} -- Project name of the file currently selected in editor with context ${editor.current.project.type} -- Project type of the file currently selected in editor with context ${explorer.current.file.name} -- Currently selected file in project tree ${explorer.current.file.path} -- Absolute path to the selected file in project tree ${explorer.current.file.relpath} -- Path relative to the /projects folder in project tree ${explorer.current.project.name} -- Project name of the file currently selected in explorer ${explorer.current.project.type} -- Project type of the file currently selected in explorer ${server.<name>} -- Returns protocol, hostname and port of an internal server ${server.<name>.protocol} -- Returns protocol of a server registered by name ${server.<name>.hostname} -- Returns hostname of a server registered by name ${server.<name>.port} -- Returns port of a server registered by name ${workspace.name} -- Returns the name of the workspace
@TylerJewell Custom properties will help bring in useful information about the host. Helpful for docker commands run in the host if it is possible. |
eclipse-che#953: Extend macro list
Are those macros working?
|
Hi @m1L31s! At this moment only |
This PR extends existed list of macros, by adding new ones.
Related issue: #953
Created new macros to provide various information from basic part.
It includes:
@vparfonov @ashumilova @azatsarynnyy review it, please.