Use shared config for html server

This commit is contained in:
Matt Bierner
2018-10-02 00:15:42 -07:00
parent ef5bd4810a
commit 9116ec29ab
10 changed files with 17 additions and 23 deletions

View File

@@ -19,7 +19,7 @@ export function getPathCompletionParticipant(
result: CompletionItem[]
): ICompletionParticipant {
return {
onHtmlAttributeValue: ({ tag, position, attribute, value: valueBeforeCursor, range }) => {
onHtmlAttributeValue: ({ tag, attribute, value: valueBeforeCursor, range }) => {
const fullValue = stripQuotes(document.getText(range));
if (shouldDoPathCompletion(tag, attribute, fullValue)) {
@@ -145,6 +145,7 @@ function resolveWorkspaceRoot(activeDoc: TextDocument, workspaceFolders: Workspa
return path.resolve(URI.parse(workspaceFolders[i].uri).fsPath);
}
}
return undefined;
}
function shiftPosition(pos: Position, offset: number): Position {