Skip to content

Commit 31a26e1

Browse files
committed
Improved error message
1 parent 2787704 commit 31a26e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ async function createLanguageClientStandard(context: vscode.ExtensionContext, pl
207207
return null;
208208
}
209209
if (!isValidVersion(version)) {
210-
vscode.window.showWarningMessage(`${version} is not compatible with this extension. Server may crash or behave weirdly.`);
210+
vscode.window.showWarningMessage(`${version} is not compatible with this extension (Expecting shader-language-server v${vscode.extensions.getExtension('antaalt.shader-validator')!.packageJSON.server_version}). Server may crash or behave weirdly.`);
211211
}
212212
// Current working directory need to be set to executable for finding DLL.
213213
// But it would be better to have it pointing to workspace.
@@ -275,7 +275,7 @@ async function createLanguageClientWASI(context: vscode.ExtensionContext) : Prom
275275
return null;
276276
}
277277
if (!isValidVersion(version)) {
278-
vscode.window.showWarningMessage(`${version} is not compatible with extension. Server may crash or behave weirdly.`);
278+
vscode.window.showWarningMessage(`${version} is not compatible with extension (Expecting shader-language-server v${vscode.extensions.getExtension('antaalt.shader-validator')!.packageJSON.server_version}). Server may crash or behave weirdly.`);
279279
}
280280
const serverOptions: ServerOptions = async () => {
281281
// Create virtual file systems to access workspaces from wasi app

0 commit comments

Comments
 (0)