Eskibear / vscode-extension-telemetry-wrapper

MIT License
2 stars 2 forks source link

use continuation-local-storage to store session info #3

Closed Eskibear closed 6 years ago

Eskibear commented 6 years ago

About implementation of continuation-local-storage, refer to: https://github.com/nodejs/node-v0.x-archive/issues/5243

Now simply use:

TelemetryWrapper.registerCommand("commandName",
        (args: any[]): void => {
            // TODO
            TelemetryWrapper.currentSession().id;
        }
);
Eskibear commented 6 years ago

@akaroml

Eskibear commented 6 years ago

@ansyral