File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 55
55
"key" : " f8" ,
56
56
"when" : " editorTextFocus && editorLangId == 'powershell'"
57
57
}
58
+ ,
59
+ {
60
+ "command" : " PowerShell.OpenInISE" ,
61
+ "key" : " ctrl+shift+i" ,
62
+ "when" : " editorTextFocus && editorLangId == 'powershell'"
63
+ }
58
64
],
59
65
"commands" : [
60
66
{
71
77
"command" : " PowerShell.RunSelection" ,
72
78
"title" : " Run selection" ,
73
79
"category" : " PowerShell"
80
+ },
81
+ {
82
+ "command" : " PowerShell.OpenInISE" ,
83
+ "title" : " Open current file in PowerShell ISE" ,
84
+ "category" : " PowerShell"
74
85
}
75
86
],
76
87
"snippets" : [
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments