Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/test/simulationExtension/extension.js
13388 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
// You might think this is weird. It is weird.
7
//
8
// VS Code must know where require calls happen in order to attribute them to
9
// the right extension (and check proposed API access.) It does this by checking
10
// the path of the require'ing module, and this fails once we go out of the
11
// directory and request the simulation workbench.
12
//
13
// This is pulled in via .esbuild.mts which shims the vscode module.
14
globalThis.COPILOT_SIMULATION_VSCODE = require('vscode');
15
16
exports.activate = require(process.env.VSCODE_SIMULATION_EXTENSION_ENTRY);
17
18