-
Notifications
You must be signed in to change notification settings - Fork 0
/
extension.js
33 lines (32 loc) · 901 Bytes
/
extension.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module.exports = {
activate() {
if (typeof atom === 'undefined') {
const vscode = require('vscode');
vscode.commands.registerCommand(
'syntax-highlighting-scopes-showroom:show-all',
() =>
vscode.commands.executeCommand(
'vscode.open',
vscode.Uri.parse(
`${
vscode.extensions.getExtension(
'baleiko.syntax-highlighting-scopes-showroom'
).extensionPath
}/SyntaxScopes`
)
)
);
} else {
atom.commands.add('atom-workspace', {
'syntax-highlighting-scopes-showroom:show-all': () =>
atom.workspace.open(
`${
atom.packages.getActivePackage(
'syntax-highlighting-scopes-showroom'
).path
}/SyntaxScopes`
),
});
}
},
};