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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "surrealql",
"displayName": "SurrealQL",
"description": "Language support for SurrealQL — syntax highlighting, language server, run-query code lens, and snippets",
"version": "0.4.0",
"version": "0.4.1",
"publisher": "surrealdb",
"icon": "./icon.png",
"author": {
Expand Down
20 changes: 16 additions & 4 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,22 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
vscode.window.setStatusBarMessage("SurrealQL: language server restarted", 2000);
}),
vscode.commands.registerCommand(OPEN_SETTINGS_COMMAND, () => {
vscode.commands.executeCommand(
"workbench.action.openSettings",
`@ext:${statusBar.extensionId}`,
);
// Cursor 1.105.x crashes its renderer whenever
// `workbench.action.openSettings` is invoked from an extension host
// (the host gets terminated regardless of the query argument). Cursor
// exposes its own `cursor.openVSCodeSettingsFromMenu` command, used
// by its own menus, which opens the VS Code-style settings GUI
// safely. Route through it on Cursor; keep the standard command with
// the `@ext:` filter on VS Code so the existing behaviour is
// preserved there.
if (vscode.env.appName === "Cursor") {
vscode.commands.executeCommand("cursor.openVSCodeSettingsFromMenu");
} else {
vscode.commands.executeCommand(
"workbench.action.openSettings",
`@ext:${statusBar.extensionId}`,
);
}
}),
vscode.commands.registerCommand("surrealql.clearResults", () => resultsProvider.clear()),
vscode.workspace.onDidChangeConfiguration(async (e) => {
Expand Down
Loading