-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from wasikuss/feature/php-path-in-settings
Add option in settings to manually specify php path
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
{CompositeDisposable} = require 'atom' | ||
provider = require './provider' | ||
|
||
module.exports = | ||
activate: -> provider.loadCompletions() | ||
config: | ||
executablePath: | ||
type: 'string' | ||
title: 'PHP Executable Path' | ||
default: 'php' # Let OS's $PATH handle the rest | ||
|
||
activate: -> | ||
@subscriptions = new CompositeDisposable | ||
@subscriptions.add atom.config.observe 'autocomplete-php.executablePath', | ||
(executablePath) -> | ||
provider.executablePath = executablePath | ||
provider.loadCompletions() | ||
|
||
deactivate: -> | ||
@subscriptions.dispose() | ||
|
||
getProvider: -> provider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters