@@ -249,28 +249,9 @@ function registerDiagnosticCommands(accessor: ServicesAccessor): IDisposable {
249249 const disposables = new DisposableStore ( ) ;
250250
251251 disposables . add ( registerCommandWrapper ( accessor , CMDOpenDocumentationClient , ( ) => {
252- // Map VS Code locale to GitHub docs locale
253- // VS Code uses language codes like 'es', 'ja', 'zh-cn', 'zh-tw', 'fr', 'de', 'it', 'pt-br', 'ru', 'ko'
254- // GitHub docs supports: es, ja, zh, pt, fr, de, ko, ru (and more)
255- const vscodeLocale = env . language . toLowerCase ( ) ;
256- let docsLocale = 'en' ; // Default to English
257-
258- // Map VS Code locales to GitHub docs locales
259- if ( vscodeLocale . startsWith ( 'zh-' ) ) {
260- docsLocale = 'zh' ; // Map both zh-cn and zh-tw to zh
261- } else if ( vscodeLocale . startsWith ( 'pt-' ) ) {
262- docsLocale = 'pt' ; // Map pt-br to pt
263- } else {
264- // For other locales, use the first two characters if they match supported locales
265- const baseLocale = vscodeLocale . split ( '-' ) [ 0 ] ;
266- const supportedLocales = [ 'es' , 'ja' , 'fr' , 'de' , 'ko' , 'ru' , 'it' ] ;
267- if ( supportedLocales . includes ( baseLocale ) ) {
268- docsLocale = baseLocale ;
269- }
270- }
271-
272- const docUrl = `https://docs.github.com/${ docsLocale } /copilot/getting-started-with-github-copilot?tool=vscode` ;
273- return env . openExternal ( URI . parse ( docUrl ) ) ;
252+ return env . openExternal (
253+ URI . parse ( 'https://docs.github.com/en/copilot/getting-started-with-github-copilot?tool=vscode' )
254+ ) ;
274255 } ) ) ;
275256 disposables . add ( registerCommandWrapper ( accessor , CMDOpenLogsClient , ( ) => {
276257 outputChannel . show ( ) ;
0 commit comments