File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 3
3
IndentAction ,
4
4
languages ,
5
5
LanguageConfiguration ,
6
- window ,
7
- Uri ,
8
- env ,
9
6
} from 'vscode' ;
10
7
11
8
const wordPattern = / ( - ? \d * \. \d \w * ) | ( [ ^ \` \~ \! \@ \$ \^ \& \* \( \) \= \+ \[ \{ \] \} \\ \| \; \: \' \" \, \. \< \> \/ \s ] + ) / g;
@@ -32,22 +29,7 @@ export const jsxAttrConfiguration: LanguageConfiguration = {
32
29
] ,
33
30
} ;
34
31
35
- const welcomeMessageShown = 'WELCOME_MESSAGE_SHOWN' ;
36
-
37
32
export async function activate ( context : ExtensionContext ) {
38
33
languages . setLanguageConfiguration ( 'jsx' , jsxConfiguration ) ;
39
34
languages . setLanguageConfiguration ( 'jsx-attr' , jsxAttrConfiguration ) ;
40
-
41
- if ( ! context . globalState . get < boolean > ( welcomeMessageShown ) ) {
42
- const response = await window . showInformationMessage (
43
- 'Thanks for downloading Babel JavaScript! Make sure to follow me on Twitter @michaelgmcd.' ,
44
- 'Follow' ,
45
- ) ;
46
- if ( response ) {
47
- env . openExternal (
48
- Uri . parse ( 'https://twitter.com/intent/user?screen_name=michaelgmcd' ) ,
49
- ) ;
50
- }
51
- await context . globalState . update ( welcomeMessageShown , true ) ;
52
- }
53
35
}
You can’t perform that action at this time.
0 commit comments