policy-watcher/index.js
Josh Spicer adaf1c3393
Implement policy watcher for macOS
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
2025-02-19 14:54:35 -08:00

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)
);
}