a73cae2fd8
code-server enables running Visual Studio Code on a remote system and accessing it through a web browser. It provides a familiar development environment without requiring a local VS Code installation. WWW: https://github.com/coder/code-server Sponsored by: Netzkommune GmbH
12 lines
434 B
TypeScript
12 lines
434 B
TypeScript
--- lib/vscode/build/lib/getVersion.ts.orig
|
|
+++ lib/vscode/build/lib/getVersion.ts
|
|
@@ -8,7 +8,7 @@
|
|
export function getVersion(root: string): string | undefined {
|
|
let version = process.env['BUILD_SOURCEVERSION'];
|
|
|
|
- if (!version || !/^[0-9a-f]{40}$/i.test(version.trim())) {
|
|
+ if (!version || (!/^[0-9a-f]{40}$/i.test(version.trim()) && !/^[0-9]+(\.[0-9]+){1,3}$/i.test(version.trim()))) {
|
|
version = git.getVersion(root);
|
|
}
|
|
|