Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Titan VS Code Extension
Manage
Activity
Members
Labels
Plan
Issues
15
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
Eclipse Titan
Titan VS Code Extension
Merge requests
!143
Minor code smell fix nr2 (issue
#16
)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Minor code smell fix nr2 (issue
#16
)
smell2
into
main
Overview
0
Commits
1
Changes
1
Merged
Miklos Magyari
requested to merge
smell2
into
main
8 months ago
Overview
0
Commits
1
Changes
1
Expand
Signed-off-by: Miklos Magyari
miklos.magyari@sigmatechnology.com
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
de478ead
1 commit,
8 months ago
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/common/Modal.ts
+
3
−
3
Options
@@ -34,20 +34,20 @@ export class Modal {
}
public
static
async
failedToParseTpd
(
tpd
:
Uri
,
reason
:
string
)
{
const
{
base
,
dir
}
=
path
.
parse
(
tpd
.
fsPath
);
const
{
base
}
=
path
.
parse
(
tpd
.
fsPath
);
const
header
=
'
Activating invalid TPD
'
;
const
description
=
`Failed to parse tpd:
${
base
}
\n
${
reason
}
`
;
const
options
:
MessageOptions
=
{
detail
:
description
,
modal
:
true
};
await
window
.
showErrorMessage
(
header
,
options
);
}
public
static
async
invalidLogFilePath
(
filePath
:
S
tring
)
{
public
static
async
invalidLogFilePath
(
filePath
:
s
tring
)
{
const
header
=
`Invalid log file path:
${
filePath
}
`
;
const
description
=
`Please set a valid absolute path to "logDir" in settings.\n\n"logs/titan-languageserver-java.log" can be found in the Titan extension source folder.`
;
await
window
.
showWarningMessage
(
header
,
{
detail
:
description
,
modal
:
true
});
}
public
static
async
featureIsNotAvailable
(
featureName
:
S
tring
,
reason
:
S
tring
=
"
The language server is not initiated.
"
)
{
public
static
async
featureIsNotAvailable
(
featureName
:
s
tring
,
reason
:
s
tring
=
"
The language server is not initiated.
"
)
{
const
message
=
`
${
featureName
}
is not available now. Reason:
${
reason
}
`
;
await
window
.
showWarningMessage
(
message
);
}
Loading