diff --git a/README.md b/README.md index aad3181b..e3bf66c4 100644 --- a/README.md +++ b/README.md @@ -204,6 +204,8 @@ extension has the following configuration options: hints where the variable name matches the implicit type. - `deno.internalDebug`: If enabled the Deno Language Server will log additional internal diagnostic information. +- `deno.internalInspect`: Enables the inspector server for the JS runtime used + by the Deno Language Server to host its TS server. - `deno.lint`: Controls if linting information will be provided by the Deno Language Server. _boolean, default `true`_ - `deno.maxTsServerMemory`: Maximum amount of memory the TypeScript isolate can diff --git a/client/src/extension.ts b/client/src/extension.ts index d2f45632..38ce386a 100644 --- a/client/src/extension.ts +++ b/client/src/extension.ts @@ -57,6 +57,7 @@ const workspaceSettingsKeys: Array = [ "importMap", "inlayHints", "internalDebug", + "internalInspect", "lint", "logFile", "path", @@ -178,6 +179,7 @@ function handleConfigurationChange(event: vscode.ConfigurationChangeEvent) { event.affectsConfiguration("deno.enable") || event.affectsConfiguration("deno.disablePaths") || event.affectsConfiguration("deno.enablePaths") || + event.affectsConfiguration("deno.internalInspect") || event.affectsConfiguration("deno.logFile") || event.affectsConfiguration("deno.path") || event.affectsConfiguration("deno.maxTsServerMemory") diff --git a/client/src/shared_types.d.ts b/client/src/shared_types.d.ts index 91e6d2e2..f72d427a 100644 --- a/client/src/shared_types.d.ts +++ b/client/src/shared_types.d.ts @@ -102,6 +102,7 @@ export interface Settings { /** A flag that enables additional internal debug information to be printed * to the _Deno Language Server_ output. */ internalDebug: boolean; + internalInspect: boolean | string; /** Determine if the extension should be providing linting diagnostics. */ lint: boolean; logFile: boolean; diff --git a/package.json b/package.json index efa1c1a6..86853a2d 100644 --- a/package.json +++ b/package.json @@ -495,6 +495,17 @@ false ] }, + "deno.internalInspect": { + "type": ["boolean", "string"], + "default": false, + "markdownDescription": "Enables the inspector server for the JS runtime used by the Deno Language Server to host its TS server. Optionally provide an address for the inspector listener e.g. \"127.0.0.1:9222\" (default).", + "scope": "window", + "examples": [ + true, + false, + "127.0.0.1:9222" + ] + }, "deno.logFile": { "type": "boolean", "default": false, diff --git a/typescript-deno-plugin/src/index.ts b/typescript-deno-plugin/src/index.ts index 8dd20a86..29d77f88 100644 --- a/typescript-deno-plugin/src/index.ts +++ b/typescript-deno-plugin/src/index.ts @@ -44,6 +44,7 @@ const defaultSettings: Settings = { importMap: null, inlayHints: null, internalDebug: false, + internalInspect: false, lint: false, logFile: false, path: null,