MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / appendText

Method appendText

src/test/mocks/vsc/index.ts:229–236  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

227 }
228
229 public appendText(value: string): MarkdownString {
230 // escape markdown syntax tokens: http://daringfireball.net/projects/markdown/syntax#backslash
231 this.value += (this.supportThemeIcons ? escapeCodicons(value) : value) // CodeQL [SM02383] Non production (mock) code used only for tests.
232 .replace(/[\\`*_{}[\]()#+\-.!]/g, '\\$&') // CodeQL [SM02383] Non production (mock) code used only for tests.
233 .replace(/\n/, '\n\n'); // CodeQL [SM02383] Non production (mock) code used only for tests.
234
235 return this;
236 }
237
238 public appendMarkdown(value: string): MarkdownString {
239 this.value += value;

Callers

nothing calls this directly

Calls 2

escapeCodiconsFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected