Skip to content

Commit a8569b1

Browse files
authored
Merge pull request #464 from PowerShell/daviwil/minor-tweaks
Minor tweaks and fixes
2 parents 0197b50 + 7996953 commit a8569b1

File tree

9 files changed

+16
-7
lines changed

9 files changed

+16
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PowerShell Language Support for Visual Studio Code
22

3-
[![Join the chat at https://gitter.im/PowerShell/vscode-powershell](https://badges.gitter.im/PowerShell/vscode-powershell.svg)](https://gitter.im/PowerShell/vscode-powershell?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
3+
[![Build status](https://ci.appveyor.com/api/projects/status/x2g1u375ih4w1xcc/branch/develop?svg=true)](https://ci.appveyor.com/project/PowerShell/vscode-powershell/branch/develop) [![Join the chat at https://gitter.im/PowerShell/vscode-powershell](https://badges.gitter.im/PowerShell/vscode-powershell.svg)](https://gitter.im/PowerShell/vscode-powershell?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
44

55
This extension provides rich PowerShell language support for [Visual Studio Code](https://github.com/Microsoft/vscode).
66
Now you can write and debug PowerShell scripts using the excellent IDE-like interface

examples/.vscode/launch.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"version": "0.2.0",
33
"configurations": [
4+
{
5+
"type": "PowerShell",
6+
"request": "launch",
7+
"name": "PowerShell Interactive Session"
8+
},
49
{
510
"type": "PowerShell",
611
"request": "launch",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959
{
6060
"command": "PowerShell.ExpandAlias",
61-
"key": "ctrl+alt+e",
61+
"key": "shift+alt+e",
6262
"when": "editorTextFocus && editorLangId == 'powershell'"
6363
},
6464
{

src/animatedStatusBar.ts renamed to src/controls/animatedStatusBar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
Disposable,
99
window} from "vscode";
1010

11-
export function setAnimatedStatusBarMessage(text: string, hideWhenDone: Thenable<any>): Disposable {
11+
export function showAnimatedStatusBarMessage(text: string, hideWhenDone: Thenable<any>): Disposable {
1212
let animatedStatusBarItem: AnimatedStatusBarItem = new AnimatedStatusBarItem(text);
1313
animatedStatusBarItem.show(hideWhenDone);
1414
return animatedStatusBarItem;
File renamed without changes.

src/features/CodeActions.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*---------------------------------------------------------
2+
* Copyright (C) Microsoft Corporation. All rights reserved.
3+
*--------------------------------------------------------*/
4+
15
import vscode = require('vscode');
26
import { LanguageClient, RequestType, NotificationType } from 'vscode-languageclient';
37
import Window = vscode.window;

src/features/Console.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import vscode = require('vscode');
66
import { IFeature } from '../feature';
7-
import { showCheckboxQuickPick, CheckboxQuickPickItem } from '../checkboxQuickPick'
7+
import { showCheckboxQuickPick, CheckboxQuickPickItem } from '../controls/checkboxQuickPick'
88
import { LanguageClient, RequestType, NotificationType } from 'vscode-languageclient';
99

1010
export namespace EvaluateRequest {

src/features/DocumentFormatter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Window = vscode.window;
1818
import { IFeature } from '../feature';
1919
import * as Settings from '../settings';
2020
import * as Utils from '../utils';
21-
import * as AnimatedStatusBar from '../animatedStatusBar';
21+
import * as AnimatedStatusBar from '../controls/animatedStatusBar';
2222

2323
export namespace ScriptFileMarkersRequest {
2424
export const type: RequestType<any, any, void> = { get method(): string { return "powerShell/getScriptFileMarkers"; } };
@@ -113,7 +113,7 @@ class PSDocumentFormattingEditProvider implements DocumentFormattingEditProvider
113113
token: CancellationToken): TextEdit[] | Thenable<TextEdit[]> {
114114

115115
let textEdits: Thenable<TextEdit[]> = this.executeRulesInOrder(document, range, options, 0);
116-
AnimatedStatusBar.setAnimatedStatusBarMessage("formatting", textEdits);
116+
AnimatedStatusBar.showAnimatedStatusBarMessage("Formatting PowerShell document", textEdits);
117117
return textEdits;
118118
}
119119

src/features/SelectPSSARules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import vscode = require("vscode");
66
import { IFeature } from "../feature";
77
import { LanguageClient, RequestType } from "vscode-languageclient";
8-
import { CheckboxQuickPickItem, showCheckboxQuickPick } from "../checkboxQuickPick";
8+
import { CheckboxQuickPickItem, showCheckboxQuickPick } from "../controls/checkboxQuickPick";
99

1010
export namespace GetPSSARulesRequest {
1111
export const type: RequestType<any, any, void> = { get method(): string { return "powerShell/getPSSARules"; } };

0 commit comments

Comments
 (0)