deno icon indicating copy to clipboard operation
deno copied to clipboard

Deno LSP ignoring completeFunctionCalls setting

Open SampaioLeal opened this issue 4 months ago • 4 comments

It appears that the Deno Language Server Protocol (LSP) is not respecting the typescript.suggest.completeFunctionCalls and javascript.suggest.completeFunctionCalls settings in the .vscode/settings.json file. Despite setting these options to false, the imports are always being completed with the full function call, which is not the desired behavior.

Steps to Reproduce

  1. Open a Deno project in Visual Studio Code.
  2. Set the following options in the .vscode/settings.json file:
{
  "deno.enable": true,
  "deno.lint": true,
  "editor.formatOnSave": true,
  "deno.codeLens.references": false,
  "deno.codeLens.implementations": false,
  "editor.defaultFormatter": "denoland.vscode-deno",
  "javascript.suggest.completeFunctionCalls": false,
  "typescript.suggest.completeFunctionCalls": false,
  "editor.indentSize": 2,
  "editor.insertSpaces": true,
  "editor.detectIndentation": false,
  "[typescript]": {
    "editor.defaultFormatter": "denoland.vscode-deno"
  },
  "[html]": {
    "editor.defaultFormatter": "denoland.vscode-deno"
  }
}

  1. Attempt to import a function from a module. image image image image

Expected Behavior

The import should be added without the full function call, respecting the settings specified in the .vscode/settings.json file.

Actual Behavior

The import is always completed with the full function call, ignoring the typescript.suggest.completeFunctionCalls and javascript.suggest.completeFunctionCalls settings.

Environment

Deno: 2.0.2

SampaioLeal avatar Oct 21 '24 15:10 SampaioLeal