Skip to content

Commit

Permalink
fix: patch 3.2.0 tests (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viijay-Kr authored Jun 8, 2024
1 parent 0c23c95 commit cd600cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styles from "@d/DuplicateSelectors.module.scss";
import buttonCss from "@s/button.module.scss";
import buttonCss from "@s/button.module.css";

export default function () {
return (
Expand Down
3 changes: 1 addition & 2 deletions src/providers/ts/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
Uri,
Range,
DefinitionProvider as vscode_DefinitionProvider,
Definition,
LocationLink,
Position,
TextDocument,
Expand All @@ -17,7 +16,7 @@ export class DefnitionProvider implements vscode_DefinitionProvider {
async provideDefinition(
document: TextDocument,
position: Position
): Promise<Definition | LocationLink[]> {
): Promise<LocationLink[]> {
if (!Settings.definition) {
return [];
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/suite/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ suite("TS Config path aliases", async () => {
const position = new Position(6, 29);
const result = await def.provideDefinition(document, position);

assert.notEqual(result, undefined);
assert.notEqual(result.length, 0);
StorageInstance.flushStorage();
});
}
Expand Down

0 comments on commit cd600cf

Please sign in to comment.