diff --git a/dlangide_msvc.visualdproj b/dlangide_msvc.visualdproj index 76fd721..9f75d90 100644 --- a/dlangide_msvc.visualdproj +++ b/dlangide_msvc.visualdproj @@ -480,6 +480,11 @@ + + + + + diff --git a/src/ddebug/common/nodebug.d b/src/ddebug/common/nodebug.d index a189690..92b7bd9 100644 --- a/src/ddebug/common/nodebug.d +++ b/src/ddebug/common/nodebug.d @@ -87,6 +87,8 @@ dummy_var="" read dummy_var exit $exit_code `; + static import std.file; + static import std.path; std.file.write(std.path.buildPath(_executableWorkingDir, "dlangide_run_script.sh"), shellScript); string setExecFlagCommand = escapeShellCommand("chmod", "+x", "dlangide_run_script.sh"); spawnShell(setExecFlagCommand, stdin, stdout, stderr, null, Config.none, _executableWorkingDir); diff --git a/src/dlangide/ui/frame.d b/src/dlangide/ui/frame.d index d275dbb..721eacd 100644 --- a/src/dlangide/ui/frame.d +++ b/src/dlangide/ui/frame.d @@ -39,7 +39,9 @@ import ddebug.gdb.gdbinterface; import std.conv; import std.utf; -import std.algorithm; +import std.algorithm : equal, endsWith; +import std.array : empty; +import std.string : split; import std.path; bool isSupportedSourceTextFileFormat(string filename) { diff --git a/src/dlangide/ui/homescreen.d b/src/dlangide/ui/homescreen.d index ca915e4..f201e7a 100644 --- a/src/dlangide/ui/homescreen.d +++ b/src/dlangide/ui/homescreen.d @@ -8,6 +8,7 @@ import dlangide.ui.frame; import dlangide.ui.commands; import std.path; +import std.utf : toUTF32; class HomeScreen : ScrollWidget { protected IDEFrame _frame; diff --git a/src/dlangide/ui/newfile.d b/src/dlangide/ui/newfile.d index d1a4e6e..3c45404 100644 --- a/src/dlangide/ui/newfile.d +++ b/src/dlangide/ui/newfile.d @@ -18,8 +18,9 @@ import dlangide.workspace.workspace; import dlangide.ui.commands; import dlangide.ui.frame; -import std.algorithm : startsWith, endsWith; +import std.algorithm : startsWith, endsWith, equal; import std.array : empty; +import std.utf : toUTF32, toUTF8; import std.file; import std.path; diff --git a/src/dlangide/ui/newproject.d b/src/dlangide/ui/newproject.d index e42b0c9..c672511 100644 --- a/src/dlangide/ui/newproject.d +++ b/src/dlangide/ui/newproject.d @@ -21,6 +21,7 @@ import dlangide.ui.frame; import std.path; import std.file; import std.array : empty; +import std.utf : toUTF32, toUTF8; class ProjectCreationResult { Workspace workspace; diff --git a/src/dlangide/workspace/idesettings.d b/src/dlangide/workspace/idesettings.d index fcac638..ed9cedd 100644 --- a/src/dlangide/workspace/idesettings.d +++ b/src/dlangide/workspace/idesettings.d @@ -4,6 +4,8 @@ import dlangui.core.settings; import dlangui.core.i18n; import dlangui.graphics.fonts; +import std.algorithm : equal; + const AVAILABLE_THEMES = ["ide_theme_default", "ide_theme_dark"]; const AVAILABLE_LANGUAGES = ["en", "ru", "es", "cs"]; diff --git a/src/dlangide/workspace/projectsettings.d b/src/dlangide/workspace/projectsettings.d index f773ead..2beb259 100644 --- a/src/dlangide/workspace/projectsettings.d +++ b/src/dlangide/workspace/projectsettings.d @@ -7,6 +7,7 @@ import dlangide.workspace.idesettings; import std.string; import std.array; +import std.algorithm : equal; const AVAILABLE_TOOLCHAINS = ["default", "dmd", "ldc", "gdc"]; const AVAILABLE_ARCH = ["default", "x86", "x86_64", "arm", "arm64"]; diff --git a/src/dlangide/workspace/workspace.d b/src/dlangide/workspace/workspace.d index 61e49ec..66d4861 100644 --- a/src/dlangide/workspace/workspace.d +++ b/src/dlangide/workspace/workspace.d @@ -5,7 +5,8 @@ import dlangide.workspace.workspacesettings; import dlangide.ui.frame; import dlangui.core.logger; import dlangui.core.settings; -import std.algorithm : map; +import std.algorithm : map, equal, endsWith; +import std.array : empty; import std.conv; import std.file; import std.path; diff --git a/src/dlangide/workspace/workspacesettings.d b/src/dlangide/workspace/workspacesettings.d index e6472d8..8d10a5a 100644 --- a/src/dlangide/workspace/workspacesettings.d +++ b/src/dlangide/workspace/workspacesettings.d @@ -5,7 +5,8 @@ import dlangui.core.i18n; import ddebug.common.debugger; import dlangide.workspace.project; -import std.array; +import std.array : empty; +import std.algorithm : equal; /// local settings for workspace (not supposed to put under source control) class WorkspaceSettings : SettingsFile {