Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ilyailya
Copy link
Contributor

Change bumps the vscode-languageclient package. It also required to bump couple of related packages including typescript

Motivation

Previous version of the language client didn't support the codeAction/resolve request. Here is client capabilities from previous version:

{
  "codeAction": {
    "dynamicRegistration": true,
    "isPreferredSupport": true,
    "codeActionLiteralSupport": {
      "codeActionKind": {
        "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ]
      }
    }
  }
}

and in the new version

{
  "codeAction": {
    "dynamicRegistration": true,
    "isPreferredSupport": true,
    "disabledSupport": true,
    "dataSupport": true,
    "resolveSupport": { // I was looking for this property
      "properties": [
        "edit"
      ]
    },
    "codeActionLiteralSupport": {
      "codeActionKind": {
        "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ]
      }
    },
    "honorsChangeAnnotations": false
  }
}

Test plan

See included automated tests.

@ilyailya ilyailya requested a review from a team as a code owner March 29, 2022 22:41
@ilyailya ilyailya requested review from jez and removed request for a team March 29, 2022 22:41
For some reason no-shadow rule does not work with typescript enums
"author": "Stripe Inc.",
"license": "Apache-2.0",
"version": "0.3.12",
"version": "0.3.11",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this going down?

Comment on lines 331 to 335
},
"eslintConfig": {
"rules": {
"no-shadow": "off"
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this into our eslint YAML config file?

Copy link
Collaborator

@jez jez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small requests.

@ilyailya ilyailya requested a review from jez March 30, 2022 14:14
@ilyailya ilyailya merged commit bf46fd9 into master Mar 30, 2022
@ilyailya ilyailya deleted the iz/bump-vscode-launguageclient branch March 30, 2022 15:31
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.

3 participants