Skip to content

Commit

Permalink
Merge pull request #10 from RonildoSouza/master
Browse files Browse the repository at this point in the history
Added AutoIt Configuration in Visual Studio Code Preferences.
  • Loading branch information
loganch authored May 4, 2017
2 parents 224bd84 + c423c06 commit 578109e
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 8 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ and developed from Damien122's release.
* Launch, compile and build scripts from VSCode
* Launch AutoIt Help for highlighted text

## Configuration

* Access the command palette (Ctrl + Shift + P), type Preferences: Open User Settings or Preferences: Open Workspace Settings.
<img src="https://github.com/loganch/AutoIt-VSCode/blob/master/img/docs/CtrlShiftP.png" />

* Configure the paths according to your AutoIt installation.
<img src="https://github.com/loganch/AutoIt-VSCode/blob/master/img/docs/AutoItConfiguration.png" />

### Note
Advanced functions on the full install of [SciTE4AutoIt3](https://www.autoitscript.com/site/autoit-script-editor/downloads/) alongside AutoIt.

Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# AutoIt-VSCode Changelog

## 0.1.3
* Added AutoIt Configuration in Visual Studio Code Preferences.

## 0.1.2
The IntelliSense release!
* Hovers have been added for all UDFs
Expand Down
Binary file added img/docs/AutoItConfiguration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/CtrlShiftP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions out/src/ai_commands.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
var { window, Position } = require('vscode');
var { window, Position, workspace } = require('vscode');
var launch = require('child_process').execFile;
const spawn = require('child_process').spawn;
var path = require('path');
var configuration = workspace.getConfiguration('autoit');

// Executable paths
const aiPath = "C:\\Program Files (x86)\\AutoIt3\\AutoIt3.exe";
const wrapperPath = "C:\\Program Files (x86)\\AutoIt3\\SciTE\\AutoIt3Wrapper\\AutoIt3Wrapper.au3";
const tidyPath = "C:\\Program Files (x86)\\AutoIt3\\SciTE\\Tidy\\Tidy.exe";
const checkPath = "C:\\Program Files (x86)\\AutoIt3\\AU3Check.exe";
var helpPath = "C:\\Program Files (x86)\\AutoIt3\\AutoIt3Help.exe";
const aiPath = configuration.aiPath;
const wrapperPath = configuration.wrapperPath;
const tidyPath = configuration.tidyPath;
const checkPath = configuration.checkPath;
const helpPath = configuration.helpPath;

var aiOut = window.createOutputChannel('AutoIt');

Expand Down
35 changes: 33 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "AutoIt",
"description": "AutoIt language extension for Visual Studio Code",
"icon": "img/ai_icon.png",
"version": "0.1.2",
"version": "0.1.3",
"publisher": "Damien",
"galleryBanner": {
"color": "#254768",
Expand Down Expand Up @@ -105,6 +105,37 @@
"command": "extension.debugConsole",
"key": "alt+d",
"when": "editorTextFocus"
}]
}],
"configuration": {
"type": "object",
"title": "AutoIt Configuration",
"properties": {
"autoit.aiPath": {
"type": "string",
"default": "C:\\Program Files (x86)\\AutoIt3\\AutoIt3.exe",
"description": "Path AutoIt3.exe"
},
"autoit.wrapperPath": {
"type": "string",
"default": "C:\\Program Files (x86)\\AutoIt3\\SciTE\\AutoIt3Wrapper\\AutoIt3Wrapper.au3",
"description": "Path AutoIt3Wrapper.au3"
},
"autoit.tidyPath": {
"type": "string",
"default": "C:\\Program Files (x86)\\AutoIt3\\SciTE\\Tidy\\Tidy.exe",
"description": "Path Tidy.exe"
},
"autoit.checkPath": {
"type": "string",
"default": "C:\\Program Files (x86)\\AutoIt3\\AU3Check.exe",
"description": "Path AU3Check.exe"
},
"autoit.helpPath": {
"type": "string",
"default": "C:\\Program Files (x86)\\AutoIt3\\AutoIt3Help.exe",
"description": "Path AutoIt3Help.exe"
}
}
}
}
}

0 comments on commit 578109e

Please sign in to comment.