Skip to content

Commit

Permalink
fix: cannot show "No tsconfig"
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Oct 4, 2022
1 parent 3fa8234 commit af3a4e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export async function register(cmd: string, context: vscode.ExtensionContext, la
GetMatchTsConfigRequest.type,
languageClient.code2ProtocolConverter.asTextDocumentIdentifier(vscode.window.activeTextEditor.document),
);
if (tsconfig) {
if (tsconfig?.fileName) {
statusBar.text = path.relative(vscode.workspace.rootPath! as path.OsPath, tsconfig.fileName as path.PosixPath);
statusBar.command = cmd;
currentTsconfig = tsconfig.fileName;
Expand Down

0 comments on commit af3a4e7

Please sign in to comment.