diff --git a/client/web/package.json b/client/web/package.json index 8aa99e39226..775332dd44c 100644 --- a/client/web/package.json +++ b/client/web/package.json @@ -43,7 +43,7 @@ "@sourcegraph/branded": "workspace:*", "@sourcegraph/client-api": "workspace:*", "@sourcegraph/codeintellify": "workspace:*", - "@sourcegraph/cody-shared": "^0.0.4", + "@sourcegraph/cody-shared": "^0.0.5", "@sourcegraph/cody-ui": "^0.0.6", "@sourcegraph/common": "workspace:*", "@sourcegraph/http-client": "workspace:*", diff --git a/client/web/src/cody/components/CodeMirrorEditor.ts b/client/web/src/cody/components/CodeMirrorEditor.ts index 50e1cbfd737..dccf2365305 100644 --- a/client/web/src/cody/components/CodeMirrorEditor.ts +++ b/client/web/src/cody/components/CodeMirrorEditor.ts @@ -2,6 +2,7 @@ import type { EditorView } from '@codemirror/view' import { ActiveTextEditor, + ActiveTextEditorDiagnostic, ActiveTextEditorSelection, ActiveTextEditorVisibleContent, Editor, @@ -116,6 +117,16 @@ export class CodeMirrorEditor implements Editor { return null } + public getWorkspaceRootUri(): null { + // Not implemented. + return null + } + + public getActiveTextEditorDiagnosticsForRange(): ActiveTextEditorDiagnostic[] | null { + // Not implemented. + return null + } + public replaceSelection(_fileName: string, _selectedText: string, _replacement: string): Promise { // Not implemented. return Promise.resolve() diff --git a/client/web/src/cody/components/FileContentEditor.ts b/client/web/src/cody/components/FileContentEditor.ts index 490c80a87d6..8f596f1d204 100644 --- a/client/web/src/cody/components/FileContentEditor.ts +++ b/client/web/src/cody/components/FileContentEditor.ts @@ -1,5 +1,6 @@ import { ActiveTextEditor, + ActiveTextEditorDiagnostic, ActiveTextEditorSelection, ActiveTextEditorVisibleContent, Editor, @@ -48,6 +49,16 @@ export class FileContentEditor implements Editor { } } + public getWorkspaceRootUri(): null { + // Not implemented. + return null + } + + public getActiveTextEditorDiagnosticsForRange(): ActiveTextEditorDiagnostic[] | null { + // Not implemented. + return null + } + public replaceSelection(_fileName: string, _selectedText: string, _replacement: string): Promise { // Not implemented. return Promise.resolve() diff --git a/client/web/src/cody/components/RepoContainerEditor.ts b/client/web/src/cody/components/RepoContainerEditor.ts index 01d55065523..d9665136614 100644 --- a/client/web/src/cody/components/RepoContainerEditor.ts +++ b/client/web/src/cody/components/RepoContainerEditor.ts @@ -1,5 +1,6 @@ import { ActiveTextEditor, + ActiveTextEditorDiagnostic, ActiveTextEditorSelection, ActiveTextEditorVisibleContent, Editor, @@ -32,6 +33,16 @@ export class RepoContainerEditor implements Editor { return null } + public getWorkspaceRootUri(): null { + // Not implemented. + return null + } + + public getActiveTextEditorDiagnosticsForRange(): ActiveTextEditorDiagnostic[] | null { + // Not implemented. + return null + } + public replaceSelection(_fileName: string, _selectedText: string, _replacement: string): Promise { // Not implemented. return Promise.resolve() diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e057780a29a..7262e93833b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1581,8 +1581,8 @@ importers: specifier: workspace:* version: link:../codeintellify '@sourcegraph/cody-shared': - specifier: ^0.0.4 - version: 0.0.4 + specifier: ^0.0.5 + version: 0.0.5 '@sourcegraph/cody-ui': specifier: ^0.0.6 version: 0.0.6 @@ -9357,6 +9357,21 @@ packages: - encoding dev: false + /@sourcegraph/cody-shared@0.0.5: + resolution: {integrity: sha512-xwNHKsE9NPEUcQoEqJMYuU86D3NRqBn/V6Fjc09FlkgNQUcouJhGZuVntpOuBa3g8aEqOVT+bI/QcX0Oy1QGfQ==} + dependencies: + '@microsoft/fetch-event-source': 2.0.1 + dompurify: 3.0.4 + highlight.js: 10.7.3 + isomorphic-fetch: 3.0.0 + lodash: 4.17.21 + marked: 4.0.16 + vscode-uri: 3.0.7 + x2js: 3.4.4 + transitivePeerDependencies: + - encoding + dev: false + /@sourcegraph/cody-ui@0.0.6: resolution: {integrity: sha512-MBeFDFebKfrTZOCwV9MeLYeluFyFaALhMbX+NltXiF3LjiFh3qqJDM0DcpOFwKgqKnaJkm1i4Uh/8/R9DUaglQ==} dependencies: @@ -14163,7 +14178,6 @@ packages: /@xmldom/xmldom@0.8.10: resolution: {integrity: sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==} engines: {node: '>=10.0.0'} - dev: true /@xtuc/ieee754@1.2.0: resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==} @@ -34663,6 +34677,12 @@ packages: default-browser-id: 1.0.4 dev: true + /x2js@3.4.4: + resolution: {integrity: sha512-yG/ThaBCgnsa3aoMPAe7QwDpcyU4D70hjXC4Y1lZSfD/Tgd0MpE19FnZZRAjekryw0c8cffpOt9zsPEiqktO6Q==} + dependencies: + '@xmldom/xmldom': 0.8.10 + dev: false + /xdg-basedir@3.0.0: resolution: {integrity: sha512-1Dly4xqlulvPD3fZUQJLY+FUIeqN3N2MM3uqe4rCJftAvOjFa3jFGfctOgluGx4ahPbUCsZkmJILiP0Vi4T6lQ==} engines: {node: '>=4'}