Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lsp): implement deno.suggest.completeFunctionCalls #20214

Merged
merged 4 commits into from Aug 26, 2023

Conversation

nayeemrmn
Copy link
Collaborator

@nayeemrmn nayeemrmn commented Aug 20, 2023

Fixes denoland/vscode_deno#743.

const items: string[] = ['foo', 'bar', 'baz'];

items.map
// ->
items.map(callbackfn) // auto-completes with argument placeholders.

We have our own setting for suggest.completeFunctionCalls, which must be enabled:

{
    "deno.suggest.completeFunctionCalls": true,
    // Re-implementation of:
    // "javascript.suggest.completeFunctionCalls": true,
    // "typescript.suggest.completeFunctionCalls": true,
}

But the actual implementation had been left as a TODO until now.

@bartlomieju
Copy link
Member

@nayeemrmn what do you mean by "But the actual implementation had been left as a TODO."?

@nayeemrmn
Copy link
Collaborator Author

what do you mean by "But the actual implementation had been left as a TODO."?

https://github.com/denoland/deno/pull/20214/files#diff-5425491838b4e06f099e33c0663a61d3b088c0c193a5a484a9b797c2f4ee099bL2479

@bartlomieju bartlomieju added this to the 1.37 milestone Aug 24, 2023
@bartlomieju bartlomieju merged commit 37292e7 into denoland:main Aug 26, 2023
13 checks passed
@nayeemrmn nayeemrmn deleted the complete-function-calls branch August 26, 2023 00:56
bartlomieju pushed a commit that referenced this pull request Aug 31, 2023
Fixes denoland/vscode_deno#743.
```ts
const items: string[] = ['foo', 'bar', 'baz'];

items.map
// ->
items.map(callbackfn) // auto-completes with argument placeholders.
```

---

We have our own setting for `suggest.completeFunctionCalls`, which must
be enabled:
```js
{
    "deno.suggest.completeFunctionCalls": true,
    // Re-implementation of:
    // "javascript.suggest.completeFunctionCalls": true,
    // "typescript.suggest.completeFunctionCalls": true,
}
```
But before this commit the actual implementation had been left as a TODO.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Initializing Deno breaks suggest.completeFunctionCalls
2 participants