Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ let qtConfigurator = new QtConfigurator();
// 1. 检查当前操作系统是否是 win32 或者 linux
// 2. 检查当前路径下是否为空路径
function isCanCreateProject(): boolean {
let platform = os.platform().toString();
if (platform !== "win32" && platform !== "linux") {
vscode.window.showWarningMessage("目前尚不支持的操作系统");
return true;
}
let workspaceFolders = vscode.workspace.workspaceFolders;
if (workspaceFolders === undefined) {
vscode.window.showErrorMessage("请使用 VSCode 打开一个空文件夹以创建项目 (Please use vscode to open an empty folder to create the project)");
Expand Down
2 changes: 1 addition & 1 deletion src/qt_configurator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class QtConfigurator {
if (one_dir[0] >= '0' && one_dir[0] <= '9') {
let two_dirs = fs.readdirSync(qtDir + "/" + one_dir);
for (let two_dir of two_dirs) {
if (two_dir.search("mingw") !== -1 || two_dir.search("msvc") !== -1 || two_dir.search("gcc") !== -1) {
if (two_dir.search("mingw") !== -1 || two_dir.search("msvc") !== -1 || two_dir.search("gcc") !== -1 || two_dir.search("clang") !== -1) {
this.qtKitDirList.push(qtDir + "/" + one_dir + "/" + two_dir);
}
}
Expand Down