Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fredher committed Aug 7, 2023
2 parents c4fcead + 829634c commit 42dfee3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "tchecker-vscode",
"displayName": "TChecker VSCode",
"description": "Visual Studio Code extension for TChecker",
"version": "0.0.1",
"version": "0.1.0",
"publisher": "ticktac-project",
"repository": {
"type": "git",
Expand Down
6 changes: 0 additions & 6 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,3 @@ export function activate(context: vscode.ExtensionContext) {
context.subscriptions.concat(handleHover());
context.subscriptions.concat(handleAutoCompletion());
}

export function deactivate(context: vscode.ExtensionContext) {
console.log('Deactivation...');
console.log(context.subscriptions);
return undefined;
}
4 changes: 2 additions & 2 deletions src/tools/tckSyntax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function handleSyntaxErrors(output: SpawnSyncReturns<string>, diagnosticCollecti
vscode.window.showErrorMessage(tckSyntaxErrorMessage);

// getting errors
const errors = parseErrorPosition(output, 0);
const errors = parseErrorPosition(output, vscode.DiagnosticSeverity.Error);

// sending errors to VSCode
diagnosticCollection.set(vscode.Uri.parse(currentFile), errors);
Expand All @@ -93,7 +93,7 @@ function handleCorrectSyntax(output: SpawnSyncReturns<string>, diagnosticCollect
vscode.window.showInformationMessage(tckSyntaxWarningMessage);

// getting warnings
const warnings = parseErrorPosition(output, 1);
const warnings = parseErrorPosition(output, vscode.DiagnosticSeverity.Warning);

// sending warnings to VSCode
diagnosticCollection.set(vscode.Uri.parse(currentFile), warnings);
Expand Down

0 comments on commit 42dfee3

Please sign in to comment.