Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Remove open remote code lens related code #1016

Merged
merged 1 commit into from
Feb 26, 2024
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ language status center right next to the language mode Ruby and select `Manage`

![Ruby LSP status center](extras/ruby_lsp_status_center.png)

It's also possible to configure with more granularity code lens and inlay hint features, see the [Ruby LSP server
It's also possible to configure with more granularity inlay hint features, see the [Ruby LSP server
documentation](https://shopify.github.io/ruby-lsp/RubyLsp/Requests.html).

#### Ruby version managers
Expand Down
15 changes: 1 addition & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
"default": true
},
"codeLens": {
"description": "Enable code lens, which generates clickable text to enrich editor experience (run tests, open Gem pages, ...)",
"description": "Enable code lens, which generates clickable text to enrich editor experience",
"type": "boolean",
"default": true
},
Expand Down Expand Up @@ -211,19 +211,6 @@
"description": "Turn on/off specific features from request",
"type": "object",
"properties": {
"codeLens": {
"description": "Customize code lens features",
"type": "object",
"properties": {
"enableAll": {
"type": "boolean"
},
"gemfileLinks": {
"description": "Enable codelens in the Gemfile to open the gem repository",
"type": "boolean"
}
}
},
"inlayHint": {
"description": "Customize inlay hint features",
"type": "object",
Expand Down
1 change: 0 additions & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export enum Command {
RunTest = "rubyLsp.runTest",
RunTestInTerminal = "rubyLsp.runTestInTerminal",
DebugTest = "rubyLsp.debugTest",
OpenLink = "rubyLsp.openLink",
ShowSyntaxTree = "rubyLsp.showSyntaxTree",
}

Expand Down
15 changes: 0 additions & 15 deletions src/rubyLsp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,21 +190,6 @@ export class RubyLsp {
const workspace = await this.showWorkspacePick();
await workspace?.stop();
}),
vscode.commands.registerCommand(
Command.OpenLink,
async (link: string) => {
vscode.env.openExternal(vscode.Uri.parse(link));

const workspace = this.currentActiveWorkspace();

if (workspace?.lspClient?.serverVersion) {
await this.telemetry.sendCodeLensEvent(
"link",
workspace.lspClient.serverVersion,
);
}
},
),
vscode.commands.registerCommand(
Command.ShowSyntaxTree,
this.showSyntaxTree.bind(this),
Expand Down
2 changes: 1 addition & 1 deletion src/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface ConfigurationEvent {
}

export interface CodeLensEvent {
type: "test" | "debug" | "test_in_terminal" | "link";
type: "test" | "debug" | "test_in_terminal";
lspVersion: string;
}

Expand Down