chore(deps): update yarn sdks
This commit is contained in:
parent
71448b3d3f
commit
6b44d3581b
5 changed files with 35 additions and 11 deletions
2
.yarn/sdks/eslint/package.json
vendored
2
.yarn/sdks/eslint/package.json
vendored
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "eslint",
|
"name": "eslint",
|
||||||
"version": "8.11.0-sdk",
|
"version": "8.13.0-sdk",
|
||||||
"main": "./lib/api.js",
|
"main": "./lib/api.js",
|
||||||
"type": "commonjs"
|
"type": "commonjs"
|
||||||
}
|
}
|
||||||
|
|
2
.yarn/sdks/prettier/package.json
vendored
2
.yarn/sdks/prettier/package.json
vendored
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "prettier",
|
"name": "prettier",
|
||||||
"version": "2.6.0-sdk",
|
"version": "2.6.2-sdk",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"type": "commonjs"
|
"type": "commonjs"
|
||||||
}
|
}
|
||||||
|
|
18
.yarn/sdks/typescript/lib/tsserver.js
vendored
18
.yarn/sdks/typescript/lib/tsserver.js
vendored
|
@ -61,18 +61,26 @@ const moduleWrapper = tsserver => {
|
||||||
//
|
//
|
||||||
// Ref: https://github.com/microsoft/vscode/issues/105014#issuecomment-686760910
|
// Ref: https://github.com/microsoft/vscode/issues/105014#issuecomment-686760910
|
||||||
//
|
//
|
||||||
// Update Oct 8 2021: VSCode changed their format in 1.61.
|
// Update 2021-10-08: VSCode changed their format in 1.61.
|
||||||
// Before | ^zip:/c:/foo/bar.zip/package.json
|
// Before | ^zip:/c:/foo/bar.zip/package.json
|
||||||
// After | ^/zip//c:/foo/bar.zip/package.json
|
// After | ^/zip//c:/foo/bar.zip/package.json
|
||||||
//
|
//
|
||||||
|
// Update 2022-04-06: VSCode changed the format in 1.66.
|
||||||
|
// Before | ^/zip//c:/foo/bar.zip/package.json
|
||||||
|
// After | ^/zip/c:/foo/bar.zip/package.json
|
||||||
|
//
|
||||||
case `vscode <1.61`: {
|
case `vscode <1.61`: {
|
||||||
str = `^zip:${str}`;
|
str = `^zip:${str}`;
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case `vscode`: {
|
case `vscode <1.66`: {
|
||||||
str = `^/zip/${str}`;
|
str = `^/zip/${str}`;
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
case `vscode`: {
|
||||||
|
str = `^/zip${str}`;
|
||||||
|
} break;
|
||||||
|
|
||||||
// To make "go to definition" work,
|
// To make "go to definition" work,
|
||||||
// We have to resolve the actual file system path from virtual path
|
// We have to resolve the actual file system path from virtual path
|
||||||
// and convert scheme to supported by [vim-rzip](https://github.com/lbrayner/vim-rzip)
|
// and convert scheme to supported by [vim-rzip](https://github.com/lbrayner/vim-rzip)
|
||||||
|
@ -160,8 +168,12 @@ const moduleWrapper = tsserver => {
|
||||||
typeof parsedMessage.arguments.hostInfo === `string`
|
typeof parsedMessage.arguments.hostInfo === `string`
|
||||||
) {
|
) {
|
||||||
hostInfo = parsedMessage.arguments.hostInfo;
|
hostInfo = parsedMessage.arguments.hostInfo;
|
||||||
if (hostInfo === `vscode` && process.env.VSCODE_IPC_HOOK && process.env.VSCODE_IPC_HOOK.match(/Code\/1\.([1-5][0-9]|60)\./)) {
|
if (hostInfo === `vscode` && process.env.VSCODE_IPC_HOOK) {
|
||||||
|
if (/(\/|-)1\.([1-5][0-9]|60)\./.test(process.env.VSCODE_IPC_HOOK)) {
|
||||||
hostInfo += ` <1.61`;
|
hostInfo += ` <1.61`;
|
||||||
|
} else if (/(\/|-)1\.(6[1-5])\./.test(process.env.VSCODE_IPC_HOOK)) {
|
||||||
|
hostInfo += ` <1.66`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
18
.yarn/sdks/typescript/lib/tsserverlibrary.js
vendored
18
.yarn/sdks/typescript/lib/tsserverlibrary.js
vendored
|
@ -61,18 +61,26 @@ const moduleWrapper = tsserver => {
|
||||||
//
|
//
|
||||||
// Ref: https://github.com/microsoft/vscode/issues/105014#issuecomment-686760910
|
// Ref: https://github.com/microsoft/vscode/issues/105014#issuecomment-686760910
|
||||||
//
|
//
|
||||||
// Update Oct 8 2021: VSCode changed their format in 1.61.
|
// Update 2021-10-08: VSCode changed their format in 1.61.
|
||||||
// Before | ^zip:/c:/foo/bar.zip/package.json
|
// Before | ^zip:/c:/foo/bar.zip/package.json
|
||||||
// After | ^/zip//c:/foo/bar.zip/package.json
|
// After | ^/zip//c:/foo/bar.zip/package.json
|
||||||
//
|
//
|
||||||
|
// Update 2022-04-06: VSCode changed the format in 1.66.
|
||||||
|
// Before | ^/zip//c:/foo/bar.zip/package.json
|
||||||
|
// After | ^/zip/c:/foo/bar.zip/package.json
|
||||||
|
//
|
||||||
case `vscode <1.61`: {
|
case `vscode <1.61`: {
|
||||||
str = `^zip:${str}`;
|
str = `^zip:${str}`;
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case `vscode`: {
|
case `vscode <1.66`: {
|
||||||
str = `^/zip/${str}`;
|
str = `^/zip/${str}`;
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
case `vscode`: {
|
||||||
|
str = `^/zip${str}`;
|
||||||
|
} break;
|
||||||
|
|
||||||
// To make "go to definition" work,
|
// To make "go to definition" work,
|
||||||
// We have to resolve the actual file system path from virtual path
|
// We have to resolve the actual file system path from virtual path
|
||||||
// and convert scheme to supported by [vim-rzip](https://github.com/lbrayner/vim-rzip)
|
// and convert scheme to supported by [vim-rzip](https://github.com/lbrayner/vim-rzip)
|
||||||
|
@ -160,8 +168,12 @@ const moduleWrapper = tsserver => {
|
||||||
typeof parsedMessage.arguments.hostInfo === `string`
|
typeof parsedMessage.arguments.hostInfo === `string`
|
||||||
) {
|
) {
|
||||||
hostInfo = parsedMessage.arguments.hostInfo;
|
hostInfo = parsedMessage.arguments.hostInfo;
|
||||||
if (hostInfo === `vscode` && process.env.VSCODE_IPC_HOOK && process.env.VSCODE_IPC_HOOK.match(/Code\/1\.([1-5][0-9]|60)\./)) {
|
if (hostInfo === `vscode` && process.env.VSCODE_IPC_HOOK) {
|
||||||
|
if (/(\/|-)1\.([1-5][0-9]|60)\./.test(process.env.VSCODE_IPC_HOOK)) {
|
||||||
hostInfo += ` <1.61`;
|
hostInfo += ` <1.61`;
|
||||||
|
} else if (/(\/|-)1\.(6[1-5])\./.test(process.env.VSCODE_IPC_HOOK)) {
|
||||||
|
hostInfo += ` <1.66`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
.yarn/sdks/typescript/package.json
vendored
2
.yarn/sdks/typescript/package.json
vendored
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "typescript",
|
"name": "typescript",
|
||||||
"version": "4.6.2-sdk",
|
"version": "4.6.3-sdk",
|
||||||
"main": "./lib/typescript.js",
|
"main": "./lib/typescript.js",
|
||||||
"type": "commonjs"
|
"type": "commonjs"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue