File tree 2 files changed +12
-1
lines changed 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 68
68
"command" : " PowerShell.PowerShellFindModule" ,
69
69
"key" : " ctrl+K ctrl+f" ,
70
70
"when" : " editorTextFocus && editorLangId == 'powershell'"
71
+ },
72
+ {
73
+ "command" : " PowerShell.PowerShellPasteAsClass" ,
74
+ "key" : " ctrl+K ctrl+p" ,
75
+ "when" : " editorTextFocus && editorLangId == 'powershell'"
71
76
}
72
-
73
77
],
74
78
"commands" : [
75
79
{
96
100
"command" : " PowerShell.PowerShellFindModule" ,
97
101
"title" : " Find/Install PowerShell modules from the gallery" ,
98
102
"category" : " PowerShell"
103
+ },
104
+ {
105
+ "command" : " PowerShell.PowerShellPasteAsClass" ,
106
+ "title" : " Pasted from clipboard as PowerShell class" ,
107
+ "category" : " PowerShell"
99
108
}
100
109
],
101
110
"snippets" : [
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { registerShowHelpCommand } from './features/ShowOnlineHelp';
14
14
import { registerOpenInISECommand } from './features/OpenInISE' ;
15
15
import { registerPowerShellFindModuleCommand } from './features/PowerShellFindModule' ;
16
16
import { registerConsoleCommands } from './features/Console' ;
17
+ import { registerPowerShellPasteAsClass } from './features/PowerShellPasteAsClass' ;
17
18
18
19
var languageServerClient : LanguageClient = undefined ;
19
20
@@ -103,6 +104,7 @@ export function activate(context: vscode.ExtensionContext): void {
103
104
registerConsoleCommands ( languageServerClient ) ;
104
105
registerOpenInISECommand ( ) ;
105
106
registerPowerShellFindModuleCommand ( languageServerClient ) ;
107
+ registerPowerShellPasteAsClass ( languageServerClient ) ;
106
108
}
107
109
108
110
export function deactivate ( ) : void {
You can’t perform that action at this time.
0 commit comments