Skip to content

Change active editor oct icon to file-text instead of clock - #419

Merged
Jinbo Wang (testforstephen) merged 2 commits into
masterfrom
jinbo_oct
Sep 11, 2018
Merged

Jinbo Wang (testforstephen) merged 2 commits into
masterfrom
jinbo_oct

Conversation

@testforstephen

Copy link
Copy Markdown
Contributor

Signed-off-by: Jinbo Wang jinbwan@microsoft.com

Fix issue #403

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Comment thread src/configurationProvider.ts Outdated
pickItems[positionForActiveEditor].detail += `, active editor (${path.basename(options[positionForActiveEditor].filePath)})`;
} else {
pickItems[positionForActiveEditor].detail = `$(clock) active editor (${path.basename(options[positionForActiveEditor].filePath)})`;
pickItems[positionForActiveEditor].detail = `$(file-text) active editor (${path.basename(options[positionForActiveEditor].filePath)})`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any "file-text" in octicons. Is it this one?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vscode doesn't recognize $(file). Refer to vscode source code about the supported list.
https://github.com/Microsoft/vscode/blob/master/src/vs/base/browser/ui/octiconLabel/octicons/octicons.less#L94

@Eskibear Yan Zhang (Eskibear) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that "file-text" has been renamed to "file" since v7.0.0. See: primer/octicons@4adadb6

Please note that if VS Code updates octicons version, it might cause a small problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants