File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
// IMPORTANT: Do not import any node fs related modules here, as they do not work in browser.
5
5
import * as vscode from 'vscode' ;
6
- import { LanguageService } from './localize' ;
6
+ import { Common , LanguageService } from './localize' ;
7
7
8
8
export function createStatusItem ( ) : vscode . Disposable {
9
9
if ( 'createLanguageStatusItem' in vscode . languages ) {
@@ -15,7 +15,7 @@ export function createStatusItem(): vscode.Disposable {
15
15
statusItem . text = LanguageService . statusItem . text ( ) ;
16
16
statusItem . detail = LanguageService . statusItem . detail ( ) ;
17
17
statusItem . command = {
18
- title : 'Learn More' ,
18
+ title : Common . learnMore ( ) ,
19
19
command : 'vscode.open' ,
20
20
arguments : [ vscode . Uri . parse ( 'https://aka.ms/AAdzyh4' ) ] ,
21
21
} ;
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ export namespace LanguageService {
16
16
} ;
17
17
}
18
18
19
+ export namespace Common {
20
+ export const learnMore = localize ( 'Common.learnMore' , 'Learn more' ) ;
21
+ }
22
+
19
23
function localize ( key : string , defValue ?: string ) {
20
24
// Return a pointer to function so that we refetch it on each call.
21
25
return ( ) : string => getLocalizedString ( key , defValue ) ;
You can’t perform that action at this time.
0 commit comments