Skip to content

Commit 3839b2f

Browse files
Merge pull request #444 from jpogran/GH-439-remove-restart-session
(GH-439) Remove RestartSession Command
2 parents 40e2ee1 + d13f79d commit 3839b2f

File tree

6 files changed

+2
-26
lines changed

6 files changed

+2
-26
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,7 @@ If you are receiving an error right after opening a Puppet file saying that a Pu
361361

362362
If you haven't see the Problems Pane update in awhile, or hover and intellisense doesn't seem to showing up, and you might not know what to do. Sometimes the Puppet extension can experience problems which cause the language server to crash or not respond. The extension has a way of logging the crash, but there is something you can do to get right back to working: reload the Puppet Language Server.
363363

364-
You can reload the Puppet Lanuguage Server by opening the command palette and starting to type `Puppet`. A list of Puppet commands will appear, select `Puppet: Restart Current Session`. This will restart the Puppet Language Server without reloading VSCode or losing any work currently open in the editor.
365-
366-
![Reload Puppet Language Server](https://raw.githubusercontent.com/lingua-pupuli/puppet-vscode/master/docs/assets/reload_language_server.gif)
364+
You can reload the Puppet Lanuguage Server by opening the command palette and starting to type `Reload`. A list of commands will appear, select `Reload Window`. This will reload the Visual Studio Code window without closing down the enitre edtior, and without losing any work currently open in the editor.
367365

368366
## Reporting Problems
369367

-362 KB
Binary file not shown.

package.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
],
4040
"activationEvents": [
4141
"onLanguage:puppet",
42-
"onCommand:extension.puppetRestartSession",
4342
"onCommand:extension.puppetShowConnectionLogs",
4443
"onCommand:extension.puppetShowConnectionMenu",
4544
"onCommand:extension.puppetLint",
@@ -96,11 +95,6 @@
9695
}
9796
],
9897
"commands": [
99-
{
100-
"command": "extension.puppetRestartSession",
101-
"category": "Puppet",
102-
"title": "Restart Current Session"
103-
},
10498
{
10599
"command": "extension.puppetShowConnectionLogs",
106100
"category": "Puppet",
@@ -152,9 +146,6 @@
152146
],
153147
"menus": {
154148
"commandPalette": [
155-
{
156-
"command": "extension.puppetRestartSession"
157-
},
158149
{
159150
"command": "extension.puppetShowConnectionLogs"
160151
},

src/PuppetStatusBar.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,7 @@ export class PuppetStatusBar {
6666

6767
public static showConnectionMenu() {
6868
var menuItems: PuppetConnectionMenuItem[] = [];
69-
70-
menuItems.push(
71-
new PuppetConnectionMenuItem(
72-
"Restart Current Puppet Session",
73-
() => { vscode.commands.executeCommand(PuppetCommandStrings.PuppetRestartSessionCommandId); }),
74-
);
75-
69+
7670
menuItems.push(
7771
new PuppetConnectionMenuItem(
7872
"Show Puppet Session Logs",

src/extension.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@ export function activate(context: vscode.ExtensionContext) {
6767
new PDKFeature(extContext, logger),
6868
new PuppetResourceFeature(extContext, connectionHandler, logger)
6969
];
70-
71-
extContext.subscriptions.push(vscode.commands.registerCommand(PuppetCommandStrings.PuppetRestartSessionCommandId,
72-
() => {
73-
74-
}
75-
));
7670
}
7771

7872
export function deactivate() {

src/messages.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ export class PuppetCommandStrings {
6161
static PuppetResourceCommandId: string = 'extension.puppetResource';
6262
static PuppetShowConnectionMenuCommandId = 'extension.puppetShowConnectionMenu';
6363
static PuppetShowConnectionLogsCommandId = 'extension.puppetShowConnectionLogs';
64-
static PuppetRestartSessionCommandId = 'extension.puppetRestartSession';
6564
}
6665

6766
export class PDKCommandStrings {

0 commit comments

Comments
 (0)