Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
B Language Extension
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
B Language Extension
Commits
bedb46ca
Commit
bedb46ca
authored
5 years ago
by
SeeBasTStick
Browse files
Options
Downloads
Patches
Plain Diff
spell fixes, prepared version 0.0.2
parent
4153f25c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
CHANGELOG.md
+6
-1
6 additions, 1 deletion
CHANGELOG.md
README.md
+9
-8
9 additions, 8 deletions
README.md
client/src/extension.ts
+1
-1
1 addition, 1 deletion
client/src/extension.ts
package.json
+6
-4
6 additions, 4 deletions
package.json
server/src/server.ts
+2
-2
2 additions, 2 deletions
server/src/server.ts
with
24 additions
and
16 deletions
CHANGELOG.md
+
6
−
1
View file @
bedb46ca
...
@@ -4,3 +4,8 @@
...
@@ -4,3 +4,8 @@
## [0.0.1]
## [0.0.1]
-
first prototype version
-
first prototype version
## [0.0.2]
-
option to add cutom path
\ No newline at end of file
This diff is collapsed.
Click to expand it.
README.md
+
9
−
8
View file @
bedb46ca
...
@@ -14,17 +14,13 @@ Compiler support for b/eventb via ProB. You need a build a version of ProB downl
...
@@ -14,17 +14,13 @@ Compiler support for b/eventb via ProB. You need a build a version of ProB downl
## Extension Settings
## Extension Settings
Include if your extension adds any VS Code settings through the
`contributes.configuration`
extension point.
For example:
This extension contributes the following settings:
This extension contributes the following settings:
*
`
myExtension.enable`
: enable/disable this extension
*
`
languageServer.probHome`
: to set the path to ProB
*
`myExtension.thing`
: set to
`blah`
to do something
## Bugs
## Bugs
-
please op
n
e an issue at https://github.com/SeeBasTStick/b-eventb-language-extension
-
please ope
n
an issue at https://github.com/SeeBasTStick/b-eventb-language-extension
## Future plans
## Future plans
...
@@ -33,6 +29,11 @@ This extension contributes the following settings:
...
@@ -33,6 +29,11 @@ This extension contributes the following settings:
## Release Notes
## Release Notes
### 0.0.1
### 0.0.1
-
First prototype minimum features
-
First prototype minimum features
### 0.0.2
-
Added option to set ProB path
\ No newline at end of file
This diff is collapsed.
Click to expand it.
client/src/extension.ts
+
1
−
1
View file @
bedb46ca
...
@@ -48,7 +48,7 @@ export function activate(context: ExtensionContext) {
...
@@ -48,7 +48,7 @@ export function activate(context: ExtensionContext) {
// Create the language client and start the client.
// Create the language client and start the client.
client
=
new
LanguageClient
(
client
=
new
LanguageClient
(
'
languageServer
Example
'
,
'
languageServer
'
,
'
Language Server Example
'
,
'
Language Server Example
'
,
serverOptions
,
serverOptions
,
clientOptions
clientOptions
...
...
This diff is collapsed.
Click to expand it.
package.json
+
6
−
4
View file @
bedb46ca
...
@@ -26,15 +26,15 @@
...
@@ -26,15 +26,15 @@
"contributes"
:
{
"contributes"
:
{
"configuration"
:
{
"configuration"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"title"
:
"
Example c
onfiguration"
,
"title"
:
"
C
onfiguration"
,
"properties"
:
{
"properties"
:
{
"languageServer
Example
.maxNumberOfProblems"
:
{
"languageServer.maxNumberOfProblems"
:
{
"scope"
:
"resource"
,
"scope"
:
"resource"
,
"type"
:
"number"
,
"type"
:
"number"
,
"default"
:
100
,
"default"
:
100
,
"description"
:
"Controls the maximum number of problems produced by the server."
"description"
:
"Controls the maximum number of problems produced by the server."
},
},
"languageServer
Example
.trace.server"
:
{
"languageServer.trace.server"
:
{
"scope"
:
"window"
,
"scope"
:
"window"
,
"type"
:
"string"
,
"type"
:
"string"
,
"enum"
:
[
"enum"
:
[
...
@@ -45,7 +45,8 @@
...
@@ -45,7 +45,8 @@
"default"
:
"off"
,
"default"
:
"off"
,
"description"
:
"Traces the communication between VS Code and the language server."
"description"
:
"Traces the communication between VS Code and the language server."
},
},
"languageServerExample.probHome"
:{
"languageServer.probHome"
:{
"scope"
:
"window"
,
"type"
:
"string"
,
"type"
:
"string"
,
"default"
:
"~/prob_prolog/probcli.sh"
,
"default"
:
"~/prob_prolog/probcli.sh"
,
"description"
:
"Path to ProB executable"
"description"
:
"Path to ProB executable"
...
@@ -53,6 +54,7 @@
...
@@ -53,6 +54,7 @@
}
}
}
}
},
},
"scripts"
:
{
"scripts"
:
{
"vscode:prepublish"
:
"npm run compile"
,
"vscode:prepublish"
:
"npm run compile"
,
"compile"
:
"tsc -b"
,
"compile"
:
"tsc -b"
,
...
...
This diff is collapsed.
Click to expand it.
server/src/server.ts
+
2
−
2
View file @
bedb46ca
...
@@ -108,7 +108,7 @@ connection.onDidChangeConfiguration(change => {
...
@@ -108,7 +108,7 @@ connection.onDidChangeConfiguration(change => {
documentSettings
.
clear
();
documentSettings
.
clear
();
}
else
{
}
else
{
globalSettings
=
<
ExampleSettings
>
(
globalSettings
=
<
ExampleSettings
>
(
(
change
.
settings
.
languageServer
Example
||
defaultSettings
)
(
change
.
settings
.
languageServer
||
defaultSettings
)
);
);
}
}
...
@@ -124,7 +124,7 @@ function getDocumentSettings(resource: string): Thenable<ExampleSettings> {
...
@@ -124,7 +124,7 @@ function getDocumentSettings(resource: string): Thenable<ExampleSettings> {
if
(
!
result
)
{
if
(
!
result
)
{
result
=
connection
.
workspace
.
getConfiguration
({
result
=
connection
.
workspace
.
getConfiguration
({
scopeUri
:
resource
,
scopeUri
:
resource
,
section
:
'
languageServer
Example
'
section
:
'
languageServer
'
});
});
documentSettings
.
set
(
resource
,
result
);
documentSettings
.
set
(
resource
,
result
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment