diff --git a/client/branded/src/components/panel/views/__snapshots__/HierarchicalLocationsView.test.tsx.snap b/client/branded/src/components/panel/views/__snapshots__/HierarchicalLocationsView.test.tsx.snap
index 0f04e17e64de..d59caad45d36 100644
--- a/client/branded/src/components/panel/views/__snapshots__/HierarchicalLocationsView.test.tsx.snap
+++ b/client/branded/src/components/panel/views/__snapshots__/HierarchicalLocationsView.test.tsx.snap
@@ -99,7 +99,7 @@ exports[`
@@ -110,7 +110,7 @@ exports[` | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -121,7 +121,7 @@ exports[` | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -326,7 +326,7 @@ exports[` |
@@ -337,7 +337,7 @@ exports[` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -348,7 +348,7 @@ exports[` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -359,7 +359,7 @@ exports[` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -370,7 +370,7 @@ exports[` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -497,7 +497,7 @@ exports[` |
@@ -508,7 +508,7 @@ exports[` | ||||||||||||||||
@@ -519,7 +519,7 @@ exports[` | ||||||||||||||||
diff --git a/client/codeintellify/src/testutils/sourcegraph/generate.ts b/client/codeintellify/src/testutils/sourcegraph/generate.ts index fe98e3665d4e..e3522f9cb5bd 100644 --- a/client/codeintellify/src/testutils/sourcegraph/generate.ts +++ b/client/codeintellify/src/testutils/sourcegraph/generate.ts @@ -5,7 +5,7 @@ export function generateSourcegraphCodeTable(lines: string[]): string { const code = lines .map( (line, index) => ` | ||||||||||||||||
+ | ${line} | |||||||||||||||
+ | {/* create empty space to fill viewport (as if the blob content were already fetched, otherwise we'll overfetch) */} |
mocha.opts mocha.opts\n | |
+--timeout 200\n | |
+src/**/*.test.ts\n | |
\\ No newline at end of file\n | |
package.json package.json\n | |
+ "exclude": [\n | |
+ "**/*.test.ts"\n | |
+ ],\n | |
- "serve": "parcel serve --no-hmr --out-file dist/extension.js src/extension.ts",\n | |
+ "test": "TS_NODE_COMPILER_OPTIONS='{\\"module\\":\\"commonjs\\"}' mocha --require ts-node/register --require source-map-support/register --opts mocha.opts",\n | |
+ "cover": "TS_NODE_COMPILER_OPTIONS='{\\"module\\":\\"commonjs\\"}' nyc --require ts-node/register --require source-map-support/register --all mocha --opts mocha.opts --timeout 10000",\n | |
- "sourcegraph:prepublish": "parcel build src/extension.ts"\n | |
+ "sourcegraph:prepublish": "yarn typecheck && yarn test && yarn build"\n | |
},\n | |
yarn.lock yarn.lock\n | |
+ spawn-wrap "^1.4.2"\n | |
+ test-exclude "^5.1.0"\n | |
+ uuid "^3.3.2"\n | |
\n | |
+test-exclude@^5.1.0:\n | |
+ version "5.1.0"\n | |
+ resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-5.1.0.tgz#6ba6b25179d2d38724824661323b73e03c0c1de1"\n | |
+ integrity sha512-gwf0S2fFsANC55fSeSqpb8BYk6w3FDvwZxfNjeF6FRgvFa43r+7wRiA/Q0IxoRU37wB/LE8IQ4221BsNucTaCA== |
mocha.opts mocha.opts\n | |
+--timeout 200\n | |
+src/**/*.test.ts\n | |
\\ No newline at end of file\n | |
package.json package.json\n | |
+ "exclude": [\n | |
+ "**/*.test.ts"\n | |
+ ],\n | |
- "serve": "parcel serve --no-hmr --out-file dist/extension.js src/extension.ts",\n | |
+ "test": "TS_NODE_COMPILER_OPTIONS='{\\"module\\":\\"commonjs\\"}' mocha --require ts-node/register --require source-map-support/register --opts mocha.opts",\n | |
+ "cover": "TS_NODE_COMPILER_OPTIONS='{\\"module\\":\\"commonjs\\"}' nyc --require ts-node/register --require source-map-support/register --all mocha --opts mocha.opts --timeout 10000",\n | |
- "sourcegraph:prepublish": "parcel build src/extension.ts"\n | |
+ "sourcegraph:prepublish": "yarn typecheck && yarn test && yarn build"\n | |
},\n | |
yarn.lock yarn.lock\n | |
+ spawn-wrap "^1.4.2"\n | |
+ test-exclude "^5.1.0"\n | |
+ uuid "^3.3.2"\n | |
\n | |
+test-exclude@^5.1.0:\n | |
+ version "5.1.0"\n | |
+ resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-5.1.0.tgz#6ba6b25179d2d38724824661323b73e03c0c1de1"\n | |
+ integrity sha512-gwf0S2fFsANC55fSeSqpb8BYk6w3FDvwZxfNjeF6FRgvFa43r+7wRiA/Q0IxoRU37wB/LE8IQ4221BsNucTaCA== |
add more tests, use the Sourcegraph stubs api and improve repo matching. (#13)\n | |
\n | |
* add more tests, refactor to use extension api stubs\n | |
* improve repo matching\n | |
Co-Authored-By: Felix Becker |
add more tests, use the Sourcegraph stubs api and improve repo matching. (#13)\n | |
\n | |
* add more tests, refactor to use extension api stubs\n | |
* improve repo matching\n | |
Co-Authored-By: Felix Becker |
package diff\n | |
\n | |
import (\n | |
\t\u0026quot;bytes\u0026quot;\n | |
\t\u0026quot;time\u0026quot;\n | |
)\n | |
\n | |
// A FileDiff represents a unified diff for a single file.\n | |
//\n | |
// A file unified diff has a header that resembles the following:\n | |
//\n | |
// --- oldname\t2009-10-11 15:12:20.000000000 -0700\n | |
// +++ newname\t2009-10-11 15:12:30.000000000 -0700\n | |
type FileDiff struct | |
package diff\n | |
\n | |
import (\n | |
\t\u0026quot;bytes\u0026quot;\n | |
\t\u0026quot;time\u0026quot;\n | |
)\n | |
\n | |
// A FileDiff represents a unified diff for a single file.\n | |
//\n | |
// A file unified diff has a header that resembles the following:\n | |
//\n | |
// --- oldname\t2009-10-11 15:12:20.000000000 -0700\n | |
// +++ newname\t2009-10-11 15:12:30.000000000 -0700\n | |
type FileDiff struct | |
' + + ' |
' + ' | ' + '// ' + 'Log to console\n | ||||||
---|---|---|---|---|---|---|---|
' +
+ '' +
'' +
')\n | ' +
+ ' | ' +
'' +
'// ' +
'Third line\n | |
' + + ' | ' + ' | ' + '// ' + 'Log to console\n |
---|---|---|
' + + ' | ||
' + ' |