File tree Expand file tree Collapse file tree 7 files changed +40
-13
lines changed Expand file tree Collapse file tree 7 files changed +40
-13
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ node_modules/**
2
2
client /node_modules /**
3
3
client /out /**
4
4
server /node_modules /**
5
- server /out /**
5
+ server /out /**
6
+ server /src /fbuild-grammar.ts
Original file line number Diff line number Diff line change 28
28
cache : ' npm'
29
29
- run : npm clean-install
30
30
- run : npm run build-grammar
31
+ - run : npm run lint
31
32
- run : npm run build
32
33
- run : npm test
33
34
- name : Publish
Original file line number Diff line number Diff line change 1
1
{
2
2
"editor.insertSpaces" : false ,
3
- "tslint.enable" : true ,
4
3
"typescript.tsc.autoDetect" : " off" ,
5
4
"typescript.preferences.quoteStyle" : " single" ,
6
5
"editor.codeActionsOnSave" : {
9
8
"search.exclude" : {
10
9
"**/out" : true
11
10
}
12
- }
11
+ }
Original file line number Diff line number Diff line change 11
11
},
12
12
"presentation" : {
13
13
"panel" : " dedicated" ,
14
- "reveal" : " never"
14
+ "reveal" : " silent" ,
15
+ "revealProblems" : " onProblem" ,
16
+ "clear" : true
15
17
},
16
18
"problemMatcher" : [
17
19
" $tsc"
18
20
],
19
21
"dependsOn" : [
22
+ " lint" ,
20
23
" build grammar"
21
24
]
22
25
},
26
+ {
27
+ "label" : " lint" ,
28
+ "type" : " npm" ,
29
+ "script" : " lint" ,
30
+ "group" : {
31
+ "kind" : " build" ,
32
+ "isDefault" : false
33
+ },
34
+ "presentation" : {
35
+ "panel" : " dedicated" ,
36
+ "reveal" : " silent" ,
37
+ "revealProblems" : " onProblem" ,
38
+ "clear" : true
39
+ },
40
+ "problemMatcher" : [
41
+ " $tsc"
42
+ ],
43
+ "dependsOn" : []
44
+ },
23
45
{
24
46
"label" : " watch-build" ,
25
47
"type" : " npm" ,
28
50
"group" : " build" ,
29
51
"presentation" : {
30
52
"panel" : " dedicated" ,
31
- "reveal" : " never"
53
+ "reveal" : " silent" ,
54
+ "revealProblems" : " onProblem" ,
55
+ "clear" : true
32
56
},
33
57
"problemMatcher" : [
34
58
" $tsc-watch"
35
59
],
36
60
"dependsOn" : [
61
+ " lint" ,
37
62
" build grammar"
38
63
]
39
64
},
52
77
"isDefault" : true
53
78
},
54
79
"presentation" : {
80
+ "reveal" : " always" ,
81
+ "revealProblems" : " onProblem" ,
55
82
"clear" : true
56
83
},
57
84
"dependsOn" : " build"
64
91
"isBackground" : true ,
65
92
"presentation" : {
66
93
"panel" : " dedicated" ,
67
- "reveal" : " silent"
94
+ "reveal" : " silent" ,
95
+ "revealProblems" : " onProblem" ,
96
+ "clear" : true
68
97
},
69
98
"dependsOn" : " watch-build"
70
99
},
80
109
"problemMatcher" : []
81
110
}
82
111
]
83
- }
112
+ }
Original file line number Diff line number Diff line change 70
70
},
71
71
"scripts" : {
72
72
"build-grammar" : " node server/node_modules/nearley/bin/nearleyc.js server/src/fbuild-grammar.ne --out server/src/fbuild-grammar.ts" ,
73
+ "lint" : " node ./node_modules/eslint/bin/eslint.js . --max-warnings 0" ,
73
74
"build" : " tsc --build" ,
74
75
"watch-build" : " tsc --build --watch" ,
75
76
"postinstall" : " cd client && npm install && cd ../server && npm install && cd .." ,
Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ import {
3
3
DefinitionParams ,
4
4
} from 'vscode-languageserver-protocol' ;
5
5
6
- import {
7
- DocumentUri ,
8
- } from 'vscode-languageserver-types' ;
9
-
10
6
import {
11
7
isPositionInRange ,
12
8
} from '../parser' ;
@@ -40,4 +36,4 @@ export class DefinitionProvider {
40
36
41
37
return null ;
42
38
}
43
- }
39
+ }
Original file line number Diff line number Diff line change @@ -384,4 +384,4 @@ state.documents.onDidClose(change => {
384
384
385
385
// Make the text document manager listen on the connection for open, change and close text document events.
386
386
state . documents . listen ( state . connection ) ;
387
- state . connection . listen ( ) ;
387
+ state . connection . listen ( ) ;
You can’t perform that action at this time.
0 commit comments