MCPcopy Index your code
hub / github.com/microsoft/codetour / writeFile

Method writeFile

src/player/fileSystem/index.ts:49–57  ·  view source on GitHub ↗
(
    uri: Uri,
    content: Uint8Array,
    options: { create: boolean; overwrite: boolean }
  )

Source from the content-addressed store, hash-verified

47 }
48
49 async writeFile(
50 uri: Uri,
51 content: Uint8Array,
52 options: { create: boolean; overwrite: boolean }
53 ): Promise<void> {
54 const [tour, step] = this.getCurrentTourStep();
55 step.contents = content.toString();
56 this.updateTour(tour);
57 }
58
59 async stat(uri: Uri): Promise<FileStat> {
60 return {

Callers 5

registerPlayerCommandsFunction · 0.80
updateTourMethod · 0.80
saveTourFunction · 0.80
writeTourFileFunction · 0.80
registerRecorderCommandsFunction · 0.80

Calls 2

getCurrentTourStepMethod · 0.95
updateTourMethod · 0.95

Tested by

no test coverage detected