You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/services/phpmd-service.ts
+58-5Lines changed: 58 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,17 @@ export class PhpmdService {
139
139
140
140
// Check if it's a DDEV project
141
141
if(!DdevUtils.isDdevProject(document)){
142
-
vscode.window.showErrorMessage('This workspace is not a DDEV project. Please make sure: 1. You are in a DDEV project directory, 2. The .ddev/config.yaml file exists, 3. DDEV is running (use "ddev start")');
142
+
vscode.window.showErrorMessage(
143
+
'DDEV environment not detected',
144
+
{
145
+
modal: false,
146
+
detail: 'This extension requires a running DDEV environment. Please make sure:\n\n'+
147
+
'1. You are in a DDEV project directory\n'+
148
+
'2. The .ddev/config.yaml file exists\n'+
149
+
'3. DDEV is running (use "ddev start" in terminal)\n\n'+
150
+
'If DDEV is already running, try restarting it with "ddev restart".'
151
+
}
152
+
);
143
153
return;
144
154
}
145
155
@@ -161,9 +171,26 @@ export class PhpmdService {
161
171
162
172
// Process output
163
173
this.processPhpmdOutput(output,document);
164
-
}catch(error){
174
+
}catch(error: any){
165
175
console.error('Error running PHPMD:',error);
166
-
vscode.window.showErrorMessage('Error running PHPMD. Make sure PHPMD is installed in your DDEV container.');
0 commit comments