Skip to content

Commit

Permalink
rename debugger to debug adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Dec 3, 2023
1 parent eb97680 commit 162783a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Open VSX Installs](https://img.shields.io/open-vsx/dt/elixir-lsp/elixir-ls?label=Open%20VSX%20Installs)](https://open-vsx.org/extension/elixir-lsp/elixir-ls)
[![Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://elixir-lang.slack.com/archives/C7D272G6N)

Provides Elixir language support and debugger. This extension is powered by the [Elixir Language Server (ElixirLS)](https://github.com/elixir-lsp/elixir-ls), an Elixir implementation of Microsoft's IDE-agnostic [Language Server Protocol](https://github.com/Microsoft/language-server-protocol) and [VS Code debug protocol](https://code.visualstudio.com/docs/extensionAPI/api-debugging). Visit its page for more information. For a guide to debugger usage in Elixir, read [this blog post](https://medium.com/@JakeBeckerCode/debugging-elixir-in-vs-code-400e21814614).
Provides Elixir language server and debug adapter. This extension is powered by the [Elixir Language Server (ElixirLS)](https://github.com/elixir-lsp/elixir-ls), an Elixir implementation of Microsoft's IDE-agnostic [Language Server Protocol](https://microsoft.github.io/language-server-protocol/) and [Debug Adapter Protocol](https://microsoft.github.io/debug-adapter-protocol/). Visit its page for more information. For a guide to debugger usage in Elixir, read [this blog post](https://medium.com/@JakeBeckerCode/debugging-elixir-in-vs-code-400e21814614).

Features include:

Expand Down Expand Up @@ -232,7 +232,7 @@ Alternatively, you can use the `test.sh`/`test.bat` script which does the above.

## Telemetry

This extension collects telemetry information emitted by ElixirLS language server and debugger for feature insight and performance and health monitoring. Collected telemetry data include usage, performance, environment info and error reports. Data is anonymised and not personally identifiable. Data is sent to Azure Application Insights via [@vscode/extension-telemetry](https://www.npmjs.com/package/@vscode/extension-telemetry). The extension respects VSCode `telemetry.telemetryLevel` setting. For transparency [telemetry.json](telemetry.json) details all collected information. If you would like inspect what is being collected or change your telemetry settings, please refer to [VSCode Telemetry documentation](https://code.visualstudio.com/docs/getstarted/telemetry).
This extension collects telemetry information emitted by ElixirLS language server and debug adapter for feature insight and performance and health monitoring. Collected telemetry data include usage, performance, environment info and error reports. Data is anonymised and not personally identifiable. Data is sent to Azure Application Insights via [@vscode/extension-telemetry](https://www.npmjs.com/package/@vscode/extension-telemetry). The extension respects VSCode `telemetry.telemetryLevel` setting. For transparency [telemetry.json](telemetry.json) details all collected information. If you would like inspect what is being collected or change your telemetry settings, please refer to [VSCode Telemetry documentation](https://code.visualstudio.com/docs/getstarted/telemetry).

## Acknowledgements and related projects

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@
"type": "mix_task",
"label": "Mix Task",
"windows": {
"program": "debugger.bat"
"program": "debug_adapter.bat"
},
"linux": {
"program": "debugger.sh"
"program": "debug_adapter.sh"
},
"osx": {
"program": "debugger.sh"
"program": "debug_adapter.sh"
},
"languages": [
"elixir"
Expand Down
4 changes: 2 additions & 2 deletions src/debugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class DebugAdapterExecutableFactory
);
const command = buildCommand(
this._context,
"debugger",
"debug_adapter",
session.workspaceFolder
);

Expand Down Expand Up @@ -269,7 +269,7 @@ class DebugAdapterTrackerFactory
export let trackerFactory: DebugAdapterTrackerFactory;

export function configureDebugger(context: vscode.ExtensionContext) {
// Use custom DebugAdapterExecutableFactory that launches the debugger with
// Use custom DebugAdapterExecutableFactory that launches the debug adapter with
// the current working directory set to the workspace root so asdf can load
// the correct environment properly.
const factory = new DebugAdapterExecutableFactory(context);
Expand Down
2 changes: 1 addition & 1 deletion src/executable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as path from "path";
const platformCommand = (command: Kind) =>
command + (os.platform() == "win32" ? ".bat" : ".sh");

export type Kind = "language_server" | "debugger";
export type Kind = "language_server" | "debug_adapter";
export function buildCommand(
context: vscode.ExtensionContext,
kind: Kind,
Expand Down
2 changes: 1 addition & 1 deletion src/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export function preprocessStacktrace(stack: string) {
const libraries = [
"elixir_sense",
"language_server",
"elixir_ls_debugger",
"debug_adapter",
"elixir_ls_utils",
"elixir",
"mix",
Expand Down

0 comments on commit 162783a

Please sign in to comment.