Skip to content

Commit

Permalink
Remove the 'vscode' import
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Dec 2, 2024
1 parent e532da8 commit 8f77ca2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
7 changes: 0 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"@types/request": "^2.48.8",
"@types/semver": "^7.3.9",
"@types/sinon": "^10.0.6",
"@types/vscode": "^1.61.0",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"@types/yargs": "^15.0.5",
Expand Down
15 changes: 13 additions & 2 deletions src/CompileErrorProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { EventEmitter } from 'events';
import { logger } from './logging';
import type { DiagnosticTag, Range } from 'brighterscript';
import { DiagnosticSeverity, util as bscUtil } from 'brighterscript';
import type { DiagnosticRelatedInformation } from 'vscode';

export class CompileErrorProcessor {

Expand Down Expand Up @@ -417,7 +416,19 @@ export interface BSDebugDiagnostic {
* An array of related diagnostic information, e.g. when symbol-names within
* a scope collide all definitions can be marked via this property.
*/
relatedInformation?: DiagnosticRelatedInformation[];
relatedInformation?: Array<{
/**
* The location of this related diagnostic information.
*/
location: {
uri: string;
range: Range;
};
/**
* The message of this related diagnostic information.
*/
message: string;
}>;
/**
* A data entry field that is preserved between a `textDocument/publishDiagnostics`
* notification and `textDocument/codeAction` request.
Expand Down

0 comments on commit 8f77ca2

Please sign in to comment.