Skip to content

refactor: add func and tests for getNlsConfiguration #3640

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

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Jun 18, 2021

This PR refactors a couple lines inside src/browser/pages/vscode.ts so that it's easier to maintain and test.

Changes

  • add function getNlsConfiguration
  • add tests

Checklist

  • updated CHANGELOG.md

Fixes: N/A

@jsjoeio jsjoeio added this to the 3.11.0 milestone Jun 18, 2021
@jsjoeio jsjoeio added the testing Anything related to testing label Jun 18, 2021
@jsjoeio jsjoeio self-assigned this Jun 18, 2021
@codecov
Copy link

codecov bot commented Jun 18, 2021

Codecov Report

Merging #3640 (c1fc9a5) into main (4b0dd07) will increase coverage by 0.66%.
The diff coverage is 92.30%.

❗ Current head c1fc9a5 differs from pull request most recent head 02b9489. Consider uploading reports for the commit 02b9489 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3640      +/-   ##
==========================================
+ Coverage   60.67%   61.33%   +0.66%     
==========================================
  Files          35       35              
  Lines        1790     1800      +10     
  Branches      404      408       +4     
==========================================
+ Hits         1086     1104      +18     
+ Misses        562      554       -8     
  Partials      142      142              
Impacted Files Coverage Δ
src/browser/pages/vscode.ts 62.06% <92.30%> (+62.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b0dd07...02b9489. Read the comment docs.

_resolvedLanguagePackCoreLocation?: string
_corruptedFile?: string
_languagePackSupport?: boolean
loadBundle?: any
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Incremental type improvements 😄

One day, we will be able to remove that /* eslint-disable @typescript-eslint/no-explicit-any */ but today is not that today.

@jsjoeio jsjoeio force-pushed the jsjoeio/add-test-nlsConfig branch from 9386833 to d833967 Compare June 18, 2021 23:39
@jsjoeio jsjoeio marked this pull request as ready for review June 18, 2021 23:41
@jsjoeio jsjoeio requested a review from a team as a code owner June 18, 2021 23:41
@jsjoeio jsjoeio force-pushed the jsjoeio/add-test-nlsConfig branch 3 times, most recently from 2c69ada to 1d19c4c Compare June 21, 2021 23:05
@jsjoeio
Copy link
Contributor Author

jsjoeio commented Jun 21, 2021

@code-asher ready for a a second review!

@jsjoeio jsjoeio requested a review from code-asher June 21, 2021 23:14
@jsjoeio jsjoeio force-pushed the jsjoeio/add-test-nlsConfig branch from 1d19c4c to e6c828b Compare June 23, 2021 18:12
@jsjoeio jsjoeio requested a review from code-asher June 23, 2021 18:12
@jsjoeio jsjoeio force-pushed the jsjoeio/add-test-nlsConfig branch from e6c828b to e0ab67d Compare June 23, 2021 20:18
@jsjoeio jsjoeio requested a review from code-asher June 23, 2021 20:18
This PR refactors part of vscode.ts and adds a function to get the NLS
Configuration.

This makes the code more readable and easier to test.

And it adds multiple tests for this part of the codebase.
@jsjoeio jsjoeio force-pushed the jsjoeio/add-test-nlsConfig branch from e0ab67d to 02b9489 Compare June 23, 2021 20:42
@jsjoeio jsjoeio merged commit df01808 into main Jun 28, 2021
@jsjoeio jsjoeio deleted the jsjoeio/add-test-nlsConfig branch June 28, 2021 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Anything related to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants