Skip to content

Commit 60467d6

Browse files
authored
Merge pull request #7 from doc-detective/rc
Remove refresh command
2 parents 8b5c23e + d488753 commit 60467d6

File tree

5 files changed

+2
-33
lines changed

5 files changed

+2
-33
lines changed

dist/extension.js

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/extension.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
],
1717
"activationEvents": [
1818
"onCommand:doc-detective-vsc.helloWorld",
19-
"onCommand:doc-detective-vsc.refresh",
2019
"onCommand:doc-detective-vsc.simpleView",
2120
"onView:docDetectiveView"
2221
],
@@ -27,11 +26,6 @@
2726
"command": "doc-detective.helloWorld",
2827
"title": "Hello World"
2928
},
30-
{
31-
"command": "doc-detective.refresh",
32-
"title": "Refresh Doc Detective Panel",
33-
"icon": "$(refresh)"
34-
},
3529
{
3630
"command": "doc-detective.simpleView",
3731
"title": "Use Simple View",
@@ -50,11 +44,6 @@
5044
},
5145
"menus": {
5246
"view/title": [
53-
{
54-
"command": "doc-detective.refresh",
55-
"when": "view == docDetectiveView",
56-
"group": "navigation"
57-
},
5847
{
5948
"command": "doc-detective.simpleView",
6049
"when": "view == docDetectiveView",

src/extension.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ class DocDetectiveWebviewViewProvider implements vscode.WebviewViewProvider {
180180
// Listen for messages from the webview (if needed)
181181
webviewView.webview.onDidReceiveMessage(async (message) => {
182182
log(`Received message from webview: ${JSON.stringify(message)}`);
183-
if (message.command === 'refresh') {
184-
await this.updateWebview();
185-
}
186183
});
187184

188185
log('Webview view resolved successfully');
@@ -845,13 +842,7 @@ export function activate(context: vscode.ExtensionContext) {
845842
})
846843
);
847844

848-
// Add a command to manually refresh the webview
849-
const refreshCommand = vscode.commands.registerCommand('doc-detective.refresh', () => {
850-
log('Manual refresh requested');
851-
provider.updateWebview();
852-
vscode.window.showInformationMessage('Doc Detective panel refreshed');
853-
});
854-
context.subscriptions.push(refreshCommand);
845+
855846
// Add a command to use simplified view
856847
const simpleViewCommand = vscode.commands.registerCommand('doc-detective.simpleView', async () => {
857848
log('Simple view requested');

src/test/extension.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ suite('Extension Test Suite', () => {
2323

2424
// Test for the extension's commands
2525
assert.ok(commands.includes('doc-detective.helloWorld'), 'helloWorld command should be registered');
26-
assert.ok(commands.includes('doc-detective.refresh'), 'refresh command should be registered');
2726
assert.ok(commands.includes('doc-detective.simpleView'), 'simpleView command should be registered');
2827
});
2928

0 commit comments

Comments
 (0)