Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"license": "ISC",
"devDependencies": {
"@cloudflare/workers-types": "^4.20250109.0",
"@github1s/vscode-web": "^0.29.0",
"@github1s/vscode-web": "^0.30.1",
"chokidar": "^4.0.3",
"clean-css": "^5.3.3",
"copy-webpack-plugin": "^14.0.0",
Expand Down
2 changes: 1 addition & 1 deletion vscode-web/.VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.132.0
1.132.1
4 changes: 2 additions & 2 deletions vscode-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vscode-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@github1s/vscode-web",
"version": "0.29.0",
"version": "0.30.1",
"description": "VS Code web for GitHub1s",
"author": "github1s",
"license": "MIT",
Expand Down
14 changes: 3 additions & 11 deletions vscode-web/src/vs/workbench/services/label/common/labelService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ const resourceLabelFormattersExtPoint = ExtensionsRegistry.registerExtensionPoin

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

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

private formatUri(resource: URI, formatting: ResourceLabelFormatting, forceNoTildify?: boolean): string {
// below codes are changed by github1s
let label = formatting.label.replace(labelMatchingRegexp, (match, tokenWithArgument, qsToken, qsValue) => {
const [token, argument] = tokenWithArgument.split(':');
// above codes are changed by github1s
let label = formatting.label.replace(labelMatchingRegexp, (match, token, qsToken, qsValue) => {
switch (token) {
case 'scheme': return resource.scheme;
case 'authority': return resource.authority;
case 'authoritySuffix': {
const i = resource.authority.indexOf('+');
// below codes are changed by github1s
const authoritySuffix = i === -1 ? resource.authority : resource.authority.slice(i + 1);
return argument === undefined ? authoritySuffix : authoritySuffix.slice(0, Number(argument));
// above codes are changed by github1s
return i === -1 ? resource.authority : resource.authority.slice(i + 1);
}
case 'path': {
let pathValue = resource.path;
Expand Down
Loading