Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions dist/extension.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/extension.js.map

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
],
"activationEvents": [
"onCommand:doc-detective-vsc.helloWorld",
"onCommand:doc-detective-vsc.refresh",
"onCommand:doc-detective-vsc.simpleView",
"onView:docDetectiveView"
],
Expand All @@ -27,11 +26,6 @@
"command": "doc-detective.helloWorld",
"title": "Hello World"
},
{
"command": "doc-detective.refresh",
"title": "Refresh Doc Detective Panel",
"icon": "$(refresh)"
},
{
"command": "doc-detective.simpleView",
"title": "Use Simple View",
Expand All @@ -50,11 +44,6 @@
},
"menus": {
"view/title": [
{
"command": "doc-detective.refresh",
"when": "view == docDetectiveView",
"group": "navigation"
},
{
"command": "doc-detective.simpleView",
"when": "view == docDetectiveView",
Expand Down
11 changes: 1 addition & 10 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@ class DocDetectiveWebviewViewProvider implements vscode.WebviewViewProvider {
// Listen for messages from the webview (if needed)
webviewView.webview.onDidReceiveMessage(async (message) => {
log(`Received message from webview: ${JSON.stringify(message)}`);
if (message.command === 'refresh') {
await this.updateWebview();
}
});

log('Webview view resolved successfully');
Expand Down Expand Up @@ -845,13 +842,7 @@ export function activate(context: vscode.ExtensionContext) {
})
);

// Add a command to manually refresh the webview
const refreshCommand = vscode.commands.registerCommand('doc-detective.refresh', () => {
log('Manual refresh requested');
provider.updateWebview();
vscode.window.showInformationMessage('Doc Detective panel refreshed');
});
context.subscriptions.push(refreshCommand);

// Add a command to use simplified view
const simpleViewCommand = vscode.commands.registerCommand('doc-detective.simpleView', async () => {
log('Simple view requested');
Expand Down
1 change: 0 additions & 1 deletion src/test/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ suite('Extension Test Suite', () => {

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

Expand Down