yarn: go back to yarn-v1 until vsce supports yarn-v2+ (#294)

* yarn: go back to v1 until `vsce` supports yarnv2+

* deps: switch to `fast-glob` and `glob` causes issues with eslint
This commit is contained in:
Tyler Wilding 2023-07-13 19:25:53 -06:00 committed by GitHub
parent ed5ce9d3eb
commit 2ec82ceb0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 1848 additions and 3140 deletions

View file

@ -25,9 +25,7 @@ jobs:
cache: yarn
- name: Install Dependencies
run: |
yarn set version stable
yarn install --immutable
run: yarn install --immutable
- name: Build Extension
run: yarn compile

View file

@ -23,9 +23,7 @@ jobs:
cache: yarn
- name: Install Dependencies
run: |
yarn set version stable
yarn install --immutable
run: yarn install --immutable
- name: Check Linting
run: yarn lint
@ -44,9 +42,7 @@ jobs:
cache: yarn
- name: Install Dependencies
run: |
yarn set version stable
yarn install --immutable
run: yarn install --immutable
- name: Check Linting
run: yarn format:check

View file

@ -28,9 +28,7 @@ jobs:
cache: yarn
- name: Install Dependencies
run: |
yarn set version stable
yarn install --immutable
run: yarn install --immutable
- name: Bump Version
env:
@ -39,8 +37,8 @@ jobs:
run: |
git config --global user.name "OpenGOALBot"
git config --global user.email "OpenGOALBot@users.noreply.github.com"
yarn vsce package --no-yarn
yarn vsce publish ${{ github.event.inputs.bump }} --no-yarn
yarn vsce package
yarn vsce publish ${{ github.event.inputs.bump }}
git push
git push origin $(git tag --points-at HEAD)

View file

@ -23,7 +23,8 @@
"lint": "eslint . --ext .ts,.tsx",
"watch": "tsc -watch -p ./",
"format": "npx prettier --write .",
"format:check": "npx prettier --check ."
"format:check": "npx prettier --check .",
"postinstall": "patch-package"
},
"devDependencies": {
"@types/follow-redirects": "^1.14.1",
@ -34,12 +35,13 @@
"@typescript-eslint/parser": "^6.0.0",
"@vscode/vsce": "^2.15.0",
"eslint": "^8.44.0",
"patch-package": "^7.0.0",
"typescript": "^5.1.6"
},
"dependencies": {
"comment-json": "^4.2.3",
"fast-glob": "^3.3.0",
"follow-redirects": "^1.15.2",
"glob": "^10.0.0",
"parinfer": "^3.13.1",
"promise-socket": "^7.0.0",
"vscode-languageclient": "^8.1.0"
@ -483,5 +485,5 @@
"resolutions": {
"vscode-jsonrpc@8.1.0": "patch:vscode-jsonrpc@npm%3A8.1.0#./.yarn/patches/vscode-jsonrpc-npm-8.1.0-557f20ee72.patch"
},
"packageManager": "yarn@3.6.1"
"packageManager": "yarn@1.22.19"
}

View file

@ -0,0 +1,14 @@
diff --git a/node_modules/vscode-jsonrpc/lib/common/messageReader.js b/node_modules/vscode-jsonrpc/lib/common/messageReader.js
index 99e3dea..c8fc01c 100644
--- a/node_modules/vscode-jsonrpc/lib/common/messageReader.js
+++ b/node_modules/vscode-jsonrpc/lib/common/messageReader.js
@@ -136,6 +136,9 @@ class ReadableStreamMessageReader extends AbstractMessageReader {
}
const contentLength = headers.get('content-length');
if (!contentLength) {
+ const bodyBuffer = this.buffer.tryReadBody(this.buffer._totalLength);
+ const bodyString = bodyBuffer.toString();
+ console.log(`[LSP Debug] ERROR: Body - ${bodyString}`);
this.fireError(new Error('Header must provide a Content-Length property.'));
return;
}

View file

@ -14,7 +14,7 @@ import {
} from "../utils/workspace";
import { activateDecompTypeSearcher } from "./type-searcher/type-searcher";
import { updateTypeCastSuggestions } from "./type-caster";
import { glob } from "glob";
import { glob } from "fast-glob";
const execFileAsync = util.promisify(execFile);
const execAsync = util.promisify(exec);

4944
yarn.lock

File diff suppressed because it is too large Load diff