Skip to content

Commit a9efe60

Browse files
authored
Merge branch 'main' into filipzitny/mar-247-readme-deepnotevscode-deepnote
2 parents 200694d + dee6066 commit a9efe60

36 files changed

+6548
-664
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"runtimeExecutable": "${execPath}",
1010
"args": [
1111
"--extensionDevelopmentPath=${workspaceFolder}",
12-
"--enable-proposed-api"
12+
"--enable-proposed-api=Deepnote.vscode-deepnote"
1313
],
1414
"smartStep": true,
1515
"sourceMaps": true,

CLAUDE.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,34 @@
11
## Code Style & Organization
2+
23
- Order method, fields and properties, first by accessibility and then by alphabetical order.
34
- Don't add the Microsoft copyright header to new files.
45
- Use `Uri.joinPath()` for constructing file paths to ensure platform-correct path separators (e.g., `Uri.joinPath(venvPath, 'share', 'jupyter', 'kernels')` instead of string concatenation with `/`)
6+
- Follow established patterns, especially when importing new packages (e.g. instead of importing uuid directly, use the helper `import { generateUuid } from '../platform/common/uuid';`)
7+
8+
9+
## Code conventions
10+
11+
- Always run `npx prettier` before committing
512

613
## Testing
14+
715
- Unit tests use Mocha/Chai framework with `.unit.test.ts` extension
816
- Test files should be placed alongside the source files they test
917
- Run all tests: `npm test` or `npm run test:unittests`
1018
- Run single test file: `npx mocha --config ./build/.mocha.unittests.js.json ./out/path/to/file.unit.test.js`
1119
- Tests run against compiled JavaScript files in `out/` directory
1220
- Use `assert.deepStrictEqual()` for object comparisons instead of checking individual properties
1321

22+
1423
## Project Structure
24+
1525
- VSCode extension for Jupyter notebooks
1626
- Uses dependency injection with inversify
1727
- Follows separation of concerns pattern
1828
- TypeScript codebase that compiles to `out/` directory
1929

2030
## Deepnote Integration
31+
2132
- Located in `src/notebooks/deepnote/`
2233
- Refactored architecture:
2334
- `deepnoteTypes.ts` - Type definitions
@@ -28,4 +39,4 @@
2839
- `deepnoteActivationService.ts` - VSCode activation
2940
- Whitespace is good for readability, add a blank line after const groups and before return statements
3041
- Separate third-party and local file imports
31-
- How the extension works is described in @architecture.md
42+
- How the extension works is described in @architecture.md

0 commit comments

Comments
 (0)