Skip to content

Commit 5a29f5c

Browse files
authored
Merge branch 'microsoft:main' into main
2 parents acfda40 + a432fbd commit 5a29f5c

File tree

141 files changed

+2513
-1515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+2513
-1515
lines changed

.github/workflows/basic.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ jobs:
2222
# TODO: rename azure-pipelines/linux/xvfb.init to github-actions
2323
- name: Setup Build Environment
2424
run: |
25-
sudo apt-get update
26-
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
2725
sudo cp build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb
2826
sudo chmod +x /etc/init.d/xvfb
2927
sudo update-rc.d xvfb defaults

ThirdPartyNotices.txt

Lines changed: 154 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This project incorporates components from the projects listed below. The origina
77

88
1. atom/language-clojure version 0.22.8 (https://github.com/atom/language-clojure)
99
2. atom/language-coffee-script version 0.49.3 (https://github.com/atom/language-coffee-script)
10-
3. atom/language-css version 0.45.0 (https://github.com/atom/language-css)
10+
3. atom/language-css version 0.45.1 (https://github.com/atom/language-css)
1111
4. atom/language-java version 0.32.1 (https://github.com/atom/language-java)
1212
5. atom/language-sass version 0.62.1 (https://github.com/atom/language-sass)
1313
6. atom/language-shellscript version 0.28.2 (https://github.com/atom/language-shellscript)
@@ -30,50 +30,53 @@ This project incorporates components from the projects listed below. The origina
3030
23. Ionic documentation version 1.2.4 (https://github.com/ionic-team/ionic-site)
3131
24. ionide/ionide-fsgrammar (https://github.com/ionide/ionide-fsgrammar)
3232
25. James-Yu/LaTeX-Workshop version 8.19.1 (https://github.com/James-Yu/LaTeX-Workshop)
33-
26. jeff-hykin/cpp-textmate-grammar version 1.12.11 (https://github.com/jeff-hykin/cpp-textmate-grammar)
34-
27. jeff-hykin/cpp-textmate-grammar version 1.15.6 (https://github.com/jeff-hykin/cpp-textmate-grammar)
35-
28. jlelong/vscode-latex-basics version 1.3.0 (https://github.com/jlelong/vscode-latex-basics)
36-
29. js-beautify version 1.6.8 (https://github.com/beautify-web/js-beautify)
37-
30. JuliaEditorSupport/atom-language-julia version 0.22.1 (https://github.com/JuliaEditorSupport/atom-language-julia)
38-
31. Jxck/assert version 1.0.0 (https://github.com/Jxck/assert)
39-
32. language-docker (https://github.com/moby/moby)
40-
33. language-less version 0.34.2 (https://github.com/atom/language-less)
41-
34. language-php version 0.48.1 (https://github.com/atom/language-php)
42-
35. MagicStack/MagicPython version 1.1.1 (https://github.com/MagicStack/MagicPython)
43-
36. marked version 4.0.16 (https://github.com/markedjs/marked)
44-
37. mdn-data version 1.1.12 (https://github.com/mdn/data)
45-
38. microsoft/TypeScript-TmLanguage version 0.0.1 (https://github.com/microsoft/TypeScript-TmLanguage)
46-
39. microsoft/vscode-JSON.tmLanguage (https://github.com/microsoft/vscode-JSON.tmLanguage)
47-
40. microsoft/vscode-markdown-tm-grammar version 1.0.0 (https://github.com/microsoft/vscode-markdown-tm-grammar)
48-
41. microsoft/vscode-mssql version 1.10.1 (https://github.com/microsoft/vscode-mssql)
49-
42. mmims/language-batchfile version 0.7.6 (https://github.com/mmims/language-batchfile)
50-
43. NVIDIA/cuda-cpp-grammar (https://github.com/NVIDIA/cuda-cpp-grammar)
51-
44. PowerShell/EditorSyntax version 1.0.0 (https://github.com/PowerShell/EditorSyntax)
52-
45. rust-syntax version 0.5.0 (https://github.com/dustypomerleau/rust-syntax)
53-
46. semver version 5.5.0 (https://github.com/npm/node-semver)
54-
47. seti-ui version 0.1.0 (https://github.com/jesseweed/seti-ui)
55-
48. shaders-tmLanguage version 0.1.0 (https://github.com/tgjones/shaders-tmLanguage)
56-
49. sumneko/lua.tmbundle version 1.0.0 (https://github.com/sumneko/lua.tmbundle)
57-
50. textmate/asp.vb.net.tmbundle (https://github.com/textmate/asp.vb.net.tmbundle)
58-
51. textmate/c.tmbundle (https://github.com/textmate/c.tmbundle)
59-
52. textmate/diff.tmbundle (https://github.com/textmate/diff.tmbundle)
60-
53. textmate/git.tmbundle (https://github.com/textmate/git.tmbundle)
61-
54. textmate/groovy.tmbundle (https://github.com/textmate/groovy.tmbundle)
62-
55. textmate/html.tmbundle (https://github.com/textmate/html.tmbundle)
63-
56. textmate/ini.tmbundle (https://github.com/textmate/ini.tmbundle)
64-
57. textmate/javascript.tmbundle (https://github.com/textmate/javascript.tmbundle)
65-
58. textmate/markdown.tmbundle (https://github.com/textmate/markdown.tmbundle)
66-
59. textmate/perl.tmbundle (https://github.com/textmate/perl.tmbundle)
67-
60. textmate/ruby.tmbundle (https://github.com/textmate/ruby.tmbundle)
68-
61. textmate/yaml.tmbundle (https://github.com/textmate/yaml.tmbundle)
69-
62. trond-snekvik/vscode-rst version 1.5.1 (https://github.com/trond-snekvik/vscode-rst)
70-
63. TypeScript-TmLanguage version 0.1.8 (https://github.com/microsoft/TypeScript-TmLanguage)
71-
64. TypeScript-TmLanguage version 1.0.0 (https://github.com/microsoft/TypeScript-TmLanguage)
72-
65. Unicode version 12.0.0 (https://home.unicode.org/)
73-
66. vscode-codicons version 0.0.14 (https://github.com/microsoft/vscode-codicons)
74-
67. vscode-logfile-highlighter version 2.11.0 (https://github.com/emilast/vscode-logfile-highlighter)
75-
68. vscode-swift version 0.0.1 (https://github.com/owensd/vscode-swift)
76-
69. Web Background Synchronization (https://github.com/WICG/background-sync)
33+
26. jeff-hykin/better-c-syntax version 1.13.2 (https://github.com/jeff-hykin/better-c-syntax)
34+
27. jeff-hykin/better-cpp-syntax version 1.15.17 (https://github.com/jeff-hykin/better-cpp-syntax)
35+
28. jeff-hykin/better-objc-syntax version 0.2.0 (https://github.com/jeff-hykin/better-objc-syntax)
36+
29. jeff-hykin/better-objcpp-syntax version 0.1.0 (https://github.com/jeff-hykin/better-objcpp-syntax)
37+
30. jlelong/vscode-latex-basics version 1.3.0 (https://github.com/jlelong/vscode-latex-basics)
38+
31. js-beautify version 1.6.8 (https://github.com/beautify-web/js-beautify)
39+
32. JuliaEditorSupport/atom-language-julia version 0.22.1 (https://github.com/JuliaEditorSupport/atom-language-julia)
40+
33. Jxck/assert version 1.0.0 (https://github.com/Jxck/assert)
41+
34. language-docker (https://github.com/moby/moby)
42+
35. language-less version 0.34.2 (https://github.com/atom/language-less)
43+
36. language-php version 0.48.1 (https://github.com/atom/language-php)
44+
37. MagicStack/MagicPython version 1.1.1 (https://github.com/MagicStack/MagicPython)
45+
38. marked version 4.0.16 (https://github.com/markedjs/marked)
46+
39. mdn-data version 1.1.12 (https://github.com/mdn/data)
47+
40. microsoft/TypeScript-TmLanguage version 0.0.1 (https://github.com/microsoft/TypeScript-TmLanguage)
48+
41. microsoft/vscode-JSON.tmLanguage (https://github.com/microsoft/vscode-JSON.tmLanguage)
49+
42. microsoft/vscode-markdown-tm-grammar version 1.0.0 (https://github.com/microsoft/vscode-markdown-tm-grammar)
50+
43. microsoft/vscode-mssql version 1.10.1 (https://github.com/microsoft/vscode-mssql)
51+
44. mmims/language-batchfile version 0.7.6 (https://github.com/mmims/language-batchfile)
52+
45. NVIDIA/cuda-cpp-grammar (https://github.com/NVIDIA/cuda-cpp-grammar)
53+
46. PowerShell/EditorSyntax version 1.0.0 (https://github.com/PowerShell/EditorSyntax)
54+
47. rust-syntax version 0.5.0 (https://github.com/dustypomerleau/rust-syntax)
55+
48. semver version 5.5.0 (https://github.com/npm/node-semver)
56+
49. seti-ui version 0.1.0 (https://github.com/jesseweed/seti-ui)
57+
50. shaders-tmLanguage version 0.1.0 (https://github.com/tgjones/shaders-tmLanguage)
58+
51. sumneko/lua.tmbundle version 1.0.0 (https://github.com/sumneko/lua.tmbundle)
59+
52. textmate/asp.vb.net.tmbundle (https://github.com/textmate/asp.vb.net.tmbundle)
60+
53. textmate/c.tmbundle (https://github.com/textmate/c.tmbundle)
61+
54. textmate/diff.tmbundle (https://github.com/textmate/diff.tmbundle)
62+
55. textmate/git.tmbundle (https://github.com/textmate/git.tmbundle)
63+
56. textmate/groovy.tmbundle (https://github.com/textmate/groovy.tmbundle)
64+
57. textmate/html.tmbundle (https://github.com/textmate/html.tmbundle)
65+
58. textmate/ini.tmbundle (https://github.com/textmate/ini.tmbundle)
66+
59. textmate/javascript.tmbundle (https://github.com/textmate/javascript.tmbundle)
67+
60. textmate/markdown.tmbundle (https://github.com/textmate/markdown.tmbundle)
68+
61. textmate/perl.tmbundle (https://github.com/textmate/perl.tmbundle)
69+
62. textmate/ruby.tmbundle (https://github.com/textmate/ruby.tmbundle)
70+
63. textmate/yaml.tmbundle (https://github.com/textmate/yaml.tmbundle)
71+
64. trond-snekvik/vscode-rst version 1.5.1 (https://github.com/trond-snekvik/vscode-rst)
72+
65. TypeScript-TmLanguage version 0.1.8 (https://github.com/microsoft/TypeScript-TmLanguage)
73+
66. TypeScript-TmLanguage version 1.0.0 (https://github.com/microsoft/TypeScript-TmLanguage)
74+
67. Unicode version 12.0.0 (https://home.unicode.org/)
75+
68. vscode-codicons version 0.0.14 (https://github.com/microsoft/vscode-codicons)
76+
69. vscode-logfile-highlighter version 2.11.0 (https://github.com/emilast/vscode-logfile-highlighter)
77+
70. vscode-swift version 0.0.1 (https://github.com/owensd/vscode-swift)
78+
71. vscode-win32-app-container-tokens (https://github.com/microsoft/vscode-win32-app-container-tokens)
79+
72. Web Background Synchronization (https://github.com/WICG/background-sync)
7780

7881

7982
%% atom/language-clojure NOTICES AND INFORMATION BEGIN HERE
@@ -1208,7 +1211,7 @@ SOFTWARE.
12081211
=========================================
12091212
END OF James-Yu/LaTeX-Workshop NOTICES AND INFORMATION
12101213

1211-
%% jeff-hykin/cpp-textmate-grammar NOTICES AND INFORMATION BEGIN HERE
1214+
%% jeff-hykin/better-c-syntax NOTICES AND INFORMATION BEGIN HERE
12121215
=========================================
12131216
MIT License
12141217

@@ -1232,7 +1235,85 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
12321235
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
12331236
SOFTWARE.
12341237
=========================================
1235-
END OF jeff-hykin/cpp-textmate-grammar NOTICES AND INFORMATION
1238+
END OF jeff-hykin/better-c-syntax NOTICES AND INFORMATION
1239+
1240+
%% jeff-hykin/better-cpp-syntax NOTICES AND INFORMATION BEGIN HERE
1241+
=========================================
1242+
MIT License
1243+
1244+
Copyright (c) 2019 Jeff Hykin
1245+
1246+
Permission is hereby granted, free of charge, to any person obtaining a copy
1247+
of this software and associated documentation files (the "Software"), to deal
1248+
in the Software without restriction, including without limitation the rights
1249+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1250+
copies of the Software, and to permit persons to whom the Software is
1251+
furnished to do so, subject to the following conditions:
1252+
1253+
The above copyright notice and this permission notice shall be included in all
1254+
copies or substantial portions of the Software.
1255+
1256+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1257+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1258+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1259+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1260+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1261+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1262+
SOFTWARE.
1263+
=========================================
1264+
END OF jeff-hykin/better-cpp-syntax NOTICES AND INFORMATION
1265+
1266+
%% jeff-hykin/better-objc-syntax NOTICES AND INFORMATION BEGIN HERE
1267+
=========================================
1268+
MIT License
1269+
1270+
Copyright (c) 2019 Jeff Hykin
1271+
1272+
Permission is hereby granted, free of charge, to any person obtaining a copy
1273+
of this software and associated documentation files (the "Software"), to deal
1274+
in the Software without restriction, including without limitation the rights
1275+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1276+
copies of the Software, and to permit persons to whom the Software is
1277+
furnished to do so, subject to the following conditions:
1278+
1279+
The above copyright notice and this permission notice shall be included in all
1280+
copies or substantial portions of the Software.
1281+
1282+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1283+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1284+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1285+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1286+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1287+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1288+
SOFTWARE.
1289+
=========================================
1290+
END OF jeff-hykin/better-objc-syntax NOTICES AND INFORMATION
1291+
1292+
%% jeff-hykin/better-objcpp-syntax NOTICES AND INFORMATION BEGIN HERE
1293+
=========================================
1294+
MIT License
1295+
1296+
Copyright (c) 2019 Jeff Hykin
1297+
1298+
Permission is hereby granted, free of charge, to any person obtaining a copy
1299+
of this software and associated documentation files (the "Software"), to deal
1300+
in the Software without restriction, including without limitation the rights
1301+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1302+
copies of the Software, and to permit persons to whom the Software is
1303+
furnished to do so, subject to the following conditions:
1304+
1305+
The above copyright notice and this permission notice shall be included in all
1306+
copies or substantial portions of the Software.
1307+
1308+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1309+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1310+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1311+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1312+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1313+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1314+
SOFTWARE.
1315+
=========================================
1316+
END OF jeff-hykin/better-objcpp-syntax NOTICES AND INFORMATION
12361317

12371318
%% jlelong/vscode-latex-basics NOTICES AND INFORMATION BEGIN HERE
12381319
=========================================
@@ -3123,6 +3204,32 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SO
31233204
=========================================
31243205
END OF vscode-swift NOTICES AND INFORMATION
31253206

3207+
%% vscode-win32-app-container-tokens NOTICES AND INFORMATION BEGIN HERE
3208+
=========================================
3209+
MIT License
3210+
3211+
Copyright (c) Microsoft Corporation.
3212+
3213+
Permission is hereby granted, free of charge, to any person obtaining a copy
3214+
of this software and associated documentation files (the "Software"), to deal
3215+
in the Software without restriction, including without limitation the rights
3216+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3217+
copies of the Software, and to permit persons to whom the Software is
3218+
furnished to do so, subject to the following conditions:
3219+
3220+
The above copyright notice and this permission notice shall be included in all
3221+
copies or substantial portions of the Software.
3222+
3223+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3224+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3225+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3226+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3227+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3228+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3229+
SOFTWARE
3230+
=========================================
3231+
END OF vscode-win32-app-container-tokens NOTICES AND INFORMATION
3232+
31263233
%% Web Background Synchronization NOTICES AND INFORMATION BEGIN HERE
31273234
=========================================
31283235
Apache License

cglicenses.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,31 @@
147147
"",
148148
"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
149149
]
150+
},
151+
{
152+
"name": "@vscode/win32-app-container-tokens",
153+
"fullLicenseText": [
154+
"MIT License",
155+
"",
156+
"Copyright (c) Microsoft Corporation.",
157+
"",
158+
"Permission is hereby granted, free of charge, to any person obtaining a copy",
159+
"of this software and associated documentation files (the \"Software\"), to deal",
160+
"in the Software without restriction, including without limitation the rights",
161+
"to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
162+
"copies of the Software, and to permit persons to whom the Software is",
163+
"furnished to do so, subject to the following conditions:",
164+
"",
165+
"The above copyright notice and this permission notice shall be included in all",
166+
"copies or substantial portions of the Software.",
167+
"",
168+
"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR",
169+
"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,",
170+
"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE",
171+
"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER",
172+
"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,",
173+
"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE",
174+
"SOFTWARE"
175+
]
150176
}
151177
]

cgmanifest.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,40 @@
539539
"isOnlyProductionDependency": true,
540540
"license": "MIT",
541541
"version": "0.10.0"
542+
},
543+
{
544+
"name": "@vscode/win32-app-container-tokens",
545+
"component": {
546+
"type": "git",
547+
"git": {
548+
"name": "vscode-win32-app-container-tokens",
549+
"repositoryUrl": "https://github.com/microsoft/vscode-win32-app-container-tokens",
550+
"commitHash": "5b871f95fd9cb8efa8ee9a80600510d5e5339137"
551+
}
552+
},
553+
"licenseDetail":[
554+
"MIT License",
555+
"",
556+
"Copyright (c) Microsoft Corporation.",
557+
"",
558+
"Permission is hereby granted, free of charge, to any person obtaining a copy",
559+
"of this software and associated documentation files (the \"Software\"), to deal",
560+
"in the Software without restriction, including without limitation the rights",
561+
"to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
562+
"copies of the Software, and to permit persons to whom the Software is",
563+
"furnished to do so, subject to the following conditions:",
564+
"",
565+
"The above copyright notice and this permission notice shall be included in all",
566+
"copies or substantial portions of the Software.",
567+
"",
568+
"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR",
569+
"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,",
570+
"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE",
571+
"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER",
572+
"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,",
573+
"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE",
574+
"SOFTWARE"
575+
]
542576
}
543577
],
544578
"version": 1

extensions/git/src/commands.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class CheckoutItem implements QuickPickItem {
2828
protected get shortCommit(): string { return (this.ref.commit || '').substr(0, 8); }
2929
get label(): string { return `${this.repository.isBranchProtected(this.ref.name ?? '') ? '$(lock)' : '$(git-branch)'} ${this.ref.name || this.shortCommit}`; }
3030
get description(): string { return this.shortCommit; }
31+
get refName(): string | undefined { return this.ref.name; }
3132

3233
constructor(protected repository: Repository, protected ref: Ref) { }
3334

@@ -140,6 +141,7 @@ class HEADItem implements QuickPickItem {
140141
get label(): string { return 'HEAD'; }
141142
get description(): string { return (this.repository.HEAD && this.repository.HEAD.commit || '').substr(0, 8); }
142143
get alwaysShow(): boolean { return true; }
144+
get refName(): string { return 'HEAD'; }
143145
}
144146

145147
class AddRemoteItem implements QuickPickItem {
@@ -1998,7 +2000,9 @@ export class CommandCenter {
19982000
return;
19992001
}
20002002

2001-
target = choice.label;
2003+
if (choice.refName) {
2004+
target = choice.refName;
2005+
}
20022006
}
20032007

20042008
await repository.branch(branchName, true, target);

0 commit comments

Comments
 (0)