MCPcopy
hub / github.com/dotnet/vscode-csharp / getFakeVsCode

Function getFakeVsCode

test/fakes.ts:183–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181}
182
183export function getFakeVsCode(): vscode.vscode {
184 return {
185 commands: {
186 executeCommand: <_T>(_command: string, ..._rest: any[]) => {
187 throw new Error('Not Implemented');
188 },
189 },
190 languages: {
191 match: (_selector: vscode.DocumentSelector, _document: vscode.TextDocument) => {
192 throw new Error('Not Implemented');
193 },
194 },
195 window: {
196 activeTextEditor: undefined,
197 showInformationMessage: <T extends vscode.MessageItem>(_message: string, ..._items: T[]) => {
198 throw new Error('Not Implemented');
199 },
200 showWarningMessage: <T extends vscode.MessageItem>(_message: string, ..._items: T[]) => {
201 throw new Error('Not Implemented');
202 },
203 showErrorMessage: <T extends vscode.MessageItem>(_message: string, ..._items: T[]) => {
204 throw new Error('Not Implemented');
205 },
206 },
207 workspace: {
208 workspaceFolders: undefined,
209 getConfiguration: (_section?: string, _resource?: vscode.Uri) => {
210 throw new Error('Not Implemented');
211 },
212 asRelativePath: (_pathOrUri: string | vscode.Uri, _includeWorkspaceFolder?: boolean) => {
213 throw new Error('Not Implemented');
214 },
215 createFileSystemWatcher: (
216 _globPattern: vscode.GlobPattern,
217 _ignoreCreateEvents?: boolean,
218 _ignoreChangeEvents?: boolean,
219 _ignoreDeleteEvents?: boolean
220 ) => {
221 throw new Error('Not Implemented');
222 },
223 onDidChangeConfiguration: (
224 _listener: (e: vscode.ConfigurationChangeEvent) => any,
225 _thisArgs?: any,
226 _disposables?: vscode.Disposable[]
227 ): vscode.Disposable => {
228 throw new Error('Not Implemented');
229 },
230 },
231 extensions: {
232 all: [],
233 },
234 Uri: {
235 parse: () => {
236 throw new Error('Not Implemented');
237 },
238 file: (f: string): vscode.Uri => {
239 return {
240 path: f,

Callers 4

vscode.tsFile · 0.90
getVSCodeWithConfigFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected