MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / assertSupportedEditOperation

Function assertSupportedEditOperation

src/rstudioapi.ts:412–416  ·  view source on GitHub ↗
(operation: string)

Source from the content-addressed store, hash-verified

410}
411
412function assertSupportedEditOperation(operation: string) {
413 if (operation !== 'insertText' && operation !== 'modifyRange') {
414 throw ('Operation: ' + operation + ' not supported by VSCode-R API');
415 }
416}
417
418function normaliseEditText(text: string, editLocation: any,
419 operation: string, targetDocument: TextDocument) {

Callers 1

insertOrModifyTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected