Skip to content

Commit aa7266c

Browse files
committed
Fixes
1 parent dd1b86d commit aa7266c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/completion.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D
5959
return workspace.getConfiguration("css", uri).get<string[]>("styleSheets", []);
6060
}
6161

62-
getPath(uri: Uri, spec: string, ext?: string): string {
62+
getPath(uri: Uri, path: string, ext?: string): string {
6363
const folder = workspace.getWorkspaceFolder(uri);
64-
const name = ext ? join(dirname(spec), basename(spec, ext) + ext) : spec;
64+
const name = ext ? join(dirname(path), basename(path, ext) + ext) : path;
6565

6666
return folder
67-
? join(isAbsolute(spec)
67+
? join(isAbsolute(path)
6868
? folder.uri.fsPath
6969
: dirname(uri.fsPath), name)
7070
: join(dirname(uri.fsPath), name);

0 commit comments

Comments
 (0)