mirror of
https://github.com/VSCodium/policy-watcher.git
synced 2025-12-11 19:44:28 -06:00
something compiling and outputing a familiar looking key but more tidy this time prevent bad stuff file watcher (partly there) cc tidy up file watcher implement dispose implement mac NumberPolicy remove experiment dir tidy warnings minor edits revert package-lock.json remove pathsToWatch unsupported platform check value.value() is only supported after macOS 10.13
21 lines
767 B
JavaScript
21 lines
767 B
JavaScript
/*---------------------------------------------------------------------------------------------
|
|
* 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' },
|
|
},
|
|
msg => console.log(msg)
|
|
);
|
|
}
|