Skip to content

Commit 4ee5f0e

Browse files
author
Michael McDermott (CORP)
committed
refactor: remove twitter plug
1 parent 6da4c95 commit 4ee5f0e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/extension.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ import {
33
IndentAction,
44
languages,
55
LanguageConfiguration,
6-
window,
7-
Uri,
8-
env,
96
} from 'vscode';
107

118
const wordPattern = /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g;
@@ -32,22 +29,7 @@ export const jsxAttrConfiguration: LanguageConfiguration = {
3229
],
3330
};
3431

35-
const welcomeMessageShown = 'WELCOME_MESSAGE_SHOWN';
36-
3732
export async function activate(context: ExtensionContext) {
3833
languages.setLanguageConfiguration('jsx', jsxConfiguration);
3934
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-
}
5335
}

0 commit comments

Comments
 (0)