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

Commit

Permalink
clean: remove open remote code lens related code
Browse files Browse the repository at this point in the history
  • Loading branch information
snutij committed Feb 2, 2024
1 parent ca4f02a commit 0f91161
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 32 deletions.
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

0 comments on commit 0f91161

Please sign in to comment.