Skip to content

Commit cf2a275

Browse files
committed
update vitest
1 parent c2dab53 commit cf2a275

File tree

5 files changed

+95
-14
lines changed

5 files changed

+95
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"type-fest": "^2.13.1",
119119
"typed-jsonfile": "^0.2.1",
120120
"typescript": "^4.9.3",
121-
"vitest": "^0.25.3",
121+
"vitest": "^0.26.0",
122122
"vscode-manifest": "^0.0.4"
123123
},
124124
"pnpm": {

pnpm-lock.yaml

Lines changed: 90 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript/src/codeFixes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export default (proxy: ts.LanguageService, languageService: ts.LanguageService,
6565
} finally {
6666
tsFull.codefix.createCodeFixAction = oldCreateCodeFixAction
6767
}
68+
// todo remove when 5.0 is released after 3 months
6869
// #region fix builtin codefixes/refactorings
6970
prior.forEach(fix => {
7071
if (fix.fixName === 'fixConvertConstToLet') {

typescript/src/completions/arrayMethods.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { GetConfig } from '../types'
22
import { findChildContainingPosition, getLineTextBeforePos } from '../utils'
3-
import { singular } from 'pluralize'
3+
import pluralize from 'pluralize'
44

55
const arrayMethodsToPatch = [
66
'forEach',
@@ -31,7 +31,7 @@ export default (entries: ts.CompletionEntry[], position: number, sourceFile: ts.
3131
if (!nodeBeforeDot) return
3232

3333
const cleanSourceText = getItemNameFromNode(nodeBeforeDot)?.replace(/^(?:all)?(.+?)(?:List)?$/, '$1')
34-
let inferredName = cleanSourceText && singular(cleanSourceText)
34+
let inferredName = cleanSourceText && pluralize.singular(cleanSourceText)
3535
const defaultItemName = c('arrayMethodsSnippets.defaultItemName')
3636
// both can be undefined
3737
if (inferredName === cleanSourceText) {

typescript/src/completions/switchCaseExcludeCovered.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { oneOf } from '@zardoy/utils'
22
import { cleanupEntryName } from '../utils'
33

44
// implementation not even ideal, but it just works for string & enums, which are used in 99% cases
5+
// todo remove when 5.0 is released after 3 months
56
export default (entries: ts.CompletionEntry[], position: number, sourceFile: ts.SourceFile, leftNode: ts.Node) => {
67
if (!leftNode.parent?.parent) return
78
let nodeComp = leftNode

0 commit comments

Comments
 (0)