Skip to content

Commit 3abfc16

Browse files
committed
lint + format
1 parent 41ddc1a commit 3abfc16

23 files changed

+992
-752
lines changed

.github/workflows/lint_and_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- name: Setup Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: "20"
22-
cache: "npm"
21+
node-version: '20'
22+
cache: 'npm'
2323

2424
- name: Install dependencies
2525
run: npm ci

.vscode-test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineConfig } from '@vscode/test-cli';
22

33
export default defineConfig({
4-
files: 'out/test/**/*.test.js',
4+
files: 'out/test/**/*.test.js',
55
});

.vscode/extensions.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
// See http://go.microsoft.com/fwlink/?LinkId=827846
3-
// for the documentation about the extensions.json format
4-
"recommendations": [
5-
"dbaeumer.vscode-eslint",
6-
"ms-vscode.extension-test-runner"
7-
]
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"dbaeumer.vscode-eslint",
6+
"ms-vscode.extension-test-runner"
7+
]
88
}

.vscode/launch.json

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Run Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"outFiles": [
16-
"${workspaceFolder}/out/**/*.js"
17-
],
18-
"preLaunchTask": "${defaultBuildTask}"
19-
}
20-
]
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
13+
"outFiles": ["${workspaceFolder}/out/**/*.js"],
14+
"preLaunchTask": "${defaultBuildTask}"
15+
}
16+
]
2117
}

.vscode/settings.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
3-
"files.exclude": {
4-
"out": false // set this to true to hide the "out" folder with the compiled JS files
5-
},
6-
"search.exclude": {
7-
"out": true // set this to false to include "out" folder in search results
8-
},
9-
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10-
"typescript.tsc.autoDetect": "off"
3+
"files.exclude": {
4+
"out": false // set this to true to hide the "out" folder with the compiled JS files
5+
},
6+
"search.exclude": {
7+
"out": true // set this to false to include "out" folder in search results
8+
},
9+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10+
"typescript.tsc.autoDetect": "off"
1111
}

.vscode/tasks.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// See https://go.microsoft.com/fwlink/?LinkId=733558
22
// for the documentation about the tasks.json format
33
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": "$tsc-watch",
10-
"isBackground": true,
11-
"presentation": {
12-
"reveal": "never"
13-
},
14-
"group": {
15-
"kind": "build",
16-
"isDefault": true
17-
}
18-
}
19-
]
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": "$tsc-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never"
13+
},
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
}
18+
}
19+
]
2020
}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
66

77
## [Unreleased]
88

9-
- Initial release
9+
- Initial release

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
# Submitty Extension for VS Code
22

33
## Overview
4+
45
The Submitty Extension for VS Code integrates the Submitty grading system directly into Visual Studio Code, allowing users to easily submit assignments, view grades, and interact with their courses without leaving the editor.
56

67
## Features
8+
79
- **Assignment Submission**: Submit assignments directly from VS Code.
810
- **Grade Retrieval**: View grades and feedback within the editor.
911
- **Course Management**: Access course information and assignment details.
1012
- **Error & Feedback Display**: Get inline feedback on submissions.
1113

1214
## Setup
15+
1316
1. Open the **Submitty Extension**.
1417
2. Enter your **Submitty server URL**.
1518
3. Authenticate using your **username and password**.
1619
4. Select your **course** from the available list.
1720

1821
## Usage
22+
1923
- **Submit an Assignment**:
2024
1. Open the relevant assignment file.
2125
2. Click on the HW you want graded.
@@ -24,9 +28,11 @@ The Submitty Extension for VS Code integrates the Submitty grading system direct
2428
- Open the Submitty panel to view assignment grades and instructor feedback.
2529

2630
## Requirements
31+
2732
- A valid Submitty account.
2833

2934
## Roadmap
35+
3036
- [ ] Allow users to access homeowrk
3137
- [ ] Figure out a way to grade homework and display results back to users
3238
- [ ] Display test results with feedback

eslint.config.mjs

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ export default defineConfig([
99
// --- 1. Global Ignores ---
1010
// Files and directories to ignore across the entire project
1111
{
12-
ignores: ['out/**', 'dist/**', '**/*.d.ts', 'node_modules/**', '.vscode-test/**', '.vscode-test.mjs', 'eslint.config.mjs'],
12+
ignores: [
13+
'out/**',
14+
'dist/**',
15+
'**/*.d.ts',
16+
'node_modules/**',
17+
'.vscode-test/**',
18+
'.vscode-test.mjs',
19+
'eslint.config.mjs',
20+
],
1321
},
1422

1523
// --- 2. Base Configurations (Applied to ALL files by default) ---
@@ -31,7 +39,7 @@ export default defineConfig([
3139
parserOptions: {
3240
projectService: true,
3341
},
34-
}
42+
},
3543
},
3644

3745
// --- 3. Configuration for VS Code Extension (Node.js/TypeScript) ---
@@ -66,10 +74,10 @@ export default defineConfig([
6674
format: ['camelCase', 'PascalCase'],
6775
},
6876
],
69-
'curly': 'warn', // Require curly braces for all control statements
70-
'eqeqeq': 'warn', // Require the use of '===' and '!=='
77+
curly: 'warn', // Require curly braces for all control statements
78+
eqeqeq: 'warn', // Require the use of '===' and '!=='
7179
'no-throw-literal': 'warn', // Disallow throwing literals as exceptions
72-
'semi': 'off', // Let Prettier handle semicolons (or enforce no semicolons)
80+
semi: 'off', // Let Prettier handle semicolons (or enforce no semicolons)
7381
'@typescript-eslint/no-floating-promises': 'error', // Good for async operations
7482
'@typescript-eslint/explicit-function-return-type': [
7583
'warn',
@@ -90,5 +98,4 @@ export default defineConfig([
9098
'@typescript-eslint/no-explicit-any': 'off', // Or 'warn' depending on your preference
9199
},
92100
},
93-
94-
]);
101+
]);

src/extension.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ import { ApiService } from './services/apiService';
44
import { TestingService } from './services/testingService';
55

66
export function activate(context: vscode.ExtensionContext): void {
7-
const apiService = ApiService.getInstance(context, '');
8-
const testingService = new TestingService(context, apiService);
9-
const sidebarProvider = new SidebarProvider(context, testingService);
10-
11-
context.subscriptions.push(
12-
vscode.window.registerWebviewViewProvider('submittyWebview', sidebarProvider)
13-
);
7+
const apiService = ApiService.getInstance(context, '');
8+
const testingService = new TestingService(context, apiService);
9+
const sidebarProvider = new SidebarProvider(context, testingService);
1410

11+
context.subscriptions.push(
12+
vscode.window.registerWebviewViewProvider(
13+
'submittyWebview',
14+
sidebarProvider
15+
)
16+
);
1517
}
1618

17-
export function deactivate() { }
19+
export function deactivate() {}

0 commit comments

Comments
 (0)