Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
New PlatformIO IDE Terminal API Provider; Load terminal after Atom sh…
Browse files Browse the repository at this point in the history
…ell-environment is loaded
  • Loading branch information
ivankravets committed Mar 14, 2017
1 parent f43b96d commit ceaf806
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## 2.4.x - PlatformIO
## 2.5.0 - PlatformIO

* New PlatformIO IDE Terminal API Provider
* Load terminal after Atom shell-environment is loaded
* Fix status bar alignment problem on native-ui theme

## 2.4.0 - PlatformIO
Expand Down
9 changes: 9 additions & 0 deletions lib/platformio-ide-terminal.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ module.exports =
@statusBarTile?.destroy()
@statusBarTile = null

providePlatformIOIDETerminal: ->
updateProcessEnv: (variables) ->
for name, value of variables
process.env[name] = value
run: (commands) =>
@statusBarTile.runCommandInNewTerminal commands
getTerminalViews: () =>
@statusBarTile.terminalViews

provideRunInTerminal: ->
run: (commands) =>
@statusBarTile.runCommandInNewTerminal commands
Expand Down
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,17 @@
"repository": "https://github.com/platformio/platformio-atom-ide-terminal",
"license": "MIT",
"engines": {
"atom": ">=1.2.0"
"atom": ">=1.12.2 <2.0.0"
},
"dependencies": {
"atom-space-pen-views": "^2.1.0",
"pty.js": "https://github.com/platformio/pty.js/tarball/prebuilt",
"term.js": "https://github.com/jeremyramin/term.js/tarball/master",
"underscore": "^1.8.3"
},
"activationHooks": [
"core:loaded-shell-environment"
],
"consumedServices": {
"status-bar": {
"versions": {
Expand All @@ -50,8 +53,14 @@
}
},
"providedServices": {
"platformioIDETerminal": {
"description": "PlatformIO IDE Terminal API",
"versions": {
"1.0.0": "providePlatformIOIDETerminal"
}
},
"runInTerminal": {
"description": "Allow to run commands in terminal.",
"description": "Deprecated API for PlatformIO IDE 1.0",
"versions": {
"0.14.5": "provideRunInTerminal"
}
Expand Down

0 comments on commit ceaf806

Please sign in to comment.