Skip to content

Commit 2e9b339

Browse files
committed
Merge pull request #185 from PowerShell/release/0.6.1
Prepare 0.6.1 release
2 parents 834735c + 60386fe commit 2e9b339

File tree

3 files changed

+24
-11
lines changed

3 files changed

+24
-11
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# vscode-powershell Release History
22

3+
## 0.6.1
4+
### Monday, May 16, 2016
5+
6+
- Fixed #180: Profile loading should be enabled by default
7+
- Fixed #183: Language server sometimes fails to initialize preventing IntelliSense, etc from working
8+
- Fixed #182: Using 'Run Selection' on a line without a selection only runs to the cursor position
9+
- Fixed #184: When running a script in the debugger, $host.Version reports wrong extension version
10+
311
## 0.6.0
412
### Thursday, May 12, 2016
513

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "PowerShell",
33
"displayName": "PowerShell",
4-
"version": "0.6.0",
4+
"version": "0.6.1",
55
"publisher": "ms-vscode",
66
"description": "Develop PowerShell scripts in Visual Studio Code!",
77
"engines": {
@@ -129,7 +129,7 @@
129129
"/logLevel:Verbose",
130130
"/hostName:\"Visual Studio Code Host\"",
131131
"/hostProfileId:Microsoft.VSCode",
132-
"/hostVersion:0.5.0"
132+
"/hostVersion:0.6.1"
133133
],
134134
"configurationAttributes": {
135135
"launch": {
@@ -191,7 +191,7 @@
191191
"/logLevel:Verbose",
192192
"/hostName:\"Visual Studio Code Host\"",
193193
"/hostProfileId:Microsoft.VSCode",
194-
"/hostVersion:0.5.0"
194+
"/hostVersion:0.6.1"
195195
],
196196
"configurationAttributes": {
197197
"launch": {
@@ -242,7 +242,7 @@
242242
},
243243
"powershell.enableProfileLoading": {
244244
"type": "boolean",
245-
"default": false,
245+
"default": true,
246246
"description": "If true, causes user and system wide profiles (profile.ps1 and Microsoft.VSCode_profile.ps1) to be loaded into the PowerShell session. This affects IntelliSense and interactive script execution. The debugger is not affected by this setting."
247247
},
248248
"powershell.scriptAnalysis.enable": {

src/features/Console.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,20 @@ export function registerConsoleCommands(client: LanguageClient): void {
142142

143143
vscode.commands.registerCommand('PowerShell.RunSelection', () => {
144144
var editor = vscode.window.activeTextEditor;
145-
var start = editor.selection.start;
146-
var end = editor.selection.end;
147-
if (editor.selection.isEmpty) {
148-
start = new vscode.Position(start.line, 0)
145+
var selectionRange: vscode.Range = undefined;
146+
147+
if (!editor.selection.isEmpty) {
148+
selectionRange =
149+
new vscode.Range(
150+
editor.selection.start,
151+
editor.selection.end);
152+
}
153+
else {
154+
selectionRange = editor.document.lineAt(editor.selection.start.line).range;
149155
}
156+
150157
client.sendRequest(EvaluateRequest.type, {
151-
expression:
152-
editor.document.getText(
153-
new vscode.Range(start, end))
158+
expression: editor.document.getText(selectionRange)
154159
});
155160
});
156161

0 commit comments

Comments
 (0)