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 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 {
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" : [
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