Skip to content

Minor tweaks and fixes #464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PowerShell Language Support for Visual Studio Code

[![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)
[![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)

This extension provides rich PowerShell language support for [Visual Studio Code](https://github.com/Microsoft/vscode).
Now you can write and debug PowerShell scripts using the excellent IDE-like interface
Expand Down
5 changes: 5 additions & 0 deletions examples/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Interactive Session"
},
{
"type": "PowerShell",
"request": "launch",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
{
"command": "PowerShell.ExpandAlias",
"key": "ctrl+alt+e",
"key": "shift+alt+e",
"when": "editorTextFocus && editorLangId == 'powershell'"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Disposable,
window} from "vscode";

export function setAnimatedStatusBarMessage(text: string, hideWhenDone: Thenable<any>): Disposable {
export function showAnimatedStatusBarMessage(text: string, hideWhenDone: Thenable<any>): Disposable {
let animatedStatusBarItem: AnimatedStatusBarItem = new AnimatedStatusBarItem(text);
animatedStatusBarItem.show(hideWhenDone);
return animatedStatusBarItem;
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions src/features/CodeActions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/

import vscode = require('vscode');
import { LanguageClient, RequestType, NotificationType } from 'vscode-languageclient';
import Window = vscode.window;
Expand Down
2 changes: 1 addition & 1 deletion src/features/Console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

export namespace EvaluateRequest {
Expand Down
4 changes: 2 additions & 2 deletions src/features/DocumentFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Window = vscode.window;
import { IFeature } from '../feature';
import * as Settings from '../settings';
import * as Utils from '../utils';
import * as AnimatedStatusBar from '../animatedStatusBar';
import * as AnimatedStatusBar from '../controls/animatedStatusBar';

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/features/SelectPSSARules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import vscode = require("vscode");
import { IFeature } from "../feature";
import { LanguageClient, RequestType } from "vscode-languageclient";
import { CheckboxQuickPickItem, showCheckboxQuickPick } from "../checkboxQuickPick";
import { CheckboxQuickPickItem, showCheckboxQuickPick } from "../controls/checkboxQuickPick";

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