Skip to content

Commit 2173124

Browse files
committed
Started working on OpenInISE
1 parent 607b628 commit 2173124

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@
5555
"key": "f8",
5656
"when": "editorTextFocus && editorLangId == 'powershell'"
5757
}
58+
,
59+
{
60+
"command": "PowerShell.OpenInISE",
61+
"key": "ctrl+shift+i",
62+
"when": "editorTextFocus && editorLangId == 'powershell'"
63+
}
5864
],
5965
"commands": [
6066
{
@@ -71,6 +77,11 @@
7177
"command": "PowerShell.RunSelection",
7278
"title": "Run selection",
7379
"category": "PowerShell"
80+
},
81+
{
82+
"command": "PowerShell.OpenInISE",
83+
"title": "Open current file in PowerShell ISE",
84+
"category": "PowerShell"
7485
}
7586
],
7687
"snippets": [

src/features/OpenInISE.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import vscode = require('vscode');
2+
import { LanguageClient } from 'vscode-languageclient';
3+
import { RequestType, NotificationType, ResponseError } from 'vscode-jsonrpc';
4+
import Window = vscode.window;
5+
6+
7+
export function registerOpenInISECommand(client: LanguageClient): void {
8+
var disposable = vscode.commands.registerCommand('PowerShell.OpenInISE', () => {
9+
10+
var editor = Window.activeTextEditor;
11+
var document = editor.document;
12+
13+
});
14+
}

0 commit comments

Comments
 (0)