Skip to content

Commit c9db9a7

Browse files
authored
chore: bump vscode to 1.132.1 (conwnet#717)
1 parent bd05cf1 commit c9db9a7

7 files changed

Lines changed: 12 additions & 23 deletions

File tree

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx lint-staged

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"license": "ISC",
3232
"devDependencies": {
3333
"@cloudflare/workers-types": "^4.20250109.0",
34-
"@github1s/vscode-web": "^0.29.0",
34+
"@github1s/vscode-web": "^0.30.1",
3535
"chokidar": "^4.0.3",
3636
"clean-css": "^5.3.3",
3737
"copy-webpack-plugin": "^14.0.0",

vscode-web/.VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.132.0
1+
1.132.1

vscode-web/package-lock.json

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

vscode-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@github1s/vscode-web",
3-
"version": "0.29.0",
3+
"version": "0.30.1",
44
"description": "VS Code web for GitHub1s",
55
"author": "github1s",
66
"license": "MIT",

vscode-web/src/vs/workbench/services/label/common/labelService.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ const resourceLabelFormattersExtPoint = ExtensionsRegistry.registerExtensionPoin
7777

7878
const posixPathSeparatorRegexp = /\//g; // on Unix, backslash is a valid filename character
7979
const winPathSeparatorRegexp = /[\\\/]/g; // on Windows, neither slash nor backslash are valid filename characters
80-
// below codes are changed by github1s
81-
const labelMatchingRegexp = /\$\{(scheme|authoritySuffix(?::\d+)?|authority|path|(query)\.(.+?))\}/g;
82-
// above codes are changed by github1s
80+
const labelMatchingRegexp = /\$\{(scheme|authoritySuffix|authority|path|(query)\.(.+?))\}/g;
8381

8482
function hasDriveLetterIgnorePlatform(path: string): boolean {
8583
return !!(path && path[2] === ':');
@@ -454,19 +452,13 @@ export class LabelService extends Disposable implements ILabelService {
454452
}
455453

456454
private formatUri(resource: URI, formatting: ResourceLabelFormatting, forceNoTildify?: boolean): string {
457-
// below codes are changed by github1s
458-
let label = formatting.label.replace(labelMatchingRegexp, (match, tokenWithArgument, qsToken, qsValue) => {
459-
const [token, argument] = tokenWithArgument.split(':');
460-
// above codes are changed by github1s
455+
let label = formatting.label.replace(labelMatchingRegexp, (match, token, qsToken, qsValue) => {
461456
switch (token) {
462457
case 'scheme': return resource.scheme;
463458
case 'authority': return resource.authority;
464459
case 'authoritySuffix': {
465460
const i = resource.authority.indexOf('+');
466-
// below codes are changed by github1s
467-
const authoritySuffix = i === -1 ? resource.authority : resource.authority.slice(i + 1);
468-
return argument === undefined ? authoritySuffix : authoritySuffix.slice(0, Number(argument));
469-
// above codes are changed by github1s
461+
return i === -1 ? resource.authority : resource.authority.slice(i + 1);
470462
}
471463
case 'path': {
472464
let pathValue = resource.path;

0 commit comments

Comments
 (0)