-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathindex.js
More file actions
21 lines (19 loc) · 811 Bytes
/
index.js
File metadata and controls
21 lines (19 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
exports.createWatcher = require('bindings')('vscode-policy-watcher');
if (require.main === module) {
const platform = process.platform;
exports.createWatcher(
platform === 'darwin'
? 'com.visualstudio.code.oss' // MacOS
: 'CodeOSS', // Windows
{
UpdateMode: { type: 'string' },
SCMInputFontSize: { type: 'number' },
DisableFeedback: { type: 'boolean' },
},
msg => console.log(msg)
);
}