MCPcopy Index your code
hub / github.com/PowerShell/vscode-powershell / BuildBinaryModuleMock

Function BuildBinaryModuleMock

test/utils.ts:99–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97
98/** Builds the sample binary module code. We need to do this because the source maps have absolute paths so they are not portable between machines, and while we could do deterministic with source maps, that's way more complicated and everywhere we build has dotnet already anyways */
99export function BuildBinaryModuleMock(): void {
100 const projectPath = path.resolve(
101 `${__dirname}/../test/mocks/BinaryModule/BinaryModule.csproj`,
102 );
103 try {
104 execSync(`dotnet publish ${projectPath}`, {
105 encoding: "utf8",
106 });
107 } catch (err) {
108 throw new Error(
109 `Failed to build the binary module mock. Please ensure that you have the .NET Core SDK installed: ${err}`,
110 );
111 }
112}
113
114/** Waits until the registered vscode event is fired and returns the trigger result of the event.
115 * @param event The event to wait for

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected