Skip to content

Commit

Permalink
Merge pull request #5987 from dotty-staging/vscode-modal
Browse files Browse the repository at this point in the history
IDE: Make telemetry dialog modal
  • Loading branch information
smarter authored Feb 27, 2019
2 parents afc03c9 + 68d7cc4 commit f409c88
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ object Build {
settings(commonSettings).
settings(
EclipseKeys.skipProject := true,
version := "0.1.14-snapshot", // Keep in sync with package.json
version := "0.1.15-snapshot", // Keep in sync with package.json
autoScalaLibrary := false,
publishArtifact := false,
includeFilter in unmanagedSources := NothingFilter | "*.ts" | "**.json",
Expand Down
2 changes: 1 addition & 1 deletion vscode-dotty/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vscode-dotty/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dotty",
"displayName": "Dotty Language Server",
"description": "IDE integration for Dotty, the experimental Scala compiler",
"version": "0.1.14-snapshot",
"version": "0.1.15-snapshot",
"license": "BSD-3-Clause",
"publisher": "lampepfl",
"repository": {
Expand Down
8 changes: 5 additions & 3 deletions vscode-dotty/src/tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ export class Tracer {
'the content of every Scala file in your project and ' +
'every interaction with Scala files in the IDE, including keystrokes. ' +
'This data will be stored anonymously (we won\'t know your name) on servers at EPFL in Switzerland.',
'Allow', 'Deny',
).then((value: string | undefined) => {
if (value === 'Allow' || value === 'Deny') this.tracingConsent.set(value)
{ 'modal': true },
{ title: 'Allow' },
{ title: 'Deny', isCloseAffordance: true }
).then(value => {
if (value !== undefined && (value.title === 'Allow' || value.title === 'Deny')) this.tracingConsent.set(value.title)
})
}

Expand Down

0 comments on commit f409c88

Please sign in to comment.